예제 #1
0
        private void Window_Closed(object sender, System.EventArgs e)
        {
            //nekopanda版(8beae159)
            CommonManager.Instance.DB.EpgAutoAddUpdated -= DB_EpgAutoAddUpdated;

            if (this.Visibility == Visibility.Visible && this.WindowState == WindowState.Normal)
            {
                Settings.Instance.SearchWndWidth  = this.Width;
                Settings.Instance.SearchWndHeight = this.Height;
                Settings.Instance.SearchWndTop    = this.Top;
                Settings.Instance.SearchWndLeft   = this.Left;
            }

            Settings.Instance.SearchWndPinned = checkBox_windowPinned.IsChecked == true;
            lstCtrl.SaveViewDataToSettings();
            if (hideSearchWindow == this)
            {
                SearchWindow.SetHideSearchWindow(null);
            }

            if (AllClosing == false)
            {
                Settings.SaveToXmlFile();//検索ワード、ウィンドウ位置の保存
                if (Application.Current.Windows.OfType <SearchWindow>().Count(win => win.IsActive == true) == 0)
                {
                    mainWindow.ListFoucsOnVisibleChanged();
                }
            }
        }
예제 #2
0
 private void Window_StateChanged(object sender, EventArgs e)
 {
     if (this.WindowState != WindowState.Minimized)
     {
         if (hideSearchWindow == this)
         {
             SearchWindow.SetHideSearchWindow(null);
         }
     }
 }