Ejemplo n.º 1
0
        public void SwitchTabOrder(string tabOne, string tabTwo)
        {
            TabDetails tabOneSwap = SwatWindows.Find(x => x.Window.GetType().Name == tabOne);

            SwatWindows.Remove(tabOneSwap);
            TabDetails tabTwoSwap = SwatWindows.Find(x => x.Window.GetType().Name == tabTwo);

            SwatWindows.Remove(tabTwoSwap);
            int idOne = tabOneSwap.PriorityID;
            int idTwo = tabTwoSwap.PriorityID;

            tabOneSwap.PriorityID = idTwo;
            tabTwoSwap.PriorityID = idOne;
            SwatWindows.Add(tabOneSwap);
            SwatWindows.Add(tabTwoSwap);
        }
Ejemplo n.º 2
0
 public void AddWindowTab(TabDetails details)
 {
     SwatWindows.Add(details);
 }