public override void SaveViewData() { if (lastActivateClass == this.GetHashCode()) { lstCtrl.SaveViewDataToSettings(); } }
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(); } } }
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; }
protected override void WriteWindowSaveData() { if (noSearchSettingSave == false) { Settings.Instance.InfoSearchData = SearchInfo.DeepClone(); } Settings.Instance.InfoSearchItemTooltip = checkBox_ShowToolTip.IsChecked == true; lstCtrl.SaveViewDataToSettings(); base.WriteWindowSaveData(); }
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(); }
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; } }
public void SaveViewData() { lstCtrl.SaveViewDataToSettings(); }
protected override void WriteWindowSaveData() { lstCtrl.SaveViewDataToSettings(); base.WriteWindowSaveData(); Settings.Instance.SearchWndTabsHeight = grid_Tabs.Height.Value; }