示例#1
0
        private void AddDoctor_MenuClick(object sender, RoutedEventArgs e)
        {
            RegisterDoctorDialog registerDoctor = new RegisterDoctorDialog(this);

            if (registerDoctor.ShowDialog() == true)
            {
                ReloadAppointmentsList();
            }
        }
示例#2
0
        private void EditDoctor_ContextMenuClick(object sender, RoutedEventArgs e)
        {
            Doctor docToUpdate = lvDoctorsList.SelectedItem as Doctor;

            if (docToUpdate == null)
            {
                return;
            }

            RegisterDoctorDialog docUpdateDialog = new RegisterDoctorDialog(this, docToUpdate);

            if (docUpdateDialog.ShowDialog() == true)
            {
                ReloadDoctorsList();
            }
        }