mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 12:08:37 +08:00
20 lines
689 B
C#
20 lines
689 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();
|
|
}
|
|
}
|
|
} |