private void cryptonightv7(object sender, RoutedEventArgs e)
 {
     DbActions.Dbaction_action_miningspace(this, minerchoose);
     urchoose.Text   = LanguageSheet.langtmp + " CRYPTONIGHTV7";
     minerchoose     = 6;
     pooladress.Text = DbActions.ReadMiner(this, 1, minerchoose);
     wallet.Text     = DbActions.ReadMiner(this, 2, minerchoose);
 }
 /*
  * 1 - ethash
  * 2 - zhash
  * 3 - equihash
  * 4 - lyrav2
  * 5 - neoscrypt
  * 6 - cryptonightv7
  * 7 - hodl
  * 8 - cryptonight
  * 9 - lyra
  */
 private void ethash(object sender, RoutedEventArgs e)
 {
     DbActions.Dbaction_action_miningspace(this, minerchoose);
     urchoose.Text   = LanguageSheet.langtmp + " ETHASH";
     minerchoose     = 1;
     pooladress.Text = DbActions.ReadMiner(this, 1, minerchoose);
     wallet.Text     = DbActions.ReadMiner(this, 2, minerchoose);
 }
 private void neoscrypt(object sender, RoutedEventArgs e)
 {
     DbActions.Dbaction_action_miningspace(this, minerchoose);
     urchoose.Text   = LanguageSheet.langtmp + " NEOSCRYPT";
     minerchoose     = 5;
     pooladress.Text = DbActions.ReadMiner(this, 1, minerchoose);
     wallet.Text     = DbActions.ReadMiner(this, 2, minerchoose);
 }
 private void lyrav2(object sender, RoutedEventArgs e)
 {
     DbActions.Dbaction_action_miningspace(this, minerchoose);
     urchoose.Text   = LanguageSheet.langtmp + " LYRA2REV2";
     minerchoose     = 4;
     pooladress.Text = DbActions.ReadMiner(this, 1, minerchoose);
     wallet.Text     = DbActions.ReadMiner(this, 2, minerchoose);
 }
 private void TimeTravel10(object sender, RoutedEventArgs e)
 {
     DbActions.Dbaction_action_miningspace(this, minerchoose);
     urchoose.Text   = LanguageSheet.langtmp + " TIMETRAVEL10";
     minerchoose     = 3;
     pooladress.Text = DbActions.ReadMiner(this, 1, minerchoose);
     wallet.Text     = DbActions.ReadMiner(this, 2, minerchoose);
 }
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            if (StyleSheet.choosenstyle == 1)
            {
                StyleSheet.Theme1_action_miningspace(this);
            }
            if (StyleSheet.choosenstyle == 2)
            {
                StyleSheet.Theme2_action_miningspace(this);
            }
            if (StyleSheet.choosenstyle == 3)
            {
                StyleSheet.Theme3_action_miningspace(this);
            }
            if (StyleSheet.choosenstyle == 4)
            {
                StyleSheet.Theme4_action_miningspace(this);
            }

            if (LanguageSheet.choosenlang == 1)
            {
                LanguageSheet.Language1_action_miningspace(this);
            }
            if (LanguageSheet.choosenlang == 2)
            {
                LanguageSheet.Language2_action_miningspace(this);
            }
            if (LanguageSheet.choosenlang == 3)
            {
                LanguageSheet.Language3_action_miningspace(this);
            }
            if (LanguageSheet.choosenlang == 4)
            {
                LanguageSheet.Language4_action_miningspace(this);
            }
            pooladress.Text = DbActions.ReadMiner(this, 1, minerchoose);
            wallet.Text     = DbActions.ReadMiner(this, 2, minerchoose);
            DbActions.Dbaction_action_miningspace(this, minerchoose);
            urchoose.Text = LanguageSheet.langtmp + " ETHASH";
        }
 private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     DbActions.Dbaction_action_miningspace(this, minerchoose);
     WindowOpened = true;
 }