Esempio n. 1
0
        private void startButton_Click(object sender , EventArgs e)
        {
            this.ShutdownProcess = this.CreateProcess();

            if(this.ShutdownProcess != null) {

                ShutdownProcess.Start();
                this.LblTimeLeft.Text = this.ShutdownProcess.Time.ToString();

                tmrShutdown.Enabled = true;
                tmrShutdown.Start();

                this.BtnAbort.Enabled = true;
                this.BtnStart.Enabled = false;
            }
            else this.TbSetTimeText.Text = DEFAULT_TIME;
        }