コード例 #1
0
 public void AddTab(Tab tab)
 {
     tab.Owner = Status.Users.Current.Name;
     tab.Id = System.Guid.NewGuid();
     Status.Tabs.Add (tab); // not really sure this is even needed? ==> when new user connects
     Status.Users.ForEach (user => user.Callback.ReceiveTabAdded (tab));
 }
コード例 #2
0
 public void ScrollTabToTagId(Tab tab, string tagId)
 {
     Status.Users.ForOthers (user => user.Callback.ReceiveTabScrolledToTagId (tab, tagId));
 }
コード例 #3
0
 public void ScrollTabToDomId(Tab tab, int domId)
 {
     Status.Users.ForOthers (user => user.Callback.ReceiveTabScrolledToDomId (tab, domId));
 }
コード例 #4
0
 public void CloseTab(Tab tab)
 {
     Status.Tabs.Remove(tab);
     Status.Users.ForEach(user => user.Callback.ReceiveTabClosed(tab));
 }
コード例 #5
0
 public void ActivateTab(Tab tab)
 {
     Status.Users.ForOthers (user => user.Callback.ReceiveTabActivated (tab));
 }
コード例 #6
0
        public void UpdateTab(Tab tab)
        {
            Tab target = Status.Tabs.Find(x => x.Id == tab.Id);
            target.Title = tab.Title;
            target.Url = tab.Url;

            Status.Users.ForOthers(user => user.Callback.ReceiveTabUpdated(tab));
        }