public CustomAppointmentServicePlan(ServicePlan sp, SchedulerControl control, Appointment apt, List<OSYS.Controls.ServicePlan.ServicePlanPersonelSurrogate> list, string roomNumber, string guestID, string guestNote, DateTime startDateTime, string therapyName, Guid? therapyID, string guestName, string servicePlanID) { InitializeComponent(); if (control == null || apt == null) throw new ArgumentNullException("control"); if (control == null || apt == null) throw new ArgumentNullException("apt"); ServisPlanClass = sp; RoomNumber = roomNumber; GuestID = guestID; GuestNote = guestNote; personelList = list; StartDateTime = startDateTime; cbPersonelList.Clear(); cbPersonelList.ItemsSource = list; cbPersonelList.DisplayMember = "Adi"; cbPersonelList.ValueMember = "PersonelID"; TherapyName = therapyName; TherapyID = therapyID; GuestName = guestName; ServicePlanID = servicePlanID; }
private void listBoxReservation_SelectionChanged(object sender, SelectionChangedEventArgs e) { ListBox item = sender as ListBox; View_SPA_ScheduleReservation guest = item.SelectedItem as View_SPA_ScheduleReservation; if (item.SelectedItems.Count > 0) { string _guestid = guest.GuestID.ToString(); Number = guest.Number; GuestName = guest.FirstName + " " + guest.Name; ServicePlan model = new ServicePlan(_guestid, Number); container.BusyStart("Bekleyiniz."); container.MsgBox((IMsgBoxControl)model, EButtons.OkCancel, (r) => { if (r == EButton.Ok) { } }); } }