public View(View view) : this() { //copy all members (deep copy) _name = view._name; _isEdited = view._isEdited; _showTypeCompleted = view._showTypeCompleted; _showTypeAdultContent = view._showTypeAdultContent; _showTypeMissingEpisodes = view._showTypeMissingEpisodes; _showTypeBluRay = view._showTypeBluRay; _showTypeDVD = view._showTypeDVD; _showTypeFavorite = view._showTypeFavorite; _showTypeNewEps = view._showTypeNewEps; _showTypeNewSeason = view._showTypeNewSeason; _showTypeRecentlyWatched = view._showTypeRecentlyWatched; _showTypeWatched = view._showTypeWatched; _showByDefault = view._showByDefault; _sortType = view._sortType; _labelStyleEps = view._labelStyleEps; _labelStyleGroups = view._labelStyleGroups; foreach (KeyValuePair<string, eShowType> y in view._dctGenre) _dctGenre.Add(y.Key, y.Value); foreach (KeyValuePair<string, eShowType> y in view._dctYear) _dctYear.Add(y.Key, y.Value); foreach (KeyValuePair<string, eShowType> y in view._dctAudioLang) _dctAudioLang.Add(y.Key, y.Value); foreach (KeyValuePair<string, eShowType> y in view._dctSubtitleLang) _dctSubtitleLang.Add(y.Key, y.Value); foreach (KeyValuePair<string, eShowType> y in view._dctAnimeType) _dctAnimeType.Add(y.Key, y.Value); }
public ShowTypeIndexer(View view, Dictionary<string, eShowType> dct) { _view = view; _dct = dct; }
public bool EqualsView(View v) { if (!ContentEquals(v)) return false; if (_labelStyleEps != v._labelStyleEps || _labelStyleGroups != v._labelStyleGroups || _sortType != v._sortType) return false; return true; }
public static int CompareByName(View x, View y) { return string.Compare(x.Name, y.Name, true); }
private void ChangeView(View v) { BaseConfig.MyAnimeLog.Write(string.Format("ChangeView: {0} - {1}", currentViewClassification, v == null ? "" : v.Name)); currentViewClassification = ViewClassification.Views; currentView = new View(v); currentStaticViewID = ""; settings.LastView = currentView; settings.LastViewClassification = currentViewClassification; settings.LastStaticViewID = currentStaticViewID; settings.Save(); //update skin setGUIProperty("SimpleCurrentView", v.DisplayName); }
protected override void OnPageLoad() { BaseConfig.MyAnimeLog.Write("Starting page load..."); SubClass(); hook = new KeyboardHook(); hook.KeyDown += new KeyEventHandlerEx(hook_KeyDown); hook.KeyUp += new KeyEventHandlerEx(hook_KeyUp); hook.IsEnabled = true; if (!isFirstInitDone) OnFirstStart(); currentViewClassification = settings.LastViewClassification; currentStaticViewID = settings.LastStaticViewID; currentView = settings.LastView; groupViewMode = settings.LastGroupViewMode; m_Facade.CurrentLayout = groupViewMode; //backdrop.LoadingImage = loadingImage; Console.Write(JMMServerVM.Instance.ServerOnline.ToString()); LoadFacade(); m_Facade.Focus = true; SkinSettings.Load(); //MainWindow.anidbProcessor.UpdateVotesHTTP(MainWindow.settings.Username, MainWindow.settings.Password); autoUpdateTimer.Start(); BaseConfig.MyAnimeLog.Write("Thumbs Setting Folder: {0}", settings.ThumbsFolder); //searching setGUIProperty(guiProperty.FindInput, " "); setGUIProperty(guiProperty.FindText, " "); setGUIProperty(guiProperty.FindMatch, " "); search = new SearchCollection(); search.List = m_Facade; search.ListItemSearchProperty = "DVDLabel"; search.Mode = settings.FindMode; search.StartWord = settings.FindStartWord; UpdateSearchPanel(false); DownloadAllImages(); }
protected override void OnPageLoad() { BaseConfig.MyAnimeLog.Write("Starting page load..."); pluginsIsShown = true; Utils.GetLatestVersionAsync(); //Removed will generate problems with MediaPortal //SubClass(); if (!isFirstInitDone) { OnFirstStart(); } currentViewClassification = settings.LastViewClassification; currentStaticViewID = settings.LastStaticViewID; currentView = settings.LastView; groupViewMode = settings.LastGroupViewMode; m_Facade.CurrentLayout = groupViewMode; //backdrop.LoadingImage = loadingImage; Console.Write(JMMServerVM.Instance.ServerOnline.ToString()); LoadFacade(); m_Facade.Focus = true; SkinSettings.Load(); //MainWindow.anidbProcessor.UpdateVotesHTTP(MainWindow.settings.Username, MainWindow.settings.Password); autoUpdateTimer.Start(); BaseConfig.MyAnimeLog.Write("Thumbs Setting Folder: {0}", settings.ThumbsFolder); //searching ClearGUIProperty(GuiProperty.FindInput); ClearGUIProperty(GuiProperty.FindText); ClearGUIProperty(GuiProperty.FindMatch); search = new SearchCollection(); search.List = m_Facade; search.ListItemSearchProperty = "DVDLabel"; search.Mode = settings.FindMode; search.StartWord = settings.FindStartWord; UpdateSearchPanel(false); DownloadAllImages(); }