Start() private method

Retrieve the necessary object and script references
private Start ( ) : void
return void
Beispiel #1
0
        private void BreakPage_Load(object sender, EventArgs e)
        {
            Taskbar.Show();

            BreakTimerLabel.Text = minutesLeft + ":" + secondsLeft.ToString().PadLeft(2, '0');
            BreakTimer.Start();
        }
Beispiel #2
0
        private void CompleteDoro()
        {
            Timer.Stop();

            Tick(new DoroTimerEvent(DoroTimerEvent.FINISHED_DORO, Doros[CurrentPosition]));

            if (CurrentPosition + 1 == Doros.Count)
            {
                Tick(new DoroTimerEvent(DoroTimerEvent.FINISHED, null));
                IsRunning = false;

                return;
            }

            BreakStartTime = DateTime.Now;

            BreakTimer.Interval = Doros[CurrentPosition].BreakDuration;
            BreakTimer.Start();

            IsBreak = true;
        }