Esempio n. 1
0
 public ReceptionController(IReception reception, IService service, IPayment payment, ReportLogic report)
 {
     _reception = reception;
     _service   = service;
     _payment   = payment;
     _report    = report;
 }
Esempio n. 2
0
 public ReceptionInfo(IEnumerable <ICabinet> cabinetList, IEnumerable <ISpecialist> specialistList, IEnumerable <string> specialisationList, IReception reception, ShowModes mode = ShowModes.CreateNew)
 {
     InitializeComponent();
     this.mode = mode;
     SetMode();
     this.cabinetList        = cabinetList;
     this.specialistList     = specialistList;
     this.specialisationList = specialisationList;
     this.reception          = reception;
     InitializeReceptionInfo();
 }
Esempio n. 3
0
 void ShowReceptionEditForm(IReception reception2Edit)
 {
     using (Scheduler_Forms.ReceptionInfoEdit receptionForm = new Scheduler_Forms.ReceptionInfoEdit())
     {
         receptionForm.Mode      = ReceptionInfo.ShowModes.ReadExist;
         receptionForm.Reception = reception2Edit;
         if (receptionForm.ShowDialog() == DialogResult.OK)
         {
             reception2Edit.CommitToDatabase();
         }
     }
 }
Esempio n. 4
0
        public PresenterReception(IReception view, Model model)
        {
            this.view  = view;
            this.model = model;

            this.view.GetInfo += View_GetInfo;

            this.view.SelectEmployees   += View_SelectEmployees;
            this.view.SelectRents       += View_SelectRents;
            this.view.SelectRooms       += View_SelectRooms;
            this.view.SelectRoomsFilter += View_SelectRoomsFilter;

            this.view.InsertRent     += View_InsertRent;
            this.view.InsertRoom     += View_InsertRoom;
            this.view.InsertEmployee += View_InsertEmployee;

            this.view.UpdateEmployee += View_UpdateEmployee;
            this.view.UpdateRent     += View_UpdateRent;
            this.view.UpdateRoom     += View_UpdateRoom;

            this.view.DeleteEmployee += View_DeleteEmployee;
            this.view.DeleteRent     += View_DeleteRent;
            this.view.DeleteRoom     += View_DeleteRoom;
        }
Esempio n. 5
0
 public ReportLogic(IService serviceLogic, IReception receptionLogic, IPayment paymentLogic)
 {
     this.serviceLogic   = serviceLogic;
     this.receptionLogic = receptionLogic;
     this.paymentLogic   = paymentLogic;
 }
 public LittleVehiclesViewUserControl(IReception <Vehicle> reception, CloseAction closeAction) : this()
 {
     _reception   = reception;
     _closeAction = closeAction;
 }