Ejemplo n.º 1
0
 public AddBookmarksModel(ILogin login, string name, AddFromUri addFromUriModel, AddNewModel mainModel)
 {
     this.bookmarks = new ObservableCollection <SelectedItem <IManga> >();
     this.Header    = name;
     this.Add       = new AddSelected(addFromUriModel, mainModel);
     this.Login     = new LoginModel(login);
     if (login != null)
     {
         login.LoginStateChanged += LoginOnLoginStateChanged;
     }
 }
Ejemplo n.º 2
0
        public override void Load()
        {
            base.Load();

            var addFromUri = new AddFromUri(this);

            this.BookmarksModels.Add(addFromUri);
            var settings = Core.NHibernate.Repository.GetStateless <Core.Services.MangaSetting>().ToList();

            foreach (var setting in settings)
            {
                this.BookmarksModels.Add(new AddBookmarksModel(setting.Login, setting.MangaName, setting.Manga, addFromUri, this));
            }
        }
Ejemplo n.º 3
0
        public override void Load()
        {
            base.Load();

            var addFromUri = new AddFromUri(this);

            this.BookmarksModels.Add(addFromUri);
            var settings = Core.NHibernate.Repository.GetStateless <Core.Services.MangaSetting>().ToList();

            foreach (var setting in settings.GroupBy(s => s.Login).Where(s => s.Key != null))
            {
                var name = string.Join(" \\ ", setting.Select(s => s.MangaName));
                this.BookmarksModels.Add(new AddBookmarksModel(setting.Key, name, addFromUri, this));
            }
        }