private void EditTool() { ListViewItem lvi = GetSelectedItem(); if (lvi == null) { return; } if (lvi.Tag == null) { return; } string toolId = lvi.Tag as string; if (toolId == null) { return; } BuildToolForm btf = new BuildToolForm(_buildTools, toolId); if (btf.ShowDialog() == DialogResult.OK) { Load(); } }
private void CreateTool() { BuildToolForm btf = new BuildToolForm(_buildTools, null); if (btf.ShowDialog() == DialogResult.OK) { Load(); } }