예제 #1
0
        public void SubtractSeconds(int i)
        {
            Time.SubtractSeconds(i);
            TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString());

            DelegateExpansion.CrossInvoke(CountDownChanged, this, e);
            //CountDownChanged(this,e) ;
        }
예제 #2
0
        public void AddMinites(int i)
        {
            Time.AddMinites(i);

            TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString());
            DelegateExpansion.CrossInvoke(CountDownChanged, this, e);
            //CountDownChanged(this,e) ;
        }
예제 #3
0
        public void AddMinites(int i)
        {
            Time.AddMinites(i);

            TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString());

            DelegateExpansion.CrossInvoke(CountDownChanged, this, e);
            //CountDownChanged(this,e) ;
        }
예제 #4
0
        public void Pause()
        {
            State         = CDState.Started;
            Timer.Enabled = false;

            TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString());

            DelegateExpansion.CrossInvoke(CountDownChanged, this, e);
            //CountDownChanged(this,e) ;
        }
예제 #5
0
        public void Reset()
        {
            State   = CDState.NotStarted;
            Enabled = false;
            Time.Clear();

            TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString());

            DelegateExpansion.CrossInvoke(CountDownChanged, this, e);
            //CountDownChanged(this,e) ;
        }
예제 #6
0
        public void Fisished()
        {
            Timer.Enabled = false;
            Time.Clear();

            TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString());

            DelegateExpansion.CrossInvoke(CountDownChanged, this, e);
            //CountDownChanged(this,e) ;

            int    sel      = Properties.Settings.Default.WavFileSelected;
            string location = CDCControls.WavLocation[sel];

            System.Media.SoundPlayer player = new System.Media.SoundPlayer(location);

            for (int i = 0; i < Properties.Settings.Default.WavPlayTimes; i++)
            {
                player.PlaySync();
            }
        }
예제 #7
0
        public void Fisished()
        {
            Timer.Enabled = false;
            Time.Clear();

            TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString());
            DelegateExpansion.CrossInvoke(CountDownChanged, this, e);
            //CountDownChanged(this,e) ;

            int sel = Properties.Settings.Default.WavFileSelected;
            string location = CDCControls.WavLocation[sel];
            System.Media.SoundPlayer player = new System.Media.SoundPlayer(location);

            for (int i = 0; i < Properties.Settings.Default.WavPlayTimes; i++)
            {
                player.PlaySync();
            }
        }
예제 #8
0
        public void SubtractSeconds(int i)
        {
            Time.SubtractSeconds(i);
            TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString());

            DelegateExpansion.CrossInvoke(CountDownChanged, this, e);
            //CountDownChanged(this,e) ;
        }
예제 #9
0
        public void Stopped()
        {
            State = CDState.Started;
            Timer.Enabled = false;

            TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString());
            DelegateExpansion.CrossInvoke(CountDownChanged, this, e);
            //CountDownChanged(this,e) ;
        }
예제 #10
0
        public void Reset()
        {
            State = CDState.NotStarted;
            Enabled = false;
            Time.Clear();

            TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString());
            DelegateExpansion.CrossInvoke(CountDownChanged, this, e);
            //CountDownChanged(this,e) ;
        }
예제 #11
0
 private void myCountDown_CountDownChanged(object sender, TimeChangedEventArgs e)
 {
     lblMinsSec.Text = e.Time;
     UpDateDisplay();
 }
예제 #12
0
 private void myCountDown_CountDownChanged(object sender, TimeChangedEventArgs e)
 {
     lblMinsSec.Text = e.Time;
     UpDateDisplay();
 }