Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
        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();
            }
        }