예제 #1
0
        private void mining_space(object sender, RoutedEventArgs e)
        {
            MiningSpace miningWindow = new MiningSpace();

            miningWindow.Owner = this;
            if (TaskWindow.WindowOpened && MiningSpace.WindowOpened && OptionWindow.WindowOpened && MiningCalc.WindowOpened)
            {
                miningWindow.Show();
                MiningSpace.WindowOpened = false;
            }
        }
예제 #2
0
 public static void Language4_action_miningspace(MiningSpace w)
 {
     w.textblockgpu.Text            = "可用于在GPU上挖掘的算法";
     w.textblockcpu.Text            = "可用于在CPU上挖掘的算法";
     w.pooladresstext.Text          = "输入您的池地址";
     w.wallettext.Text              = "输入您的钱包或员工姓名,以便在池中进行识别";
     w.start_button.Content         = "开始采矿";
     w.advanceoption_button.Content = "高级设置";
     w.MiningWindow.Title           = "采矿空间";
     langtmp = "您选择的算法: ";
 }
예제 #3
0
 public static void Language3_action_miningspace(MiningSpace w)
 {
     w.textblockgpu.Text            = "Algorithmen zum Mining auf der GPU";
     w.textblockcpu.Text            = "Algorithmen zum Mining auf der CPU verfügbar";
     w.pooladresstext.Text          = "Gib die Adresse deines Pools ein";
     w.wallettext.Text              = "Geben Sie Ihre Brieftasche oder den Namen des Mitarbeiters zur Identifikation im Pool ein";
     w.start_button.Content         = "Starten Sie das Mining";
     w.advanceoption_button.Content = "Erweiterte Einstellungen";
     w.MiningWindow.Title           = "Mining space";
     langtmp = "Ihre Wahl des Algorithmus: ";
 }
예제 #4
0
 public static void Language2_action_miningspace(MiningSpace w)
 {
     w.textblockgpu.Text            = "Алгоритмы доступные для майнинга на GPU";
     w.textblockcpu.Text            = "Алгоритмы доступные для майнинга на CPU";
     w.pooladresstext.Text          = "Введите адрес вашего пула";
     w.wallettext.Text              = "Введите ваш кошелек или имя работника для идентификации на пуле";
     w.start_button.Content         = "Начать добычу";
     w.advanceoption_button.Content = "Расширенные настройки";
     w.MiningWindow.Title           = "Окно добычи";
     langtmp = "Your choice of algorithm: ";
 }
예제 #5
0
 //mining space
 public static void Language1_action_miningspace(MiningSpace w)
 {
     w.textblockgpu.Text            = "Algorithms available for mining on the GPU";
     w.textblockcpu.Text            = "Algorithms available for mining on the CPU";
     w.pooladresstext.Text          = "Enter the address of your pool";
     w.wallettext.Text              = "Enter your wallet or employee name for identification on the pool";
     w.start_button.Content         = "Start the mining";
     w.advanceoption_button.Content = "Advanced settings";
     w.MiningWindow.Title           = "Mining space";
     langtmp = "Your choice of algorithm: ";
 }
예제 #6
0
        public static void Dbaction_action_miningspace(MiningSpace w, int id)
        {
            try { connection.Open(); }
            catch (Exception ex)
            {
            }
            SQLiteCommand command1 = new SQLiteCommand("UPDATE Options SET PoolAdress = '" + w.pooladress.Text + "' WHERE Id = " + id, connection);
            SQLiteCommand command2 = new SQLiteCommand("UPDATE Options SET Wallet = '" + w.wallet.Text + "' WHERE Id = " + id, connection);

            command1.ExecuteNonQuery();
            command2.ExecuteNonQuery();
            connection.Close();
        }
