public FormWayBillDaily(MainDGV dgv) { InitializeComponent(); list = new List <Car>(); fuelList = FuelList.getInstance(); foreach (DataGridViewCell cell in dgv.SelectedCells) { string fio = dgv.GetFIO(cell.RowIndex); DriverList dl = DriverList.getInstance(); driverCurrent = dl.getItemByFullFIO(fio); int idCar = dgv.GetCarID(cell.RowIndex); CarList carList = CarList.getInstance(); Car car = carList.getItem(idCar); list.Add(car); lbCars.Items.Add(car); } btnNext.Enabled = list.Count > 1; index = 0; lbCar.Text = "Выбранный автомобиль: " + list[index].ToString(); }
private void TemplateList_Load(object sender, EventArgs e) { loadData(); _dgvMain = new MainDGV(_dgvTemplate); ResizeDGV(); }
public InputDate(MainDGV dgvMain, Actions action, WayBillType type) { InitializeComponent(); _dgvMain = dgvMain; _action = action; _type = type; }
private void formRouteList_Load(object sender, EventArgs e) { loadRegions(); loadPoints(); _dgvMain = new MainDGV(dgv); }
private void formMyPointList_Load(object sender, EventArgs e) { loadRegions(); loadData(); _dgvMain = new MainDGV(dgv); ResizeDGV(); }
public mainForm() { InitializeComponent(); carList = CarList.getInstance(); mainStatus = MainStatus.getInstance(); mainStatus.StatusChanged += statusChanged; mainStatus.StatusChanged += SetWindowHeaderText; mainStatus.StatusChanged += ConfigContextMenu; _dgvMain = new MainDGV(_dgvCar); _seacher = new SearchInDgv(_dgvCar); _myStatusStrip = new MyStatusStrip(_dgvCar, statusStrip1); _myFilter = MyFilter.GetInstanceCars(); _myFilter.Fill(_dgvCar, _myStatusStrip, this); }
public FormWayBillDaily(MainDGV dgv) { InitializeComponent(); list = new List<Car>(); fuelList = FuelList.getInstance(); foreach (DataGridViewCell cell in dgv.SelectedCells) { int idCar = dgv.GetCarID(cell.RowIndex); CarList carList = CarList.getInstance(); Car car = carList.getItem(idCar); list.Add(car); lbCars.Items.Add(car); } btnNext.Enabled = list.Count > 1; index = 0; lbCar.Text = "Выбранный автомобиль: " + list[index].ToString(); }
public MyMenuItemFactory(MainDGV dgvMain) { _dgvMain = dgvMain; _mainStatus = MainStatus.getInstance(); _carList = CarList.getInstance(); }
public MyMenu(MainDGV dgvMain) { _mainStatus = MainStatus.getInstance(); _factory = new MyMenuItemFactory(dgvMain); }
public DriverMails(MainDGV dgvMain) { _dgvMain = dgvMain; }