Example #1
0
 public static void StartMiner(IMiner miner)
 {
     if (miner.DefaultMiner)
     {
         DefaultMinerMessage message = new DefaultMinerMessage();
         message.ShowDialog();
         if (message.MinerAction == DefaultMinerAction.Continue)
         {
             Factory.Instance.CoreObject.StartMining(miner);
         }
         else if (message.MinerAction == DefaultMinerAction.Edit)
         {
             EditMinerContainer editMiner = new EditMinerContainer();
             editMiner.LoadInfo(miner);
             editMiner.ShowDialog();
             Factory.Instance.CoreObject.StartMining(editMiner.Miner);
         }
         else
         {
             return;
         }
     }
     else
     {
         Factory.Instance.CoreObject.StartMining(miner);
     }
 }
Example #2
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EditMinerContainer editMiner = new EditMinerContainer();

            editMiner.LoadInfo(Miner);

            editMiner.ShowDialog();
        }
Example #3
0
        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            IMiner             miner     = Factory.Instance.CoreObject.SelectedMiner;
            EditMinerContainer editMiner = new EditMinerContainer();

            editMiner.LoadInfo(miner);
            editMiner.ShowDialog();
        }