void HandleActiveTaskIdChanged(object sender, EntityIdEventArgs e) { foreach (var item in Items) { item.IsActive = (item.Id == e.Id); } }
void HandleTaskDeleted(object sender, EntityIdEventArgs e) { ITaskListItemViewModel item = Items.FirstOrDefault(i => i.Id == e.Id); if (item != null) { Items.Remove(item); } }
void HandleTaskStarted(object sender, EntityIdEventArgs e) { if (DayStartTime == DateTime.MinValue) { DayStartTime = DateTime.Now; } // Execute right away to look responsive idleTimeSummer.Execute(); }
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)); }
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); }
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); }
private void IRegistersView_DoctorsListGetBySpecialization(object sender, EntityIdEventArgs e) { iRegistersView.SetData(Editor.GetText(iRegistersModel.GetDoctorsBySpecialization(e.DoctorsId))); }
private void IRegistersView_DoctorsListGet(object sender, EntityIdEventArgs e) { iRegistersView.SetData(iRegistersModel.GetDoctorInfo(e.DoctorsId)); }
void HandleTaskStopped(object sender, EntityIdEventArgs e) { activeTimeBlock.End = Now; timeBlocksModel.Update(activeTimeBlock); activeTimeBlock = null; }
void HandleTaskStopped(object sender, EntityIdEventArgs e) { // Execute right away to look responsive idleTimeSummer.Execute(); }
private void IShowStatistic_ShowDoctorsStatistic(object sender, EntityIdEventArgs e) { iShowStatistic.SetDoctorsStatistic(iShowStatisticsModel.GetDoctorsStatistic(e.DoctorsId)); }
private void INewDoctorView_SpecializationSelect(object sender, EntityIdEventArgs e) { iNewDoctorView.SetRooms(newDoctorModel.GetRooms(e.DoctorsId)); }
private void INewDoctorView_IsRoomFree(object sender, EntityIdEventArgs e) { iNewDoctorView.SetInformationAboutRoom(newDoctorModel.IsRoomFree(e.DoctorsId)); }
private void INewSpecialization_SpecializationSelect(object sender, EntityIdEventArgs e) { iNewSpecialization.SetDoctors(iNewSpecializationModel.GetDoctors(e.DoctorsId)); iNewSpecialization.SetScheduleAndIntervals(iNewSpecializationModel.GetDoctorsSchedule(e.DoctorsId), iNewSpecializationModel.GetDoctorsInterval(e.DoctorsId)); }
void HandleEntityDeleted(object sender, EntityIdEventArgs e) { IGroupListItemViewModel groupListItemViewModel = GroupNames.First(i => i.Id == e.Id); GroupNames.Remove(groupListItemViewModel); }
void HandleTaskStartedOrStopped(object sender, EntityIdEventArgs e) { OnCanExecuteChanged(); }
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)); }
private void IRegistersView_RegionInfoGet(object sender, EntityIdEventArgs e) { iRegistersView.SetData(Editor.GetText(iRegistersModel.GetRegionInfo(e.DoctorsId))); }