private void headerToolStripMenuItem_Click(object sender, EventArgs e) { MapperMap map = EditorData.CurrentMap; if (map == null) { MessageBox.Show("Map not loaded!"); return; } frmHeaderEditor formHeaderEditor = new frmHeaderEditor(map.Header); if (formHeaderEditor.ShowDialog() == DialogResult.OK) { // TODO: update map header } }
private void headerToolStripMenuItem_Click( object sender, EventArgs e ) { MapperMap map = EditorData.CurrentMap; if( map == null ) { MessageBox.Show( "Map not loaded!" ); return; } frmHeaderEditor formHeaderEditor = new frmHeaderEditor( map.Header ); if( formHeaderEditor.ShowDialog() == DialogResult.OK ) { // TODO: update map header } }