public override void AwakeFromNib() { teaOptions = new TeaList(); teaOptions.DefineTeaVarieties(); InitComboBox(); //Set the Start Button behaviour StartButton.Activated += (object sender, EventArgs e) => { // Reset labels InfoLabel.StringValue = ""; CountdownLabel.StringValue = ""; //If another countdown is running, stop it before starting a new one StopPreviousTimer(); StartNewTimer(); }; }
public override void AwakeFromNib() { teaOptions = new TeaList(); teaOptions.DefineTeaVarieties (); InitComboBox (); //Set the Start Button behaviour StartButton.Activated += (object sender, EventArgs e) => { // Reset labels InfoLabel.StringValue = ""; CountdownLabel.StringValue = ""; //If another countdown is running, stop it before starting a new one StopPreviousTimer (); StartNewTimer (); }; }