public DocumentView Open(string fileName) { DocumentView view = new MapEditView(); view.Load(fileName); return(view); }
private static void menuMapProps_Click(object sender, EventArgs e) { MapEditView editor = PluginManager.Core.ActiveDocument as MapEditView; using (MapPropertiesForm form = new MapPropertiesForm(editor.Map)) { if (form.ShowDialog() == DialogResult.OK) { editor.SetTileSize(editor.Map.Tileset.TileWidth, editor.Map.Tileset.TileHeight); } } }
private static void menuRecenter_Click(object sender, EventArgs e) { MapEditView editor = PluginManager.Core.ActiveDocument as MapEditView; editor?.MapControl.CenterMap(); }
public DocumentView New() { DocumentView view = new MapEditView(); return(view.NewDocument() ? view : null); }
public DocumentView Open(string fileName) { DocumentView view = new MapEditView(); view.Load(fileName); return view; }
public DocumentView New() { DocumentView view = new MapEditView(); return view.NewDocument() ? view : null; }