예제 #1
0
        private void btnStop_Click(object sender, EventArgs e)
        {
            if (_engine.MiningMode == MiningModeEnum.Stopped)
            {
                return;
            }
            _engine.MiningMode = MiningModeEnum.Stopped;

            UpdateButtons();
            _engine.RequestStop();
            UpdateGrid();
        }
예제 #2
0
 private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
 {
     _engine.RequestStop();
     _engine.Cleanup();
 }