private void modificar_Click(object sender, EventArgs e) { if (DGV.SelectedRows.Count > 0) { editor = new TrucksEditor(ref manage); manage.setEditor(editor); manage.setModifyFieldData(); editor.ShowDialog(this); } else { MessageBox.Show("No Hay Nada Seleccionado..."); } }
private void agregar_Click(object sender, EventArgs e) { editor = new TrucksEditor(ref manage); manage.setEditor(editor); editor.ShowDialog(this); }