private void PauseButton_Click(object sender, EventArgs e) { PauseButton.Hide(); ResumeButton.Show(); WorkingTime.Enabled = false; ProcessThread.Suspend(); }
/* Load settings*/ private void Form1_Load(object sender, EventArgs e) { PauseButton.Hide(); ResumeButton.Hide(); StopButton.Enabled = false; FolderDialog.SelectedPath = Properties.Settings.Default.Path; PathTextBox.Text = Properties.Settings.Default.Path; FindTextBox.Text = Properties.Settings.Default.TextFind; InFileCheckBox.Checked = Properties.Settings.Default.InFile; TemplateNameTextBox.Text = Properties.Settings.Default.TemplateName; Author.Text = "Автор " + Properties.Settings.Default.Author; }
private void StopButton_Click(object sender, EventArgs e) { unilock(); PauseButton.Hide(); ResumeButton.Hide(); StartButton.Show(); StopButton.Enabled = false; WorkingTime.Enabled = false; if (sender != null) { if (ProcessThread.ThreadState == ThreadState.Suspended) { ProcessThread.Resume(); } ProcessThread.Abort(); } }
// Start is called before the first frame update void Start() { HideTimeIndicator(); PauseButton.Hide(); StopButton.gameObject.SetActive(false); }