Alarm_clock.Dialog.btnStartStop_Click C# (CSharp) Method

btnStartStop_Click() private method

private btnStartStop_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void btnStartStop_Click(object sender, EventArgs e)
        {
            if (btnStartStop.Text.StartsWith("Set"))
                _continueWith(new npantarhei.runtime.messagetypes.Message(this.Name + ".setAlarm",
                                                                          DateTime.Parse(this.txtAlarmTime.Text)));
            else
                _continueWith(new npantarhei.runtime.messagetypes.Message(this.Name + ".stopAlarm", null));
        }