コード例 #1
0
        private AdminTagCollection createTagCollection()
        {
            var req  = new TagAdminRequestHandler();
            var fac  = new TagAdminVMFactory();
            var coll = new BaseAdminModelCollection <TagModel>(req, fac);

            return(new AdminTagCollection(coll));
        }
コード例 #2
0
 public AdminTagCollection(BaseAdminModelCollection <TagModel> collection)
 {
     Collection = collection;
     Name       = new StringInputField("Name", 1, 64);
     Type       = new StringInputField("Type", 1, 64);
     UpdateType = new StringInputField("Type", 1, 64);
     initCommands();
 }
コード例 #3
0
        private AdminUserCollection createUserCollection()
        {
            var req  = new UserAdminRequestHandler();
            var fac  = new UserAdminVMFactory();
            var coll = new BaseAdminModelCollection <UserModel>(req, fac);

            return(new AdminUserCollection(coll));
        }
コード例 #4
0
 public AdminSongCollection(BaseAdminModelCollection <SongModel> collection)
 {
     Collection = collection;
     Artist     = new StringInputField("Artist", 1, 64);
     Album      = new StringInputField("Album", 1, 64);
     AddTag     = new StringInputField("AddTag", 1, 64);
     initCommands();
 }
コード例 #5
0
 public AdminRatingCollection(BaseAdminModelCollection <RatingModel> collection)
 {
     Collection    = collection;
     DeleteCommand = new RelayCommand(handleDelete);
 }
コード例 #6
0
 public AdminUserCollection(BaseAdminModelCollection <UserModel> collection)
 {
     Collection   = collection;
     AddCommand   = new RelayCommand(handleAdded);
     ClearCommand = new RelayCommand(clear);
 }
コード例 #7
0
 public BaseCollectionUpdater(BaseAdminModelCollection <T> coll)
 {
     collection = coll;
 }