public RegisterServiceView() { InitializeComponent(); customerController = new CustomerController(); hotelController = new HotelController(); transportationController = new TransportationController(); entertainmentController = new EntertainmentController(); }
public TransportationForm(Employee employee) { InitializeComponent(); controller = new TransportationController(); select(); if (employee.Post.Equals("Бухгалтер") || employee.Post.Equals("Главный бухгалтер")) { addButton.Enabled = false; addButton.BackColor = Color.LightGray; } }
public Booked_Packages() { hotelController = new HotelController(); transportationController = new TransportationController(); entertainmentController = new EntertainmentController(); customerController = new CustomerController(); bookingController = new BookingController(); InitializeComponent(); getServices(); UpdateCustomerGrid(); }
public BookingView(int customerId) { customerController = new CustomerController(); bookingController = new BookingController(); hotelController = new HotelController(); transportationController = new TransportationController(); entertainmentController = new EntertainmentController(); _id = customerId; InitializeComponent(); //fillDropDowns(); }
public BookingView(int bookingId, bool editMode) { customerController = new CustomerController(); bookingController = new BookingController(); hotelController = new HotelController(); transportationController = new TransportationController(); entertainmentController = new EntertainmentController(); _id = bookingId; InitializeComponent(); _editMode = editMode; if (_editMode) { btnSubmit.Text = "Edit"; } getBookinInfo(); }
public TransportationForm(string title, Employee employee) { InitializeComponent(); this.Text = title; changeButton.Text = "Отменить"; controller = new TransportationController(); DataGridViewTextBoxColumn column1 = new DataGridViewTextBoxColumn(); column1.Name = "Хранилище"; dataGridViewDelivery.Columns.Add(column1); column1.Visible = false; select(); if (employee.Post.Equals("Бухгалтер") || employee.Post.Equals("Главный бухгалтер")) { addButton.Enabled = false; addButton.BackColor = Color.LightGray; } }