public void RemoveTab(TabData tab) { this.tabItemsSource.Remove(tabItemsSource.First(f => f.TabData == tab)); this.closedTabsStack.Push(tab); if (this._rebirthTabCommand != null) this._rebirthTabCommand.RaiseCanExecuteChanged(); }
public LocalNGViewModel(TabData tabData, TwitterStatusBase status) { this._tabdata = tabData; this._status = status; this._selectedText = String.Empty; RejectModeIndex = 0; }
/// <summary> /// オリジナルのタブデータのコピー インスタンスを作成します。 /// </summary> /// <param name="original"></param> public TabData(TabData original) : this() { this.LinkAccounts = original.LinkAccounts; this.TweetModelFilterQueryString = original.TweetModelFilterQueryString; this.TabName = original.TabName; this.LockTab = original.LockTab; this.UnnotifyTab = original.UnnotifyTab; this.Lists = original.Lists; this.Queries = original.Queries; }
public void AddTab(TabData tab, bool select = true) { var newvm = new TabItemViewModel(this, tab); this.tabItemsSource.Add(newvm); if (select || this.tabItemsSource.Count == 1) { this.SelectedTabViewModel = newvm; } if (this._rebirthTabCommand != null) this._rebirthTabCommand.RaiseCanExecuteChanged(); }
public TabConfigureViewModel(TabData td) { this.TabData = td; this.TabName = td.TabName; this.TabLocked = td.LockTab; this.TabUnnotify = td.UnnotifyTab; this.NotifySound = td.NotificationSound; this.StreamingQueryItems = td.Queries; this.RegisteredListItems = td.Lists; this._filterEditorViewModel = new FilterEditControlViewModel(td.OriginalFilter); Setting.SettingValueChanged += new Action(() => this.RaisePropertyChanged(() => PowerUserMode)); }
/// <param name="tabData"></param> internal static void RaiseCurrentTabDataChanged(TabData tabData) { CurrentTabData = tabData; CurrentTabDataChanged(tabData); }
internal static void RaiseTabDatasChanged(TabData[] datas) { TabDatas = datas; TabDatasChanged(datas); }
/// <summary> /// 新しいタブを作るようにメインウィンドウに指示します。 /// </summary> /// <param name="tdata">新しいタブに紐づけるタブデータ</param> public static void RaiseCreateTab(TabData tdata) { CreateTab(tdata); }
/// <summary> /// 新しいタブを作るようにメインウィンドウに指示します。 /// </summary> /// <param name="tdata">新しいタブに紐づけるタブデータ</param> public static void RaiseCreateTab(TabData tdata) { dispatcher.BeginInvoke(() => CreateTab(tdata)); }