private void mapEditorToolStripMenuItem_Click(object sender, EventArgs e) { if (mapEditor == null) { if (string.IsNullOrEmpty(this.dataPath)) LoadDataPath(); this.mapEditor = new MapEditor(this.dataPath); this.mapEditor.Disposed += _mapEditor_Disposed; this.mapEditor.MdiParent = this; this.mapEditor.Show(); } }
public MapEditorProperties(MapEditor mapEditor) { _mapEditor = mapEditor; }
private void _mapEditor_Disposed(object sender, EventArgs e) { this.mapEditor = null; }