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(); }
private void ChangeStaticView(ViewClassification vClass, string id) { BaseConfig.MyAnimeLog.Write(string.Format("ChangeStaticView: {0} - {1}", vClass, id)); currentViewClassification = vClass; currentStaticViewID = id; settings.LastViewClassification = currentViewClassification; settings.LastStaticViewID = currentStaticViewID; settings.Save(); //update skin setGUIProperty("SimpleCurrentView", currentStaticViewID); }
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(); }