Exemplo n.º 1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            var editDoctorForm = new EditDoctorForm(0);

            editDoctorForm.ShowDialog();
            this.Presenter.LoadDoctorsByCriterias();
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
 private void buttonAdd_Click(object sender, EventArgs e)
 {
     var editDoctorForm = new EditDoctorForm(0);
     editDoctorForm.ShowDialog();
     this.Presenter.LoadDoctorsByCriterias();
 }
Exemplo n.º 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();
        }
Exemplo n.º 5
0
 private void menuItemNewDoctor_Click(object sender, EventArgs e)
 {
     var editDoctorForm = new EditDoctorForm(0);
     editDoctorForm.ShowDialog();
 }
Exemplo n.º 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();
        }