/// <summary> /// Opens the appointment's details, creates a new form /// which passes in the selected items details so it retains data /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void lbApp_DoubleClick(object sender, EventArgs e) { AppMessageBox app = new AppMessageBox(lbApp.SelectedItem, lbApp); app.ShowDialog(); }
/// <summary> /// Prompts new window to add an appointment /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnAddApp_Click(object sender, EventArgs e) { AppMessageBox app = new AppMessageBox(lbApp); app.ShowDialog(); }