コード例 #1
0
 private void btnEventEdit_Click(object sender, EventArgs e)
 {
     if (EventsTab.AddEvent(
             tbNewEventsNumber.Text.Trim(),
             numericUpDownEventAgeLimit.Text.Trim(),
             tbNewEventsName.Text.Trim(),
             comboBoxEventsSex.Text.Trim(),
             editMode: true))
     {
         LoadEventList();
     }
 }
コード例 #2
0
 private void btnAddEvent_Click(object sender, EventArgs e)
 {
     if (EventsTab.AddEvent(tbNewEventsNumber.Text.Trim(),
                            numericUpDownEventAgeLimit.Text.Trim(),
                            tbNewEventsName.Text.Trim(),
                            comboBoxEventsSex.Text.Trim()))
     {
         statusViewer.Update("Event added !", Status.SUCCESS);
         LoadEventList();
         ClearEventsTab();
     }
 }