public ClientForm(Controller controller, bool edit, Client client) { InitializeComponent(); mainController = controller; this.edit = edit; inputClient = client; }
public MasterForm(MainForm mainForm, bool edit, Master master) { InitializeComponent(); serviceNames = new List<String>(); this.mainController = mainForm.mainController; this.edit = edit; inputMaster = master; }
public ServiceForm(Controller controller, bool edit, Service service) { InitializeComponent(); mainController = controller; textBoxServiceDuration.Visible = false; this.edit = edit; inputService = service; }
public MainForm() { InitializeComponent(); mainController = new Controller(); mainDataStorage = DataStorage.get(); mainController.registerSalon(DEFAULT_SALON_ADRESS, DEFAULT_SALON_NAME); this.Text = "Управление салоном \"" + mainDataStorage.getSalon().name + "\" (" + mainDataStorage.getSalon().address + ")"; showPanel(0); }
public RecordForm(Controller controller, bool edit, Record record) { InitializeComponent(); mainController = controller; List<Service> serviceList = mainController.getServiceList(""); foreach (Service service in serviceList) { comboBoxService.Items.Add(service); } this.edit = edit; inputRecord = record; mainMonthCalendar.MinDate = mainMonthCalendar.TodayDate; }