/// <summary> /// Khi click vao Create Schedule /// </summary> /// <param name="dto"></param> /// <param name="oDto"></param> public ScheduleDetailOfBus(BusDTO dto, RouteDTO rDto) { InitializeComponent(); main_bus_dto = dto; main_route_dto = rDto; main_staff_bll = new StaffBLL(); bus_bll = new BusBLL(); staff_form = null; }
/// <summary> /// Khi cell click dgvSchdule (Ben BusView) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public ScheduleDetailOfBus(BusDTO dto, RouteDTO rDto, BusStationGridView bDto, StaffDTO casher, StaffDTO driver) { InitializeComponent(); main_bus_dto = dto; main_route_dto = rDto; main_schedule_dto = bDto; main_driver_dto = driver; main_casher_dto = casher; main_staff_bll = new StaffBLL(); bus_bll = new BusBLL(); staff_form = null; }
private void listCasher_Click(object sender, EventArgs e) { if (staff_form != null) { if (staff_form.IsDisposed) { staff_form = null; } } if (staff_form == null) { staff_form = new StaffDetailOfHuy(); staff_form.main_staff_dto = (StaffDTO)listCasher.SelectedItem; staff_form.LoadData(); staff_form.Show(); } else { staff_form.main_staff_dto = (StaffDTO)listCasher.SelectedItem; staff_form.LoadData(); } }