Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            SemaphorRobotThread.setStatus(false);

            this.button1.Enabled = false;
            this.button2.Enabled = true;
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form1 myRef = this;

            AppControl.ConsoleCtrl.setUsedForm(ref myRef);

            SemaphorRobotThread.setStatus(true);
            this.button1.Enabled = false;
            this.button2.Enabled = true;

            u_centralStorage.loadConfig();


            // var analystthread = new Thread(new ParameterizedThreadStart(new MiningEngine.Core().miningRoutine));
            Thread analystthread = new Thread(new ParameterizedThreadStart(u_core.miningRoutine));

            analystthread.Name = "Aukro analyst robot";
            analystthread.Start(u_pointsInProcess);
        }
Exemplo n.º 3
0
 private void Form1_FormClosing(Object sender, FormClosingEventArgs e)
 {
     SemaphorRobotThread.setStatus(false);
     u_centralStorage.saveConfig();
     Application.Exit();
 }