mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-25 19:38:37 +08:00
18 lines
600 B
C#
18 lines
600 B
C#
using System.IO;
|
|
using mRemoteNG.Config.Connections;
|
|
|
|
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();
|
|
}
|
|
}
|
|
} |