/// <summary> /// Handles the Click event of the <see cref="loadMapToolStripMenuItem"/> control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> void loadMapToolStripMenuItem_Click(object sender, EventArgs e) { using (var uiFrm = new MapUITypeEditorForm(null)) { var result = uiFrm.ShowDialog(this); if (result != DialogResult.OK && result != DialogResult.Yes) { return; } var map = uiFrm.SelectedItem; if (map == null) { return; } CreateEditMapForm(map); } }
/// <summary> /// Handles the Click event of the <see cref="loadMapToolStripMenuItem"/> control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> void loadMapToolStripMenuItem_Click(object sender, EventArgs e) { using (var uiFrm = new MapUITypeEditorForm(null)) { var result = uiFrm.ShowDialog(this); if (result != DialogResult.OK && result != DialogResult.Yes) { return; } var map = uiFrm.SelectedItem; if (map == null) { return; } var editorFrm = new EditMapForm(); editorFrm.MapScreenControl.ChangeMap(map.ID); editorFrm.Text = "[" + map.ID + "] " + map.Name; editorFrm.Show(dockPanel); } }
/// <summary> /// Handles the Click event of the <see cref="loadMapToolStripMenuItem"/> control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> void loadMapToolStripMenuItem_Click(object sender, EventArgs e) { using (var uiFrm = new MapUITypeEditorForm(null)) { var result = uiFrm.ShowDialog(this); if (result != DialogResult.OK && result != DialogResult.Yes) return; var map = uiFrm.SelectedItem; if (map == null) return; var editorFrm = new EditMapForm(); editorFrm.MapScreenControl.ChangeMap(map.ID); editorFrm.Text = "[" + map.ID + "] " + map.Name; editorFrm.Show(dockPanel); } }
/// <summary> /// Handles the Click event of the <see cref="loadMapToolStripMenuItem"/> control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> void loadMapToolStripMenuItem_Click(object sender, EventArgs e) { using (var uiFrm = new MapUITypeEditorForm(null)) { var result = uiFrm.ShowDialog(this); if (result != DialogResult.OK && result != DialogResult.Yes) return; var map = uiFrm.SelectedItem; if (map == null) return; CreateEditMapForm(map); } }