Ejemplo n.º 1
0
        private void btnListAppointments_Click(object sender, EventArgs e)
        {
            //create instance of form
            frmListOfAppointments ListAppointments = new frmListOfAppointments();

            //show form
            ListAppointments.Show();
        }
        private void btndelete_Click(object sender, EventArgs e)
        {
            // Display a message box informing the user of there selection
            MessageBox.Show("Are you sure you want to delete", "My Application",
                            //Displays Ok or cancel as buttons
                            MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk);
            //close form
            Close();
            //create instance of form
            frmListOfAppointments MyList = new frmListOfAppointments();

            //refresh List
            MyList.Refresh();
            //re-opens form
            MyList.Show();
        }