public void Edit() { if (editor != null && editor.Created) { editor.Focus(); } else { editor = new RoomEditor(); editor.Save += new EventHandler(editor_Save); editor.CreationCode = CreationCode; editor.Text = "Room Properties: " + name; editor.MdiParent = Program.IDE; editor.Show(); } }
public void Edit() { if (editor != null && editor.Created) editor.Focus(); else { editor = new RoomEditor(); editor.Save += new EventHandler(editor_Save); editor.CreationCode = CreationCode; editor.Text = "Room Properties: " + name; editor.MdiParent = Program.IDE; editor.Show(); } }