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

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

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

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

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

            DelegateExpansion.CrossInvoke(CountDownChanged, this, e);
            //CountDownChanged(this,e) ;
        }
Exemple #4
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) ;
        }
Exemple #5
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();
            }
        }