Example #1
0
 /// <summary>
 /// Event handler for the user clicking the 'Register' button.
 /// </summary>
 /// <param name="sender">Instance of object raising event.</param>
 /// <param name="e">Generic event args.</param>
 private void buttonCreateNewAlarm_Click(object sender, EventArgs e)
 {
     using (CreateNewAlarmForm createNewAlarmForm = new CreateNewAlarmForm(m_temperatureAlarm))
         if (createNewAlarmForm.ShowDialog() == DialogResult.OK)
         {
             Reload();
         }
 }
 /// <summary>
 /// Event handler for the user clicking the 'Register' button.
 /// </summary>
 /// <param name="sender">Instance of object raising event.</param>
 /// <param name="e">Generic event args.</param>
 private void buttonCreateNewAlarm_Click(object sender, EventArgs e)
 {
     using (CreateNewAlarmForm createNewAlarmForm = new CreateNewAlarmForm(m_temperatureAlarm))
         if (createNewAlarmForm.ShowDialog() == DialogResult.OK)
             Reload();
 }