Exemplo n.º 1
0
        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();
            };
        }
Exemplo n.º 2
0
        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 ();
            };
        }