private void button1_Click(object sender, EventArgs e) { FrmCombustible c = new FrmCombustible(null); c.ShowDialog(); refreshDataGrid(); }
private void button2_Click(object sender, EventArgs e) { int?id = getId(); if (id != null) { FrmCombustible c = new FrmCombustible(id); c.ShowDialog(); refreshDataGrid(); } }