Esempio n. 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            if (Settings.Default.Preferences == null)
            {
                Settings.Default.Preferences = new Preferences();
            }

            if (Settings.Default.Favorites == null)
            {
                Settings.Default.Favorites = new Favorites();
            }

            if (Settings.Default.UserTags == null)
            {
                Settings.Default.UserTags = new UserTags();
            }

            Preferences = Settings.Default.Preferences;
            Favorites   = Settings.Default.Favorites;
            UserTags    = Settings.Default.UserTags;

            Characters = new Characters();
            TagGroups  = new TagGroups(Characters);

            MainWindow = new MainWindow();
        }
Esempio n. 2
0
 public FirstLetterOfTagsCache(TagGroups tagGroups) : base()
 {
     this.tagGroups = tagGroups;
 }
Esempio n. 3
0
 public TagsCache(TagGroups tagGroups) : base()
 {
     this.tagGroups = tagGroups;
 }