示例#1
0
        private void btnAddShipPart_Click(object sender, EventArgs e)
        {
            ShipPart         shipPart   = _car.createShipPart();
            ShipPart_AddEdit shipPartAE = new ShipPart_AddEdit(shipPart);

            if (shipPartAE.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                shipPartList.Add(shipPart);
                loadShipPart();
            }
        }
示例#2
0
        private void dgvShipPart_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int idShipPart = 0;

            int.TryParse(dgvShipPart.Rows[e.RowIndex].Cells[0].Value.ToString(), out idShipPart);

            ShipPart         shipPart   = shipPartList.getItem(idShipPart);
            ShipPart_AddEdit shipPartAE = new ShipPart_AddEdit(shipPart);

            if (shipPartAE.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                loadShipPart();
            }
        }
示例#3
0
        private void DoubleClickShipPart(Point point)
        {
            if (_dgvMain.GetID() == 0)
            {
                return;
            }

            ShipPartList shipPartList = ShipPartList.getInstance();
            ShipPart     shipPart     = shipPartList.getItem(_dgvMain.GetID());

            ShipPart_AddEdit shipPartAE = new ShipPart_AddEdit(shipPart);

            if (shipPartAE.ShowDialog() == DialogResult.OK)
            {
                loadCars();
            }
        }
示例#4
0
        private void dgvShipPart_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int idShipPart = 0;
            int.TryParse(dgvShipPart.Rows[e.RowIndex].Cells[0].Value.ToString(), out idShipPart);

            ShipPart shipPart = shipPartList.getItem(idShipPart);
            ShipPart_AddEdit shipPartAE = new ShipPart_AddEdit(shipPart);

            if (shipPartAE.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                loadShipPart();
        }
示例#5
0
        private void btnAddShipPart_Click(object sender, EventArgs e)
        {
            ShipPart shipPart = _car.createShipPart();
            ShipPart_AddEdit shipPartAE = new ShipPart_AddEdit(shipPart);

            if (shipPartAE.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                shipPartList.Add(shipPart);
                loadShipPart();
            }
        }
示例#6
0
        private void DoubleClickShipPart(Point point)
        {
            if (_dgvMain.GetID() == 0)
                return;

            ShipPartList shipPartList = ShipPartList.getInstance();
            ShipPart shipPart = shipPartList.getItem(_dgvMain.GetID());

            ShipPart_AddEdit shipPartAE = new ShipPart_AddEdit(shipPart);
            if (shipPartAE.ShowDialog() == DialogResult.OK)
            {
                loadCars();
            }
        }