예제 #1
0
파일: MainWindow.cs 프로젝트: dizzydezz/jmm
        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();
        }
예제 #2
0
파일: MainWindow.cs 프로젝트: dizzydezz/jmm
        protected override void OnPageDestroy(int new_windowId)
        {
            hook.IsEnabled = false;
            hook.UnHook();
            hook = null;
            UnSubClass();

            base.OnPageDestroy(new_windowId);
        }