예제 #7
0
        public static string ReadMiner(MiningSpace w, int tmp1, int tmp2)
        {
            currentchoose = tmp2;
            try { connection.Open(); }
            catch (Exception ex)
            {
            }

            /* TMP1
             * 1- PoolAdress
             * 2- Wallet
             * 3- AdvancedOption
             *
             * TMP2 - id of algorithms
             */
            string str = null;

            if (tmp1 == 1)
            {
                str = "PoolAdress";
            }
            if (tmp1 == 2)
            {
                str = "Wallet";
            }
            if (tmp1 == 3)
            {
                str = "AdvancedOption";
            }

            SQLiteCommand command = new SQLiteCommand("SELECT " + str + " FROM Options  WHERE Id = " + tmp2 + ";", connection);

            using (SQLiteDataReader rdr = command.ExecuteReader())
            {
                while (rdr.Read())
                {
                    str = rdr[0].ToString();
                    break;
                }
            }
            return(str);
        }
예제 #8
0
 public static void Theme4_action_miningspace(MiningSpace w)
 {
     w.algorithm_gpu1.Background       = Brushes.SlateGray;
     w.algorithm_gpu2.Background       = Brushes.SlateGray;
     w.algorithm_gpu3.Background       = Brushes.SlateGray;
     w.algorithm_gpu4.Background       = Brushes.SlateGray;
     w.algorithm_gpu5.Background       = Brushes.SlateGray;
     w.algorithm_cpu1.Background       = Brushes.SlateGray;
     w.algorithm_cpu2.Background       = Brushes.SlateGray;
     w.algorithm_cpu3.Background       = Brushes.SlateGray;
     w.algorithm_cpu4.Background       = Brushes.SlateGray;
     w.algorithm_gpu1.Foreground       = Brushes.White;
     w.algorithm_gpu2.Foreground       = Brushes.White;
     w.algorithm_gpu3.Foreground       = Brushes.White;
     w.algorithm_gpu4.Foreground       = Brushes.White;
     w.algorithm_gpu5.Foreground       = Brushes.White;
     w.algorithm_cpu1.Foreground       = Brushes.White;
     w.algorithm_cpu2.Foreground       = Brushes.White;
     w.algorithm_cpu3.Foreground       = Brushes.White;
     w.algorithm_cpu4.Foreground       = Brushes.White;
     w.LeftStackpanel.Background       = Brushes.DarkSlateGray;
     w.RightStackpanel.Background      = Brushes.DarkSlateGray;
     w.CenterStackpanel.Background     = Brushes.SlateGray;
     w.textblockgpu.Foreground         = Brushes.White;
     w.pooladresstext.Foreground       = Brushes.White;
     w.textblockgpu.Foreground         = Brushes.White;
     w.textblockcpu.Foreground         = Brushes.White;
     w.wallettext.Foreground           = Brushes.White;
     w.urchoose.Foreground             = Brushes.White;
     w.start_button.Foreground         = Brushes.White;
     w.urchoose.Foreground             = Brushes.White;
     w.advanceoption_button.Foreground = Brushes.White;
     w.pooladress.Background           = Brushes.DarkSlateGray;
     w.wallet.Background               = Brushes.DarkSlateGray;
     w.pooladress.Foreground           = Brushes.White;
     w.wallet.Foreground               = Brushes.White;
     w.MiningWindow.WindowTitleBrush   = Brushes.MidnightBlue;
     w.start_button.Background         = Brushes.Green;
     w.advanceoption_button.Background = Brushes.MidnightBlue;
 }
