Пример #1
0
        public AddNewAppointment(Worker worker)
        {
            InitializeComponent();

            ls = new LoadingScreen();

            hairSalonServicesApi         = new HairSalonServicesApiClient();
            appointmentApi               = new AppointmentApiClient();
            registeredUserApi            = new RegisteredUserApiClient();
            hairSalonMethodsOfPaymentApi = new HairSalonMethodsOfPaymentApiClient();

            this.worker = worker;
        }
Пример #2
0
        public ShowHairSalon(HairSalon hairSalon)
        {
            InitializeComponent();

            ownerApi = new OwnerApiClient();
            hairSalonMethodsOfPaymentApi = new HairSalonMethodsOfPaymentApiClient();
            hairSalonWorkingHoursApi     = new HairSalonWorkingHoursApiClient();
            workerApi            = new WorkerApiClient();
            hairSalonServicesApi = new HairSalonServicesApiClient();

            this.hairSalon = hairSalon;

            SetHairSalonValues();
        }
Пример #3
0
        public MethodOfPaymentPanel(MethodOfPayment methodOfPayment, HairSalon hairSalon)
        {
            InitializeComponent();

            ls = new LoadingScreen();

            methodOfPaymentApi           = new MethodOfPaymentApiClient();
            hairSalonMethodsOfPaymentApi = new HairSalonMethodsOfPaymentApiClient();

            this.methodOfPayment = methodOfPayment;
            this.hairSalon       = hairSalon;

            SetMethodOfPaymentValues();
        }