Exemplo n.º 1
0
        private void BtnAdd_MouseUp(object sender, MouseEventArgs e)
        {
            FormSettingCars fCar = new FormSettingCars();
            DialogResult    Ret  = fCar.ShowDialog();

            if (Ret == DialogResult.Yes)
            {
                Setup();
            }

            fCar.Close();
            fCar.Dispose();
        }
Exemplo n.º 2
0
        private void BtnEdit_MouseUp(object sender, MouseEventArgs e)
        {
            if (CheckDataAndSelect() == false)
            {
                return;
            }

            if (dgvCar.CurrentRow.Selected == true)
            {
                DaoPartNumber PN = (DaoPartNumber)dgvCar.Rows[dgvCar.CurrentCell.RowIndex].DataBoundItem;

                FormSettingCars fCar = new FormSettingCars(PN);

                DialogResult Ret = fCar.ShowDialog();

                if (Ret == DialogResult.Yes)
                {
                    Setup();
                }

                fCar.Close();
                fCar.Dispose();
            }
        }