示例#1
0
        /// <summary>
        /// Call form to edit selected alarm
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Edit_Button_Click(object sender, EventArgs e)
        {
            Edit_Button.Enabled = false;
            AddEditAlarm_Form addEditAlarm = new AddEditAlarm_Form(alarms, Alarm_ListBox.SelectedItem.ToString(), Alarm_ListBox.SelectedIndex);

            addEditAlarm.Show();
        }
示例#2
0
        /// <summary>
        /// Call new form to add new alarm
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Add_Button_Click(object sender, EventArgs e)
        {
            AddEditAlarm_Form addEditAlarm = new AddEditAlarm_Form(alarms, "", -1);

            addEditAlarm.Show();
        }