public Form1() { InitializeComponent(); SendToAll.Enabled = false; Start.Enabled = false; LoadCommandScript.Enabled = false; previousCommands = new List<string>(); commandListPos = 0; logs = new Logs(this.Logs); config = new Configuration(this.logs); Start.Enabled = true; if (confLoaded == false) { var path = @"Config/ManagerConfig.xml"; config.loadConfiguration(path); afterConfiguration(); } }
public Form1() { InitializeComponent(); SendToAll.Enabled = false; Start.Enabled = false; LoadCommandScript.Enabled = false; previousCommands = new List<string>(); commandListPos = 0; logs = new Logs(this.Logs); config = new Configuration(this.logs); Start.Enabled = true; if (path.pathToFile != null) { config.loadConfiguration(path.pathToFile); afterConfiguration(); startService(); } }