/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CashoutButton_Click(object sender, EventArgs e) { Hide(); var postGameWindow = new PostGameWindow(_wallet, _codeCount, _upgradeCount); postGameWindow.Closed += (s, args) => this.Close(); _virus.hackTimer.Stop(); AntiVirusTimer.Stop(); postGameWindow.Show(); }
private void QuickCoinMiner_Load(object sender, EventArgs e) { _wallet = new Wallet(); _virus = new Virus(_wallet, ResourceLabel, VerifyTextBox, InvestmentTimer, _investmentBought); _antiVirus = new AntiVirus(_wallet, ResourceLabel, _virus); _upgradeCount = 0; //var pfc = new PrivateFontCollection(); //pfc.AddFontFile(@"E:\Users\Shaw\Desktop\C#\CryptoApplication\CryptoApplication\Resources\Static-2.ttf"); //CaptchaTextBox.Font = new Font(pfc.Families[0], 27, FontStyle.Regular); AntiVirusTimer.Start(); }