private void save_Click(object sender, RoutedEventArgs e)
 {
     // DbActions.Dbaction_action_advoption(this, MiningSpace.minerchoose);
     advstring = advtextbox.Text;
     DbActions.Dbaction_action_advoption(this, slider1, slider2, advtextbox.Text);
     actionasync(true);
 }
Пример #2
0
 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);
 }
Пример #3
0
        //private Style buttonStyleWhite;

        public MainWindow()
        {
            InitializeComponent();
            DbActions.StyleAction();
            DbActions.LanguageAction();

            this.Activated += MainWindow_Activating;
        }
Пример #4
0
 /*
  * 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);
 }
Пример #5
0
 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);
 }
Пример #6
0
 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);
 }
Пример #7
0
 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);
 }
Пример #8
0
        private void startminer(object sender, RoutedEventArgs e)
        {
            string letsstart    = null;
            string path         = null;
            string adreess      = pooladress.Text;
            string walletadress = wallet.Text;

            if (minerchoose == 1)
            {
                letsstart = "-epool " + adreess + " -ewal " + walletadress + " -epsw x " + DbActions.ReadMiner(this, 3, 1);
                path      = System.IO.Path.GetFullPath(@"..\..\") + @"Resources\ethminer\EthDcrMiner64.exe";
            }
            if (minerchoose == 2)
            {
                letsstart = "--server " + adreess + " --port 3333 --user " + walletadress + " --pass x " + DbActions.ReadMiner(this, 3, 2);
                path      = System.IO.Path.GetFullPath(@"..\..\") + @"Resources\zashminer\miner.exe";
            }
            if (minerchoose == 3)
            {
                letsstart = "-a bitcore -o " + adreess + " -u " + walletadress + " -p x --cpu-priority 3 " + DbActions.ReadMiner(this, 3, 3);
                path      = System.IO.Path.GetFullPath(@"..\..\") + @"Resources\timetravel\ccminer-x64.exe";
            }
            if (minerchoose == 4)
            {
                letsstart = "-a lyra2rev2 -o " + adreess + " -u " + walletadress + " -p x " + DbActions.ReadMiner(this, 3, 4);
                path      = System.IO.Path.GetFullPath(@"..\..\") + @"Resources\ccminer\ccminer.exe";
            }
            if (minerchoose == 5)
            {
                letsstart = "-a neoscrypt -o " + adreess + " -u " + walletadress + " -p x " + DbActions.ReadMiner(this, 3, 5);
                path      = System.IO.Path.GetFullPath(@"..\..\") + @"Resources\ccminer\ccminer.exe";
            }
            if (minerchoose == 6)
            {
                letsstart = "-o " + adreess + " -u " + walletadress + " -p x " + DbActions.ReadMiner(this, 3, 6);
                path      = System.IO.Path.GetFullPath(@"..\..\") + @"\Resources\cryptonightcpu\NsCpuCNMiner64.exe";
            }
            if (minerchoose == 7)
            {
                letsstart = "-o " + adreess + " -u " + walletadress + " -p x " + DbActions.ReadMiner(this, 3, 7);
                path      = System.IO.Path.GetFullPath(@"..\..\") + @"Resources\hodlminer.exe";
            }

            if (minerchoose == 9)
            {
                letsstart = "-a lyra2re -o " + adreess + " -u " + walletadress + " -p x " + DbActions.ReadMiner(this, 3, 8);
                path      = System.IO.Path.GetFullPath(@"..\..\") + @"Resources\cpuminer\cpuminer.exe";
            }
            if (minerchoose == 8)
            {
                letsstart = "-a lbry -o " + adreess + " -u " + walletadress + " -p password " + DbActions.ReadMiner(this, 3, 9);
                path      = System.IO.Path.GetFullPath(@"..\..\") + @"Resources\cpuminer\cpuminer.exe";
            }
            if (letsstart != null)
            {
                System.Diagnostics.Process.Start(path, letsstart);
            }
        }
Пример #9
0
 //option window
 public static void Language1_action_optionwindow(OptionWindow w)
 {
     w.Theme1.Count           = "Original blue";
     w.Theme2.Count           = "Lime green";
     w.Theme3.Count           = "Fiery red";
     w.Theme4.Count           = "Nocturnal void";
     w.LeftText.Text          = "Switch language";
     w.RightText.Text         = "Switch style";
     w.OptionWindowName.Title = "Settings window";
     choosenlang = 1;
     DbActions.LanguageSet();
 }
Пример #10
0
 public static void Language2_action_optionwindow(OptionWindow w)
 {
     w.Theme1.Count           = "Оригинальный голубой";
     w.Theme2.Count           = "Лаймово зеленый";
     w.Theme3.Count           = "Огненно рыжий";
     w.Theme4.Count           = "Полуночная пустота";
     w.LeftText.Text          = "Выбор языка";
     w.RightText.Text         = "Выбор стиля";
     w.OptionWindowName.Title = "Окно настроек";
     choosenlang = 2;
     DbActions.LanguageSet();
 }
Пример #11
0
 public static void Language3_action_optionwindow(OptionWindow w)
 {
     w.Theme1.Count           = "Original blau";
     w.Theme2.Count           = "Lindgrün";
     w.Theme3.Count           = "Feuriges Rot";
     w.Theme4.Count           = "Nächtliche Leere";
     w.LeftText.Text          = "Sprache umstellen";
     w.RightText.Text         = "Stil wechseln";
     w.OptionWindowName.Title = "Einstellungs fenster";
     choosenlang = 1;
     DbActions.LanguageSet();
     choosenlang = 3;
     DbActions.LanguageSet();
 }
Пример #12
0
 public static void Language4_action_optionwindow(OptionWindow w)
 {
     w.Theme1.Count           = "原蓝色";
     w.Theme2.Count           = "柠檬绿";
     w.Theme3.Count           = "火红的";
     w.Theme4.Count           = "夜间无效";
     w.LeftText.Text          = "切换语言";
     w.RightText.Text         = "切换风格";
     w.OptionWindowName.Title = "设置窗口";
     choosenlang = 1;
     DbActions.LanguageSet();
     choosenlang = 4;
     DbActions.LanguageSet();
 }
Пример #13
0
 public static void Theme4_action_optionwindow(OptionWindow w)
 {
     w.Englishtile.Background            = Brushes.DarkSlateBlue;
     w.Russiantile.Background            = Brushes.DarkSlateBlue;
     w.Germantile.Background             = Brushes.DarkSlateBlue;
     w.Chinesetile.Background            = Brushes.DarkSlateBlue;
     w.LeftStackpanel.Background         = Brushes.SlateGray;
     w.RightStackpanel.Background        = Brushes.SlateGray;
     w.CenterStackpanel.Background       = Brushes.DarkSlateGray;
     w.OptionWindowName.WindowTitleBrush = Brushes.MidnightBlue;
     w.LeftText.Foreground  = Brushes.LightGray;
     w.RightText.Foreground = Brushes.LightGray;
     choosenstyle           = 4;
     DbActions.StyleSet();
 }
Пример #14
0
 public static void Theme3_action_optionwindow(OptionWindow w)
 {
     w.Englishtile.Background            = Brushes.DarkSalmon;
     w.Russiantile.Background            = Brushes.DarkSalmon;
     w.Germantile.Background             = Brushes.DarkSalmon;
     w.Chinesetile.Background            = Brushes.DarkSalmon;
     w.LeftStackpanel.Background         = Brushes.PeachPuff;
     w.RightStackpanel.Background        = Brushes.PeachPuff;
     w.CenterStackpanel.Background       = Brushes.LightSalmon;
     w.OptionWindowName.WindowTitleBrush = Brushes.Firebrick;
     w.LeftText.Foreground  = Brushes.Black;
     w.RightText.Foreground = Brushes.Black;
     choosenstyle           = 3;
     DbActions.StyleSet();
 }
Пример #15
0
 public static void Theme2_action_optionwindow(OptionWindow w)
 {
     w.Englishtile.Background            = Brushes.LightGreen;
     w.Russiantile.Background            = Brushes.LightGreen;
     w.Germantile.Background             = Brushes.LightGreen;
     w.Chinesetile.Background            = Brushes.LightGreen;
     w.LeftStackpanel.Background         = Brushes.LemonChiffon;
     w.RightStackpanel.Background        = Brushes.LemonChiffon;
     w.CenterStackpanel.Background       = Brushes.PaleGoldenrod;
     w.OptionWindowName.WindowTitleBrush = Brushes.OliveDrab;
     w.LeftText.Foreground  = Brushes.Black;
     w.RightText.Foreground = Brushes.Black;
     choosenstyle           = 2;
     DbActions.StyleSet();
 }
Пример #16
0
 //-----------------------OPTION WINDOW
 public static void Theme1_action_optionwindow(OptionWindow w)
 {
     w.Englishtile.Background            = Brushes.LightSteelBlue;
     w.Russiantile.Background            = Brushes.LightSteelBlue;
     w.Germantile.Background             = Brushes.LightSteelBlue;
     w.Chinesetile.Background            = Brushes.LightSteelBlue;
     w.LeftStackpanel.Background         = Brushes.Lavender;
     w.RightStackpanel.Background        = Brushes.Lavender;
     w.CenterStackpanel.Background       = Brushes.LightGray;
     w.OptionWindowName.WindowTitleBrush = Brushes.DeepSkyBlue;
     w.LeftText.Foreground  = Brushes.Black;
     w.RightText.Foreground = Brushes.Black;
     choosenstyle           = 1;
     DbActions.StyleSet();
 }
Пример #17
0
        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";
        }
Пример #18
0
 private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     DbActions.Dbaction_action_miningspace(this, minerchoose);
     WindowOpened = true;
 }