Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FrmTipoVehiculo c = new FrmTipoVehiculo(null);

            c.ShowDialog();
            refreshDataGrid();
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            int?id = getId();

            if (id != null)
            {
                FrmTipoVehiculo c = new FrmTipoVehiculo(id);
                c.ShowDialog();
                refreshDataGrid();
            }
        }