Example #1
0
        /*
         *  If the cancel button is clicked, then dispose this form and display a new Search form
         */
        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();                 // dispose of this Doctor form
            DoctorSearchForm searchForm = new DoctorSearchForm();

            searchForm.Show();              // display the search form
        }
Example #2
0
        private void btnDoctorDetails_Click(object sender, EventArgs e)
        {
            //this.Dispose();
            DoctorSearchForm doctorSearch = new DoctorSearchForm();

            doctorSearch.Show();
        }