Ejemplo n.º 1
0
        private void WriteSettings()
        {
            Settings.Window.State    = WindowState;
            Settings.Window.Location = Location;
            Settings.Window.Size     = Size;

            Settings.Lists.Tags.Font.Size      = tagsTreeView.TreeView.Font.Size;
            Settings.Lists.Bookmarks.Font.Size = bookmarksTreeView.Font.Size;
            Settings.Lists.Library.Font.Size   = libraryTreeView.TreeView.Font.Size;
            Settings.Lists.Browsing.Font.Size  = browsingTreeView.TreeView.Font.Size;

            Settings.SplitterDistances.Console = splitContainer1.SplitterDistance;
            Settings.SplitterDistances.Details = splitContainer2.SplitterDistance;
            Settings.SplitterDistances.Lists   = splitContainer3.SplitterDistance;

            Settings.Gallery.ToolStrip.History = galleryModel.Searches.ToList();
            Settings.Gallery.ToolStrip.Filters = galleryModel.Filters.ToList();
            Settings.Details.ToolStrip.History = detailsModel.Searches.ToList();
            Settings.Library.ToolStrip.Filters = libraryModel.Filters.ToList();

            Settings.TabControls.Lists.SelectedTab   = listsTabControl.SelectedTab.Name;
            Settings.TabControls.Browser.SelectedTab = mainViewTabControl.SelectedTab.Name;
            Settings.TabControls.Details.SelectedTab = detailsTabControl.SelectedTab.Name;

            JsonUtility.SaveToFile(Settings, pathFormatter.GetConfiguration("settings"));
        }
Ejemplo n.º 2
0
        private void WriteTags()
        {
            if (!tagsModel.IsDirty)
            {
                return;
            }

            JsonUtility.SaveToFile(tagsModel.AllTags, pathFormatter.GetConfiguration("tags"));
        }
Ejemplo n.º 3
0
 private void WriteTheme()
 {
     JsonUtility.SaveToFile(theme, pathFormatter.GetConfiguration("theme"));
 }
Ejemplo n.º 4
0
 private void WriteLibraryFilters()
 {
     JsonUtility.SaveToFile(Settings.Library.ToolStrip.Filters, pathFormatter.GetConfiguration("library-filters"));
 }
Ejemplo n.º 5
0
 private void WriteSearchFilters()
 {
     JsonUtility.SaveToFile(Settings.Gallery.ToolStrip.Filters, pathFormatter.GetConfiguration("search-filters"));
 }
Ejemplo n.º 6
0
 private void WriteVisitedGalleryHistory()
 {
     JsonUtility.SaveToFile(Settings.Details.ToolStrip.History, pathFormatter.GetConfiguration("details-searches"));
 }
Ejemplo n.º 7
0
 private void WriteVisitedSearchHistory()
 {
     JsonUtility.SaveToFile(Settings.Gallery.ToolStrip.History, pathFormatter.GetConfiguration("search-searches"));
 }
Ejemplo n.º 8
0
 private void WriteSearchHistory()
 {
     JsonUtility.SaveToFile(browsingModel.SearchHistory, pathFormatter.GetConfiguration("searches"));
 }
Ejemplo n.º 9
0
 private void WriteBookmarks()
 {
     JsonUtility.SaveToFile(bookmarksModel.BookmarkFolders, pathFormatter.GetConfiguration("bookmark-folders"));
     JsonUtility.SaveToFile(bookmarksModel.Bookmarks, pathFormatter.GetConfiguration("bookmarks"));
 }
Ejemplo n.º 10
0
 private void WriteHidelist()
 {
     JsonUtility.SaveToFile(metadataKeywordLists.Hidelist, pathFormatter.GetConfiguration("hidelist"));
 }