private void OnClickImport(object sender, EventArgs e) { if ((multiimport == null) || (multiimport.IsDisposed)) { MultiComponentList multi = (MultiComponentList)TreeViewMulti.SelectedNode.Tag; int id = int.Parse(TreeViewMulti.SelectedNode.Name); if (multi != MultiComponentList.Empty) { DialogResult result = MessageBox.Show(String.Format("Are you sure to replace {0} (0x{0:X})", id), "Import", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2); if (result != DialogResult.Yes) { return; } } multiimport = new MultiImport(this, id); multiimport.TopMost = true; multiimport.Show(); } }
private void OnClickImport(object sender, EventArgs e) { if ((multiimport == null) || (multiimport.IsDisposed)) { MultiComponentList multi = (MultiComponentList)TreeViewMulti.SelectedNode.Tag; int id = int.Parse(TreeViewMulti.SelectedNode.Name); if (multi != MultiComponentList.Empty) { DialogResult result = MessageBox.Show(String.Format("Are you sure to replace {0} (0x{0:X})", id), "Import", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2); if (result != DialogResult.Yes) return; } multiimport = new MultiImport(this, id); multiimport.TopMost = true; multiimport.Show(); } }