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();
        }
Beispiel #2
0
        private void TemplateList_Load(object sender, EventArgs e)
        {
            loadData();

            _dgvMain = new MainDGV(_dgvTemplate);

            ResizeDGV();
        }
Beispiel #3
0
        public InputDate(MainDGV dgvMain, Actions action, WayBillType type)
        {
            InitializeComponent();

            _dgvMain = dgvMain;
            _action  = action;
            _type    = type;
        }
Beispiel #4
0
        public InputDate(MainDGV dgvMain, Actions action, WayBillType type)
        {
            InitializeComponent();

            _dgvMain = dgvMain;
            _action = action;
            _type = type;
        }
Beispiel #5
0
        private void formRouteList_Load(object sender, EventArgs e)
        {
            loadRegions();

            loadPoints();

            _dgvMain = new MainDGV(dgv);
        }
Beispiel #6
0
        private void formRouteList_Load(object sender, EventArgs e)
        {
            loadRegions();

            loadPoints();

            _dgvMain = new MainDGV(dgv);
        }
Beispiel #7
0
        private void formMyPointList_Load(object sender, EventArgs e)
        {
            loadRegions();

            loadData();

            _dgvMain = new MainDGV(dgv);

            ResizeDGV();
        }
Beispiel #8
0
        private void formMyPointList_Load(object sender, EventArgs e)
        {
            loadRegions();

            loadData();

            _dgvMain = new MainDGV(dgv);

            ResizeDGV();
        }
Beispiel #9
0
        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);
        }
Beispiel #10
0
        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);
        }
Beispiel #11
0
        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();
 }
Beispiel #13
0
 public MyMenuItemFactory(MainDGV dgvMain)
 {
     _dgvMain = dgvMain;
     _mainStatus = MainStatus.getInstance();
     _carList = CarList.getInstance();
 }
Beispiel #14
0
 public MyMenu(MainDGV dgvMain)
 {
     _mainStatus = MainStatus.getInstance();
     _factory = new MyMenuItemFactory(dgvMain);
 }
Beispiel #15
0
 public MyMenu(MainDGV dgvMain)
 {
     _mainStatus = MainStatus.getInstance();
     _factory    = new MyMenuItemFactory(dgvMain);
 }
Beispiel #16
0
 public DriverMails(MainDGV dgvMain)
 {
     _dgvMain = dgvMain;
 }
Beispiel #17
0
 public DriverMails(MainDGV dgvMain)
 {
     _dgvMain = dgvMain;
 }