Esempio n. 1
0
 private void tbETHASHunitPrice_TextChanged(object sender, EventArgs e)
 {
     ethashgetTotalValue();
     tbETHASHincome_TextChanged(sender, e);
     process_general_info();
     ThreadSeeker.WriteToXmlFile(infoPath, info);
 }
Esempio n. 2
0
 private void tbSHAprice_TextChanged(object sender, EventArgs e)
 {
     shagetProfitability();
     info.sha256.electricityProcent = getElectricityProcent(info.sha256.income, info.sha256.electricity);
     tbSHAelectricityProcent.Text   = info.sha256.electricityProcent.ToString();
     process_general_info();
     ThreadSeeker.WriteToXmlFile(infoPath, info);
 }
Esempio n. 3
0
 private void tb_general_taken_out_TextChanged(object sender, EventArgs e)
 {
     try
     {
         info.general.takenOutDollars = int.Parse(tb_general_taken_out.Text);
         ThreadSeeker.WriteToXmlFile(infoPath, info);
     }
     catch { }
 }
Esempio n. 4
0
 private void tb_general_additional_info_TextChanged(object sender, EventArgs e)
 {
     info.general.additionalInfo = tb_general_additional_info.Text;
     try
     {
         ThreadSeeker.WriteToXmlFile(infoPath, info);
     }
     catch { }
 }
Esempio n. 5
0
 private void tbETHASHadditionalInfo_TextChanged(object sender, EventArgs e)
 {
     info.ethash.additionalInfo = tbETHASHadditionalInfo.Text;
     try
     {
         ThreadSeeker.WriteToXmlFile(infoPath, info);
     }
     catch { }
 }
Esempio n. 6
0
 private void tbSCRYPTadditionalInfo_TextChanged(object sender, EventArgs e)
 {
     info.scrypt.additionalInfo = tbSCRYPTadditionalInfo.Text;
     try
     {
         ThreadSeeker.WriteToXmlFile(infoPath, info);
     }
     catch { }
 }
Esempio n. 7
0
 private void tbSCRYPTinvested_TextChanged(object sender, EventArgs e)
 {
     try
     {
         info.scrypt.invested = double.Parse(tbSCRYPTinvested.Text.Trim().Replace(".", ","));
         info.scrypt.cleanperdayProcentOfInvested = info.scrypt.cleanperday * 100 / info.scrypt.invested;
         tbSCRYPTdayProcentOfInvested.Text        = info.scrypt.cleanperdayProcentOfInvested.ToString();
         scryptgetProfitability();
         ThreadSeeker.WriteToXmlFile(infoPath, info);
     }
     catch { }
 }
Esempio n. 8
0
 private void tbETHASHinvested_TextChanged(object sender, EventArgs e)
 {
     try
     {
         info.ethash.invested = double.Parse(tbETHASHinvested.Text.Trim().Replace(".", ","));
         info.ethash.cleanperdayProcentOfInvested = info.ethash.cleanperday * 100 / info.ethash.invested;
         tbETHASHdayProcentOfInvested.Text        = info.ethash.cleanperdayProcentOfInvested.ToString();
         ethashgetProfitability();
         process_general_info();
         ThreadSeeker.WriteToXmlFile(infoPath, info);
     }
     catch { }
 }
Esempio n. 9
0
 private void tbETHASHhashrate_TextChanged(object sender, EventArgs e)
 {
     try
     {
         info.ethash.hashrate1MHS = double.Parse(tbETHASHhashrate.Text.Trim().Replace(".", ","));//10 ghs
         info.ethash.electricity  = info.ethash.hashrate1MHS * 0;
         tbETHASHelectricity.Text = info.ethash.electricity.ToString();
         ethashgetTotalValue();
         ethashgetPer1MHS();
         tbETHASHincome_TextChanged(sender, e);
         process_general_info();
         ThreadSeeker.WriteToXmlFile(infoPath, info);
     }
     catch (Exception eu) { }
 }
Esempio n. 10
0
        private void tbETHASHincome_TextChanged(object sender, EventArgs e)
        {
            try
            {
                info.ethash.income                       = double.Parse(tbETHASHincome.Text.Trim().Replace(".", ","));
                info.ethash.cleanperday                  = info.ethash.income - info.ethash.electricity;
                tbETHASHcleanPerDay.Text                 = info.ethash.cleanperday.ToString();
                info.ethash.cleanperdayProcent           = info.ethash.cleanperday * 100 / info.ethash.hashratePrice;
                tbETHASHdayProcent.Text                  = info.ethash.cleanperdayProcent.ToString();
                info.ethash.cleanperdayProcentOfInvested = info.ethash.cleanperday * 100 / info.ethash.invested;
                tbETHASHdayProcentOfInvested.Text        = info.ethash.cleanperdayProcentOfInvested.ToString();
                info.ethash.cleanPerMonth                = info.ethash.cleanperday * 30;
                tbETHASHcleanPerMonth.Text               = info.ethash.cleanPerMonth.ToString();
                ethashgetPer1MHS();

                info.ethash.electricityProcent  = getElectricityProcent(info.ethash.income, info.ethash.electricity);
                tbETHASHelectricityProcent.Text = info.ethash.electricityProcent.ToString();

                process_general_info();
                ThreadSeeker.WriteToXmlFile(infoPath, info);
            }
            catch { }
        }