Esempio n. 1
0
 void HandleActiveTaskIdChanged(object sender, EntityIdEventArgs e)
 {
     foreach (var item in Items)
     {
         item.IsActive = (item.Id == e.Id);
     }
 }
Esempio n. 2
0
        void HandleTaskDeleted(object sender, EntityIdEventArgs e)
        {
            ITaskListItemViewModel item = Items.FirstOrDefault(i => i.Id == e.Id);

            if (item != null)
            {
                Items.Remove(item);
            }
        }
Esempio n. 3
0
        void HandleTaskStarted(object sender, EntityIdEventArgs e)
        {
            if (DayStartTime == DateTime.MinValue)
            {
                DayStartTime = DateTime.Now;
            }

            // Execute right away to look responsive
            idleTimeSummer.Execute();
        }
Esempio n. 4
0
 void HandleActiveTaskIdChanged(object sender, EntityIdEventArgs e)
 {
     if (e.Id != Guid.Empty)
     {
         CreateTitleFromTask(e.Id);
     }
     else
     {
         CreateDefaultTitle();
     }
 }
 private void IPrintTicketView_PatientChoise(object sender, EntityIdEventArgs e)
 {
     iPrintTicketView.SetTickets(printTicketModel.GetTicketsByPatientsId(e.DoctorsId));
 }
Esempio n. 6
0
 void HandleTaskStarted(object sender, EntityIdEventArgs e)
 {
     activeTimeBlock = timeBlocksModel.Add(e.Id, Now);
 }
 private void IMedicalCardView_ReadMedicalCard(object sender, EntityIdEventArgs e)
 {
     iMedicalCardView.SetPatientsCard(medicalCardManager.ReadMedicalCard(e.DoctorsId));
 }
 private void IPrintTicketView_TicketChoise(object sender, EntityIdEventArgs e)
 {
     iPrintTicketView.printedTicket = printTicketModel.GetFullTicket(e.DoctorsId);
 }
Esempio n. 9
0
 private void IRegistersView_PatientsInfoGet(object sender, EntityIdEventArgs e)
 {
     iRegistersView.SetData(iRegistersModel.GetPatientsFullInfo(e.DoctorsId));
 }
 private void IMedicalCardView_SaveChanges(object sender, EntityIdEventArgs e)
 {
     PolyclinicDBManager.Doctor doctor = medicalCardModel.GetDoctorById(e.DoctorsId) as PolyclinicDBManager.Doctor;
     iMedicalCardView.SetDoctor(doctor);
     iMedicalCardView.SpecializationName = medicalCardModel.GetSpecializationName(doctor.Specialization);
 }
Esempio n. 11
0
 private void IRegistersView_DoctorsListGetBySpecialization(object sender, EntityIdEventArgs e)
 {
     iRegistersView.SetData(Editor.GetText(iRegistersModel.GetDoctorsBySpecialization(e.DoctorsId)));
 }
Esempio n. 12
0
 private void IRegistersView_DoctorsListGet(object sender, EntityIdEventArgs e)
 {
     iRegistersView.SetData(iRegistersModel.GetDoctorInfo(e.DoctorsId));
 }
Esempio n. 13
0
 void HandleTaskStopped(object sender, EntityIdEventArgs e)
 {
     activeTimeBlock.End = Now;
     timeBlocksModel.Update(activeTimeBlock);
     activeTimeBlock = null;
 }
Esempio n. 14
0
 void HandleTaskStopped(object sender, EntityIdEventArgs e)
 {
     // Execute right away to look responsive
     idleTimeSummer.Execute();
 }
Esempio n. 15
0
 private void IShowStatistic_ShowDoctorsStatistic(object sender, EntityIdEventArgs e)
 {
     iShowStatistic.SetDoctorsStatistic(iShowStatisticsModel.GetDoctorsStatistic(e.DoctorsId));
 }
Esempio n. 16
0
 private void INewDoctorView_SpecializationSelect(object sender, EntityIdEventArgs e)
 {
     iNewDoctorView.SetRooms(newDoctorModel.GetRooms(e.DoctorsId));
 }
Esempio n. 17
0
 private void INewDoctorView_IsRoomFree(object sender, EntityIdEventArgs e)
 {
     iNewDoctorView.SetInformationAboutRoom(newDoctorModel.IsRoomFree(e.DoctorsId));
 }
Esempio n. 18
0
 private void INewSpecialization_SpecializationSelect(object sender, EntityIdEventArgs e)
 {
     iNewSpecialization.SetDoctors(iNewSpecializationModel.GetDoctors(e.DoctorsId));
     iNewSpecialization.SetScheduleAndIntervals(iNewSpecializationModel.GetDoctorsSchedule(e.DoctorsId), iNewSpecializationModel.GetDoctorsInterval(e.DoctorsId));
 }
Esempio n. 19
0
        void HandleEntityDeleted(object sender, EntityIdEventArgs e)
        {
            IGroupListItemViewModel groupListItemViewModel = GroupNames.First(i => i.Id == e.Id);

            GroupNames.Remove(groupListItemViewModel);
        }
Esempio n. 20
0
 void HandleTaskStartedOrStopped(object sender, EntityIdEventArgs e)
 {
     OnCanExecuteChanged();
 }
Esempio n. 21
0
 private void ITicketOrderView_DoctorsSheduleCheck(object sender, EntityIdEventArgs e)
 {
     iTicketOrderView.SetChosenDoctor(iTicketOrderFormModel.GetDoctorById(e.DoctorsId));
     iTicketOrderView.SetOrderedTickets(iTicketOrderFormModel.GetOrderedTickets());
 }
 private void IRoomsRegister_SpecializationChoise(object sender, EntityIdEventArgs e)
 {
     iRoomsRegister.SetAvailableRooms(roomsRegisterModel.GetRooms(e.DoctorsId));
 }
Esempio n. 23
0
 private void IRegistersView_RegionInfoGet(object sender, EntityIdEventArgs e)
 {
     iRegistersView.SetData(Editor.GetText(iRegistersModel.GetRegionInfo(e.DoctorsId)));
 }