private void addAssignToolStripMenuItem_Click(object sender, EventArgs e) { var frm = new AssetMaintenance(); frm.ShowDialog(); PopulateAssets(); }
private void editAssignToolStripMenuItem_Click(object sender, EventArgs e) { // get asset from the grid var asset = (Asset)uxAssets.CurrentRow.DataBoundItem; // pass it to the constructor of the maintenance form var frm = new AssetMaintenance(asset); frm.ShowDialog(); PopulateAssets(); }