private void itemEditorToolStripMenuItem_Click(object sender, EventArgs e) { if (this.itemEditor == null) { if (string.IsNullOrEmpty(this.dataPath)) LoadDataPath(); this.itemEditor = new ItemEditor(this.dataPath); this.itemEditor.Disposed += itemEditor_Disposed; this.itemEditor.MdiParent = this; this.itemEditor.Show(); } }
private void itemEditor_Disposed(object sender, EventArgs e) { this.itemEditor = null; }