public PersonalPageDoctorViewModel(UsersInfoModel doctorInfoModel, CountMessageForPersonalPage countMessageForPersonalPage, Connected connected)
 {
     ConnectedID        = connected.ConnectedID;
     _connectionManager = new ConnectionManager();
     UserId             = doctorInfoModel.Id;
     FirstName          = doctorInfoModel.FirstName;
     LastName           = doctorInfoModel.LastName;
     DateOfBirthPatient = doctorInfoModel.DateOfBirth.UtcDateTime;
     PhoneNumber        = doctorInfoModel.PhoneNumber;
     Email = doctorInfoModel.Email;
     SelectDoctorCommand  = new DelegateCommand <InfoUserModel>(SelectDoctor);
     SelectPatientCommand = new DelegateCommand <InfoUserModel>(SelectPatient);
     DoctorsList          = new ObservableCollection <InfoUserModel>(doctorInfoModel.DortorsList);
     PatientsList         = new ObservableCollection <InfoUserModel>(doctorInfoModel.PatientsList);
     ButtonMessageCommand = new DelegateCommand(WriteMessageInChat);
     ActiveMessage(countMessageForPersonalPage.CountMessages);
 }
コード例 #2
0
 public PersonalPagePatientViewModel(UsersInfoModel patientInfoModel, CountMessageForPersonalPage countMessageForPersonalPage, Connected connected)
 {
     ConnectedID        = connected.ConnectedID;
     _connectionManager = new ConnectionManager();
     FirstName          = patientInfoModel.FirstName;
     LastName           = patientInfoModel.LastName;
     DateOfBirthPatient = patientInfoModel.DateOfBirth.UtcDateTime;
     PhoneNumber        = patientInfoModel.PhoneNumber;
     Email                = patientInfoModel.Email;
     IsTextBoxEnable      = false;
     DateHistory          = patientInfoModel.Date;
     DoctorsList          = new ObservableCollection <InfoUserModel>(patientInfoModel.DortorsList);
     SelectDoctorCommand  = new DelegateCommand <InfoUserModel>(SelectDoctor);
     ButtonMessageCommand = new DelegateCommand(WriteMessageInChat);
     UserId               = patientInfoModel.Id;
     ActiveMessage(countMessageForPersonalPage.CountMessages);
 }
コード例 #3
0
        public PersonalPageDoctor(UsersInfoModel patientInfoModel, CountMessageForPersonalPage countMessageForPersonalPage, Connected connected)
        {
            InitializeComponent();

            DataContext = new PersonalPageDoctorViewModel(patientInfoModel, countMessageForPersonalPage, connected);
        }
コード例 #4
0
 public async Task <CountMessageForPersonalPage> CountMessagesAsync([FromBody] CountMessageForPersonalPage input)
 {
     return(await _userService.CountMessages(input.UserId));
 }