public DataTable tmp2; //przykładowe dane pracowników public Form_panel_admin(Form_login add_tmp) { windLog = add_tmp; InitializeComponent(); userControl_menage_cars1.Button_addCar_Click += new System.EventHandler(this.userControl_menage_Button_addCar_Click); userControl_menage_cars1.Button_menANDDelCar_Click += new System.EventHandler(this.userControl_menage_Button_menANDDelCar_Click); userControl_menage_workers1.Button_addWorker_Click += new System.EventHandler(this.userControl_menage_Button_addWorker_Click); userControl_menage_workers1.Button_menANDDelWorker_Click += new System.EventHandler(this.userControl_menage_Button_menAndDelWorker_Click); userControl_manage_keeper1.Button_addKeeper_Click += new System.EventHandler(this.userControl_menage_Button_addKeeper_Click); userControl_manage_keeper1.Button_menANDDelKeeper_Click += new System.EventHandler(this.userControl_meange_Button_modAndDelKeeper_Click); userControl_raports_stats1.Button_cars_Click += new System.EventHandler(this.userControl_raports_Button_cars_Click); userControl_raports_stats1.Button_workers_Click += new System.EventHandler(this.userControl_raports_Button_workers_Click); FillTmpDataTable(); FillTmp2DataTable(); userControl_veh_DB1.fillDataGridView(); userControl_veh_DB1.auto_Complete_textBox(); userControl_veh_DB1.BringToFront(); }
public Form_panel_manager(Form_login add_tmp, int id_log, string surrnameWork, string nameWork) { windLog = add_tmp; InitializeComponent(); log = id_log; label_who_online.Text = "Zalogowany jako " + nameWork + " " + surrnameWork; //dodanie zdarzenia klikniecia wypozyczenia z bazy userControl_rent1.Button_rentDB_Click += new System.EventHandler(this.userControl_rent_Button_rentDB_Click); //dodanie zdarzenia klikniecia wypozyczenia z rezerwacji userControl_rent1.Button_rentReserv_Click += new System.EventHandler(this.userControl_rent_Button_rentResev_Click); userControl_rent1.Button_my_rents_Click += new System.EventHandler(this.userControl_rent_Button_my_rents_Click); userControl_menage_all1.Button_manage_services_Click += new System.EventHandler(this.userControl_services_Click); userControl_menage_all1.Button_raports_statistics_Click += new System.EventHandler(this.userControl_raports_statistic_Click); userControl_menage_all1.Button_manage_keeper_Click += new System.EventHandler(this.userControl_menage_keeper_Click); userControl_manage_keeper1.Button_addKeeper_Click += new System.EventHandler(this.userControl_menage_Button_addKeeper_Click); userControl_manage_keeper1.Button_menANDDelKeeper_Click += new System.EventHandler(this.userControl_meange_Button_modAndDelKeeper_Click); userControl_raports_stats1.Button_cars_Click += new System.EventHandler(this.userControl_raports_Button_cars_Click); userControl_raports_stats1.Button_workers_Click += new System.EventHandler(this.userControl_raports_Button_workers_Click); userControl_raports_stats1.Button_all_Click += new System.EventHandler(this.userControl_raports_Button_all_Click); userControl_manage_care1.Button_reserve_block_car_Click += new System.EventHandler(this.userControl_Button_reserve_block_carClick); userControl_manage_care1.Button_send_receive_car_Click += new System.EventHandler(this.userControl_Button_send_receive_car_Click); }
public int log; //id zalogowanego public MainApp(Form_login login, string nameWork, string surrnameWork, int id_log, bool if_keeper) { InitializeComponent(); windLog = login; //przenoszenie adresu do zmiennej log = id_log; userControl_Welcome2.BringToFront(); label_who_online.Text = "Zalogowany jako " + nameWork + " " + surrnameWork; if (if_keeper) { //label_who_online.Text += " Opiekunek"; to było do sprawdzenai czy opiekun się pojawi i wczyta this.button_manag_care_car.Location = new System.Drawing.Point(0, 311); this.button_statistic.Location = new System.Drawing.Point(0, 362); this.button_settings.Location = new System.Drawing.Point(0, 413); // this.userControl_menage_care_car1 = new UserControl_menage_care_cars(); //userControl_menage_care_car1.SendToBack(); } else { button_manag_care_car.Hide(); this.Controls.Remove(userControl_menage_care_cars1); } }