예제 #1
0
        private void btnAddAppointment_Click_1(object sender, EventArgs e)
        {
            // Create an instance of a form
            AppointmentMgr temp = new AppointmentMgr();

            // Make it visible/active
            temp.Show();
        }
예제 #2
0
        private void gvAppointments_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            string strAppointment_ID = gvAppointments.Rows[e.RowIndex].Cells[0].Value.ToString();

            int intAppointment_ID = Convert.ToInt32(strAppointment_ID);

            AppointmentMgr Editor = new AppointmentMgr(intAppointment_ID);

            this.Close();
            Editor.ShowDialog();
        }