Ejemplo n.º 1
0
 private void uiButton11_Click(object sender, EventArgs e)
 {
     if (!MinerOptions.amdOffCalc(MinerStatusTable))
     {
         UIMessageBox.ShowError("请选择矿机");
     }
     else
     {
         UIMessageBox.Show("设置完成");
     }
 }
Ejemplo n.º 2
0
 private void uiButton7_Click(object sender, EventArgs e)
 {
     if (!MinerOptions.updateMiner(MinerStatusTable))
     {
         UIMessageBox.ShowError("请选择矿机");
     }
     else
     {
         UIMessageBox.Show("更新完成");
     }
 }
Ejemplo n.º 3
0
 private void uiButton6_Click(object sender, EventArgs e)
 {
     if (UIMessageBox.ShowAsk("你真的要重启吗"))
     {
         if (!MinerOptions.rebootMiner(MinerStatusTable))
         {
             UIMessageBox.ShowError("请选择矿机");
         }
         else
         {
             UIMessageBox.Show("重启完成");
         }
     }
 }
Ejemplo n.º 4
0
 private void uiButton5_Click(object sender, EventArgs e)
 {
     if (UIMessageBox.ShowAsk("你真的要关机吗"))
     {
         if (!MinerOptions.shutdownMiner(MinerStatusTable))
         {
             UIMessageBox.ShowError("请选择矿机");
         }
         else
         {
             UIMessageBox.Show("关机完成");
         }
     }
 }