예제 #9
0
 public static void Theme2_action_miningspace(MiningSpace w)
 {
     w.algorithm_gpu1.Background       = Brushes.LightGreen;
     w.algorithm_gpu2.Background       = Brushes.LightGreen;
     w.algorithm_gpu3.Background       = Brushes.LightGreen;
     w.algorithm_gpu4.Background       = Brushes.LightGreen;
     w.algorithm_gpu5.Background       = Brushes.LightGreen;
     w.algorithm_cpu1.Background       = Brushes.LightGreen;
     w.algorithm_cpu2.Background       = Brushes.LightGreen;
     w.algorithm_cpu3.Background       = Brushes.LightGreen;
     w.algorithm_cpu4.Background       = Brushes.LightGreen;
     w.algorithm_gpu1.Foreground       = Brushes.Black;
     w.algorithm_gpu2.Foreground       = Brushes.Black;
     w.algorithm_gpu3.Foreground       = Brushes.Black;
     w.algorithm_gpu4.Foreground       = Brushes.Black;
     w.algorithm_gpu5.Foreground       = Brushes.Black;
     w.algorithm_cpu1.Foreground       = Brushes.Black;
     w.algorithm_cpu2.Foreground       = Brushes.Black;
     w.algorithm_cpu3.Foreground       = Brushes.Black;
     w.algorithm_cpu4.Foreground       = Brushes.Black;
     w.LeftStackpanel.Background       = Brushes.LemonChiffon;
     w.RightStackpanel.Background      = Brushes.LemonChiffon;
     w.CenterStackpanel.Background     = Brushes.PaleGoldenrod;
     w.textblockgpu.Foreground         = Brushes.Black;
     w.pooladresstext.Foreground       = Brushes.Black;
     w.textblockgpu.Foreground         = Brushes.Black;
     w.textblockcpu.Foreground         = Brushes.Black;
     w.wallettext.Foreground           = Brushes.Black;
     w.urchoose.Foreground             = Brushes.Black;
     w.start_button.Foreground         = Brushes.Black;
     w.urchoose.Foreground             = Brushes.Black;
     w.advanceoption_button.Foreground = Brushes.Black;
     w.pooladress.Background           = Brushes.LightGreen;
     w.wallet.Background             = Brushes.LightGreen;
     w.pooladress.Foreground         = Brushes.Black;
     w.wallet.Foreground             = Brushes.Black;
     w.start_button.Background       = Brushes.Green;
     w.MiningWindow.WindowTitleBrush = Brushes.OliveDrab;
     w.start_button.Background       = Brushes.Green;
 }
예제 #10
0
 //----------------------- mining space
 public static void Theme1_action_miningspace(MiningSpace w)
 {
     w.algorithm_gpu1.Background       = Brushes.Lavender;
     w.algorithm_gpu2.Background       = Brushes.Lavender;
     w.algorithm_gpu3.Background       = Brushes.Lavender;
     w.algorithm_gpu4.Background       = Brushes.Lavender;
     w.algorithm_gpu5.Background       = Brushes.Lavender;
     w.algorithm_cpu1.Background       = Brushes.Lavender;
     w.algorithm_cpu2.Background       = Brushes.Lavender;
     w.algorithm_cpu3.Background       = Brushes.Lavender;
     w.algorithm_cpu4.Background       = Brushes.Lavender;
     w.algorithm_gpu1.Foreground       = Brushes.Black;
     w.algorithm_gpu2.Foreground       = Brushes.Black;
     w.algorithm_gpu3.Foreground       = Brushes.Black;
     w.algorithm_gpu4.Foreground       = Brushes.Black;
     w.algorithm_gpu5.Foreground       = Brushes.Black;
     w.algorithm_cpu1.Foreground       = Brushes.Black;
     w.algorithm_cpu2.Foreground       = Brushes.Black;
     w.algorithm_cpu3.Foreground       = Brushes.Black;
     w.algorithm_cpu4.Foreground       = Brushes.Black;
     w.LeftStackpanel.Background       = Brushes.White;
     w.RightStackpanel.Background      = Brushes.White;
     w.CenterStackpanel.Background     = Brushes.Lavender;
     w.textblockgpu.Foreground         = Brushes.Black;
     w.pooladresstext.Foreground       = Brushes.Black;
     w.wallettext.Foreground           = Brushes.Black;
     w.urchoose.Foreground             = Brushes.Black;
     w.start_button.Foreground         = Brushes.Black;
     w.urchoose.Foreground             = Brushes.Black;
     w.advanceoption_button.Foreground = Brushes.Black;
     w.pooladress.Foreground           = Brushes.Black;
     w.wallet.Foreground       = Brushes.Black;
     w.start_button.Background = Brushes.LightGreen;
     // w.MainStackpanel.Background = Brushes.Lavender;  pooladresstext wallettext urchoose start_button advanceoption_button urchoose pooladress wallet
     // w.mainWindow.WindowTitleBrush = Brushes.DeepSkyBlue;
 }