private void RenameElement(object parameter) { //Creator.ChangeID( //bring up a window to change the id. once the id is set, confirm it RenamerWindow dlg = new RenamerWindow("Rename Element", Creator.Name); dlg.ShowDialog(); if (dlg.DialogResult == true) { //attempt to rename try { Creator.ChangeID(dlg.NewName); } catch (Exception e) { MessageBox.Show(e.Message); } } }