コード例 #1
0
 public override void SaveViewData()
 {
     if (lastActivateClass == this.GetHashCode())
     {
         lstCtrl.SaveViewDataToSettings();
     }
 }
コード例 #2
0
ファイル: SearchWindow.xaml.cs プロジェクト: nekopanda/EDCB
        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();
                }
            }
        }
コード例 #3
0
 protected override void WriteWindowSaveData()
 {
     lstCtrl.SaveViewDataToSettings();
     base.WriteWindowSaveData();
     Settings.Instance.SearchWndTabsHeight  = grid_Tabs.Height.Value;
     Settings.Instance.SearchWndJunreHeight = Math.Min(searchKeyView.grid_Junre.ActualHeight, searchKeyView.grid_Filter.ActualHeight - 6);
     Settings.Instance.ArcSearch            = searchKeyView.checkBox_noArcSearch.IsChecked == false;
 }
コード例 #4
0
        protected override void WriteWindowSaveData()
        {
            if (noSearchSettingSave == false)
            {
                Settings.Instance.InfoSearchData = SearchInfo.DeepClone();
            }
            Settings.Instance.InfoSearchItemTooltip = checkBox_ShowToolTip.IsChecked == true;
            lstCtrl.SaveViewDataToSettings();

            base.WriteWindowSaveData();
        }
コード例 #5
0
        protected override void WriteWindowSaveData()
        {
            Settings.Instance.InfoSearchLastWord          = TextBox_SearchWord.Text;
            Settings.Instance.InfoSearchTitleOnly         = checkBox_TitleOnly.IsChecked == true;
            Settings.Instance.InfoSearchItemTooltip       = checkBox_ShowToolTip.IsChecked == true;
            Settings.Instance.InfoSearchReserveInfo       = checkBox_ReserveInfo.IsChecked == true;
            Settings.Instance.InfoSearchRecInfo           = checkBox_RecInfo.IsChecked == true;
            Settings.Instance.InfoSearchEpgAutoAddInfo    = checkBox_EpgAutoAddInfo.IsChecked == true;
            Settings.Instance.InfoSearchManualAutoAddInfo = checkBox_ManualAutoAddInfo.IsChecked == true;
            lstCtrl.SaveViewDataToSettings();

            base.WriteWindowSaveData();
        }
コード例 #6
0
ファイル: InfoWindow.xaml.cs プロジェクト: nekopanda/EDCB
 private void Window_Closing(object sender, CancelEventArgs e)
 {
     lstCtrl.SaveViewDataToSettings();
     if (!trueClosing)
     {
         e.Cancel   = true;
         Visibility = Visibility.Hidden;
         return;
     }
     else
     {
         (DataContext as InfoWindowViewModel).PropertyChanged -= dataContextChanged;
         notifyIcon.Dispose();
         notifyIcon = null;
     }
 }
コード例 #7
0
 public void SaveViewData()
 {
     lstCtrl.SaveViewDataToSettings();
 }
コード例 #8
0
ファイル: SearchWindow.xaml.cs プロジェクト: friendgo777/EDCB
 protected override void WriteWindowSaveData()
 {
     lstCtrl.SaveViewDataToSettings();
     base.WriteWindowSaveData();
     Settings.Instance.SearchWndTabsHeight = grid_Tabs.Height.Value;
 }