Beispiel #1
0
        public override void Load(DbSet <DbOption> dbOptions)
        {
            if (!dbOptions.Any(o => o.Key == Key))
            {
                return;
            }
            var val      = dbOptions.Single(o => o.Key == Key).Value;
            var valSplit = val.Split(",");

            if (valSplit.Any(x => !x.EqualsAny(TilesMenu.MenuTiles.Select(t => t.Name).ToArray())))
            {
                return;
            }

            TilesMenu.Reorder(valSplit);
        }
Beispiel #2
0
 public MenuExtendedState(string key, TilesMenu tilesMenu) : base(key)
 {
     TilesMenu = tilesMenu;
 }
Beispiel #3
0
 public TilesOrderState(string key, TilesMenu tilesMenu, IEnumerable <string> tabOrder) : base(key)
 {
     TilesMenu = tilesMenu;
     TabOrder  = tabOrder;
 }