mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
21 lines
717 B
C#
21 lines
717 B
C#
using System.IO;
|
|
using mRemoteNG.Config.Connections;
|
|
using mRemoteNG.Properties;
|
|
|
|
namespace mRemoteNG.App.Initialization
|
|
{
|
|
public class CredsAndConsSetup
|
|
{
|
|
public void LoadCredsAndCons()
|
|
{
|
|
new SaveConnectionsOnEdit(Runtime.ConnectionsService);
|
|
|
|
if (Settings.Default.FirstStart && !Settings.Default.LoadConsFromCustomLocation &&
|
|
!File.Exists(Runtime.ConnectionsService.GetStartupConnectionFileName()))
|
|
Runtime.ConnectionsService.NewConnectionsFile(Runtime.ConnectionsService
|
|
.GetStartupConnectionFileName());
|
|
|
|
Runtime.LoadConnections();
|
|
}
|
|
}
|
|
} |