Exemplo n.º 1
0
        /// <summary>
        /// Конструктор модели.
        /// </summary>
        public DbShardGroupsModel()
        {
            _dbItemsModel = new DbItemsModel();
            _dbItemsModel.DbList.ForEach(item => item.Selected = true);
            Init();

            AddGroup();
            ShardGroups[1].MachinesCount = 2;
            AddGroup();
            ShardGroups[2].MachinesCount = 4;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Конструктор модели на основе модели списка бд.
 /// </summary>
 /// <param name="dbItems"></param>
 public DbShardGroupsModel(DbItemsModel dbItems)
 {
     _dbItemsModel = dbItems;
     Init();
 }