public void SubtractSeconds(int i) { Time.SubtractSeconds(i); TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString()); DelegateExpansion.CrossInvoke(CountDownChanged, this, e); //CountDownChanged(this,e) ; }
public void AddMinites(int i) { Time.AddMinites(i); TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString()); DelegateExpansion.CrossInvoke(CountDownChanged, this, e); //CountDownChanged(this,e) ; }
public void Pause() { State = CDState.Started; Timer.Enabled = false; TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString()); DelegateExpansion.CrossInvoke(CountDownChanged, this, e); //CountDownChanged(this,e) ; }
public void Reset() { State = CDState.NotStarted; Enabled = false; Time.Clear(); TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString()); DelegateExpansion.CrossInvoke(CountDownChanged, this, e); //CountDownChanged(this,e) ; }
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(); } }
public void Stopped() { State = CDState.Started; Timer.Enabled = false; TimeChangedEventArgs e = new TimeChangedEventArgs(Time.ToString()); DelegateExpansion.CrossInvoke(CountDownChanged, this, e); //CountDownChanged(this,e) ; }
private void myCountDown_CountDownChanged(object sender, TimeChangedEventArgs e) { lblMinsSec.Text = e.Time; UpDateDisplay(); }