コード例 #1
0
        private ToolStripMenuItem CreateNewFuelCard()
        {
            ToolStripMenuItem item = CreateItem("Добавить топливную карту");

            item.Click += delegate
            {
                FuelCard_AddEdit fuelCardAddEdit = new FuelCard_AddEdit(new FuelCard());
                if (fuelCardAddEdit.ShowDialog() == DialogResult.OK)
                {
                    _mainStatus.Set(_mainStatus.Get());
                }
            };
            return(item);
        }
コード例 #2
0
        private void DoubleClickFuelCard(Point point)
        {
            int id = _dgvMain.GetCarID();

            if (id == 0)
            {
                return;
            }

            FuelCardList fuelCardList = FuelCardList.getInstance();
            FuelCard     fuelCard     = fuelCardList.getItem(id);

            FuelCard_AddEdit fuelCardAddEdit = new FuelCard_AddEdit(fuelCard);

            if (fuelCardAddEdit.ShowDialog() == DialogResult.OK)
            {
                loadCars();
            }
        }
コード例 #3
0
 private ToolStripMenuItem CreateNewFuelCard()
 {
     ToolStripMenuItem item = CreateItem("Добавить топливную карту");
     item.Click += delegate
     {
         FuelCard_AddEdit fuelCardAddEdit = new FuelCard_AddEdit(new FuelCard());
         if (fuelCardAddEdit.ShowDialog() == DialogResult.OK)
             _mainStatus.Set(_mainStatus.Get());
     };
     return item;
 }
コード例 #4
0
ファイル: mainForm.cs プロジェクト: NextStalker/BBAuto
        private void DoubleClickFuelCard(Point point)
        {
            int id = _dgvMain.GetCarID();
            if (id == 0)
                return;

            FuelCardList fuelCardList = FuelCardList.getInstance();
            FuelCard fuelCard = fuelCardList.getItem(id);

            FuelCard_AddEdit fuelCardAddEdit = new FuelCard_AddEdit(fuelCard);
            if (fuelCardAddEdit.ShowDialog() == DialogResult.OK)
                loadCars();
        }