Ejemplo n.º 1
0
        private void Stop()
        {
            btnStart.Text = "Start";
            mn.Stop();
            mn.OnMinerEvent       -= Mn_OnMinerEvent;
            mn.OnMinerReportEvent -= Mn_OnMinerReportEvent;
            mn = null;

            pool.OnPoolEvent -= Pool_OnPoolEvent;
            pool              = null;
        }
Ejemplo n.º 2
0
 private void Start()
 {
     btnStart.Text          = "Stop";
     mn                     = new miner();
     mn.OnMinerEvent       += Mn_OnMinerEvent;
     mn.OnMinerReportEvent += Mn_OnMinerReportEvent;
     mn.Run();
     pool              = new pool();
     pool.OnPoolEvent += Pool_OnPoolEvent;
     pool.Run();
     tmrInitialise.Enabled = true;
 }