예제 #1
0
        /// <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();
        }
예제 #2
0
        /// <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();
        }