private void PasswordLoadButton_Click(object sender, EventArgs e) { if (PasswordListOpenFileDialog.ShowDialog() == DialogResult.OK) { ProgressRichTextBox.AppendText($"Selected password file: {PasswordListOpenFileDialog.FileName}{Environment.NewLine}"); } }
private void AddressLookupLoadButton_Click(object sender, EventArgs e) { if (AddressOpenFileDialog.ShowDialog() == DialogResult.OK) { ProgressRichTextBox.AppendText($"Selected lookup address list: {AddressOpenFileDialog.FileName}{Environment.NewLine}"); } }
void stopMiner() { MiningStartButton.Text = "Start Mining"; miner?.Stop(); StringMiner?.StopRandomStringMiner(); incremental?.StopRandomStringMiner(); MinerInfoUpdateTimer.Stop(); MiningProgressBar.Value = 0; ProgressLabel.Text = ""; stopWatch.Reset(); //If the job was done by miner thread minerStillRunning bool should be false this will be skipped //If the cancellation was requested by user this should be true while (MinerInfo.minerStillRunning) { //Cancellation was already requested in miner thread, waiting a few milliseconds to completing Thread.Sleep(10); } ProgressRichTextBox.AppendText(MinerInfo.minerThreadResults); MinerInfo.defaultingValues(); }