/// <summary>Signals the object that initialization is starting.</summary> public virtual void BeginInit() { ScaleList = new List <float>() { 1.000F }.AsReadOnly(); // SetModel(new EmptyBoard()); Model = new EmptyBoard(); HotspotHex = HexCoords.EmptyUser; }
/// <summary>TODO</summary> public HexgridViewModel(PGNapoleonics.HexgridPanel.HexgridScrollable panel) { HotspotHex = HexCoords.EmptyUser; Panel = panel; Panel.HotspotHexChange += HotspotHexChange; Panel.MarginChanged += MarginChanged; // Panel.MouseAltClick += MouseAltClick; // Panel.MouseCtlClick += GoalHexChange; // Panel.MouseRightClick += MouseRightClick; // Panel.ScaleChange += ScaleChange; Scales = new List <float>() { 1.000F }.AsReadOnly(); Model = new EmptyBoard(); Grid = GetHexgrid(); }