private void resetAllButton_Click(object sender, EventArgs e) { DialogResult result = MessageBox.Show("Are you sure you want to reset the prototype?", "Reset all", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (result == DialogResult.Yes) { AllMeetings.Reset(); } }
public MainForm() { InitializeComponent(); // set the drop down options impersonationComboBox.DataSource = AllUsers.Users.ToList(); impersonationComboBox.DisplayMember = "Name"; this._activeUser = (User)impersonationComboBox.SelectedItem; //set up the devForm devForm.ShowIcon = false; devForm.ShowInTaskbar = true; // Assign event handler for new meetings AllMeetings.meetingsUpdated += AllMeetings_meetingsUpdated; AllMeetings.Reset(); Logging.AddMessage("Initialisation complete"); }