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(); } }
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(); } }