private void LandmarksReady(object sender, EventArgs <ILandmarkCollection> e) { if (InvokeRequired) { Invoke((Action) delegate { MenuBarToolStrip.LoadLandmarkMenu(e.Value); }); } else { MenuBarToolStrip.LoadLandmarkMenu(e.Value); } }
private void SetMapBoard(IPanelModel mapBoard) { HexgridPanel.SetModel(MapBoard = mapBoard); MapBoard.ShowPathArrow = MenuBarToolStrip.ShowPathArrow; MapBoard.ShowFov = MenuBarToolStrip.ShowFieldOfView; MapBoard.FovRadius = MapBoard.RangeCutoff = MenuBarToolStrip.PathCutover; MenuBarToolStrip.LoadLandmarkMenu(MapBoard.Landmarks); CustomCoords = new CustomCoords(new IntMatrix2D(2, 0, 0, -2, 0, 2 * MapBoard.MapSizeHexes.Height - 1, 2)); HexgridPanel.Focus(); }