示例#1
0
        private void PauseButton_Click(object sender, EventArgs e)
        {
            PauseButton.Hide();
            ResumeButton.Show();

            WorkingTime.Enabled = false;

            ProcessThread.Suspend();
        }
示例#2
0
        /* 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;
        }
示例#3
0
        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();
            }
        }
示例#4
0
 // Start is called before the first frame update
 void Start()
 {
     HideTimeIndicator();
     PauseButton.Hide();
     StopButton.gameObject.SetActive(false);
 }