Beispiel #1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            var editDoctorForm = new EditDoctorForm(0);

            editDoctorForm.ShowDialog();
            this.Presenter.LoadDoctorsByCriterias();
        }
Beispiel #2
0
        private void buttonEdit_Click(object sender, EventArgs e)
        {
            var selectedDoctor = this.GetSelectedDoctor();

            if (selectedDoctor == null)
            {
                return;
            }

            int selectedDoctorId = selectedDoctor.DoctorId;
            var editDoctorForm   = new EditDoctorForm(selectedDoctorId);

            editDoctorForm.ShowDialog();
        }
Beispiel #3
0
 private void buttonAdd_Click(object sender, EventArgs e)
 {
     var editDoctorForm = new EditDoctorForm(0);
     editDoctorForm.ShowDialog();
     this.Presenter.LoadDoctorsByCriterias();
 }
Beispiel #4
0
        private void buttonEdit_Click(object sender, EventArgs e)
        {
            var selectedDoctor = this.GetSelectedDoctor();
            if (selectedDoctor == null)
            {
                return;
            }

            int selectedDoctorId = selectedDoctor.DoctorId;
            var editDoctorForm = new EditDoctorForm(selectedDoctorId);
            editDoctorForm.ShowDialog();
        }
Beispiel #5
0
 private void menuItemNewDoctor_Click(object sender, EventArgs e)
 {
     var editDoctorForm = new EditDoctorForm(0);
     editDoctorForm.ShowDialog();
 }
Beispiel #6
0
        private void menuItemCurrentDoctor_Click(object sender, EventArgs e)
        {
            var currentUser = Membership.CurrentUser;
            var currentUserDoctor = currentUser.Doctor;
            int currentDoctorId = currentUserDoctor.DoctorId;

            var editDoctorForm = new EditDoctorForm(currentDoctorId);
            editDoctorForm.ShowDialog();
        }