/// <summary>TODO</summary> public HexgridViewModel(HexgridPanel panel) { Panel = panel; Panel.HotspotHexChange += HotspotHexChange; Panel.MarginChanged += MarginChanged; // Panel.MouseAltClick += MouseAltClick; // Panel.MouseCtlClick += GoalHexChange; // Panel.MouseRightClick += MouseRightClick; // Panel.ScaleChange += ScaleChange; SetScales(new List <float>() { 0.250F, 0.297F, 0.354F, 0.420F, 0.500F, 0.594F, 0.707F, 0.841F, 1.000F, 1.189F, 1.414F, 1.684F, 2.000F }.AsReadOnly()); Grid = GetHexgrid(); }
protected void RefreshAfter(Action action) { action?.Invoke(); HexgridPanel.Refresh(); }