public NewDoctorPresenter(INewDoctorView newDoctorView)
 {
     this.newDoctorView = newDoctorView;
     newDoctorModel = new NewDoctorModel();
     newDoctorView.NewDoctorClinics = newDoctorModel.LoadClinics();
     newDoctorView.NewOkClick += AddDoctor;
 }
Exemple #2
0
 public NewDoctorPresenter(INewDoctorView newDoctorView)
 {
     this.newDoctorView             = newDoctorView;
     newDoctorModel                 = new NewDoctorModel();
     newDoctorView.NewDoctorClinics = newDoctorModel.LoadClinics();
     newDoctorView.NewOkClick      += AddDoctor;
 }
Exemple #3
0
        public NewDoctorPresenter(INewDoctorView iNewDoctorView, INewDoctorModel newDoctorModel)
        {
            if (iNewDoctorView is null)
            {
                throw new ArgumentNullException(String.Format("{0} is null", nameof(iNewDoctorView)));
            }

            if (newDoctorModel is null)
            {
                throw new ArgumentNullException(String.Format("{0} is null", nameof(newDoctorModel)));
            }

            this.iNewDoctorView                  = iNewDoctorView;
            this.newDoctorModel                  = newDoctorModel;
            iNewDoctorView.NewDoctorLoad        += INewDoctorView_NewDoctorLoad;
            iNewDoctorView.SpecializationSelect += INewDoctorView_SpecializationSelect;
            iNewDoctorView.RoomsRegisterOpen    += INewDoctorView_RoomsRegisterOpen;
            iNewDoctorView.IsRoomFree           += INewDoctorView_IsRoomFree;
            iNewDoctorView.DoctorCreate         += INewDoctorView_DoctorCreate;
        }