private void npcEditor_Disposed(object sender, EventArgs e) { this.npcEditor = null; }
private void npcEditorToolStripMenuItem_Click(object sender, EventArgs e) { if (this.npcEditor == null) { if (string.IsNullOrEmpty(this.dataPath)) LoadDataPath(); this.npcEditor = new NpcEditor(this.dataPath); this.npcEditor.Disposed += npcEditor_Disposed; this.npcEditor.MdiParent = this; this.npcEditor.Show(); } }