private void tbETHASHunitPrice_TextChanged(object sender, EventArgs e) { ethashgetTotalValue(); tbETHASHincome_TextChanged(sender, e); process_general_info(); ThreadSeeker.WriteToXmlFile(infoPath, info); }
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); }
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 { } }
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 { } }
private void tbETHASHadditionalInfo_TextChanged(object sender, EventArgs e) { info.ethash.additionalInfo = tbETHASHadditionalInfo.Text; try { ThreadSeeker.WriteToXmlFile(infoPath, info); } catch { } }
private void tbSCRYPTadditionalInfo_TextChanged(object sender, EventArgs e) { info.scrypt.additionalInfo = tbSCRYPTadditionalInfo.Text; try { ThreadSeeker.WriteToXmlFile(infoPath, info); } catch { } }
private void Form1_Load(object sender, EventArgs e) { try { info = ThreadSeeker.ReadFromXmlFile <Info>(infoPath); reshowInfo(); } catch (Exception ej) { info = new Info(); } }
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 { } }
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 { } }
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) { } }
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 { } }