예제 #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));
        }