Esempio n. 1
0
 private void CloseTabExecuted(TabModel item)
 {
     LeftDockItems.Remove(SelectedDockItem);
     TopDockItems.Remove(SelectedDockItem);
     RightDockItems.Remove(SelectedDockItem);
     BottomDockItems.Remove(SelectedDockItem);
 }
Esempio n. 2
0
 private void TogglePinStatusExecuted(TabModel item)
 {
     item = SelectedDockItem;
     if (LeftDockItems.Contains(item))
     {
         LeftDockItems.Remove(item);
         AddItem(item, null, Dock.Left);
     }
     else if (TopDockItems.Contains(item))
     {
         TopDockItems.Remove(item);
         AddItem(item, null, Dock.Top);
     }
     else if (RightDockItems.Contains(item))
     {
         RightDockItems.Remove(item);
         AddItem(item, null, Dock.Right);
     }
     else if (BottomDockItems.Contains(item))
     {
         BottomDockItems.Remove(item);
         AddItem(item, null, Dock.Bottom);
     }
 }