示例#1
0
 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();
 }
示例#2
0
 public LocalNGViewModel(TabData tabData, TwitterStatusBase status)
 {
     this._tabdata = tabData;
     this._status = status;
     this._selectedText = String.Empty;
     RejectModeIndex = 0;
 }
示例#3
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;
 }
示例#4
0
 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));
 }
示例#6
0
 /// <param name="tabData"></param>
 internal static void RaiseCurrentTabDataChanged(TabData tabData)
 {
     CurrentTabData = tabData;
     CurrentTabDataChanged(tabData);
 }
示例#7
0
 internal static void RaiseTabDatasChanged(TabData[] datas)
 {
     TabDatas = datas;
     TabDatasChanged(datas);
 }
示例#8
0
 /// <summary>
 /// 新しいタブを作るようにメインウィンドウに指示します。
 /// </summary>
 /// <param name="tdata">新しいタブに紐づけるタブデータ</param>
 public static void RaiseCreateTab(TabData tdata)
 {
     CreateTab(tdata);
 }
示例#9
0
 /// <summary>
 /// 新しいタブを作るようにメインウィンドウに指示します。
 /// </summary>
 /// <param name="tdata">新しいタブに紐づけるタブデータ</param>
 public static void RaiseCreateTab(TabData tdata)
 {
     dispatcher.BeginInvoke(() => CreateTab(tdata));
 }