Exemplo n.º 1
0
        /// <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;
        }
Exemplo n.º 2
0
        /// <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();
        }