Esempio n. 1
0
 public void RemoveItfInList(WinInterface itf)
 {
     ListNotAssing.Remove(itf);
     ListBackground.Remove(itf);
     ListBottom.Remove(itf);
     ListForeground.Remove(itf);
 }
Esempio n. 2
0
        public void Scale(WinInterface itf)
        {
            ScaleOverlay overlay = new ScaleOverlay(this, itf);

            W32.SetForegroundWindow(itf.handler);

            overlay.ShowDialog();
        }
Esempio n. 3
0
        public void MoveItfBetweenItf(WinInterface sourceItf, WinInterface targetItf)
        {
            IList <WinInterface> targetList = GetListOfItf(targetItf);

            RemoveItfInList(sourceItf);
            int i = targetList.IndexOf(targetItf);

            targetList.Insert(i, sourceItf);
        }
Esempio n. 4
0
 public ScaleOverlay(WindowOrderManager wom, WinInterface itf)
 {
     this.itf = itf;
     InitializeComponent();
     this.Topmost  = true;
     this.KeyDown += new KeyEventHandler(MainWindow_KeyDown);
     this.Width    = SystemParameters.PrimaryScreenWidth;
     this.Height   = SystemParameters.PrimaryScreenHeight;
     this.Top      = SystemParameters.VirtualScreenTop;
     this.Left     = SystemParameters.VirtualScreenLeft;
     this.Activate();
 }
Esempio n. 5
0
 private IList <WinInterface> GetListOfItf(WinInterface itf)
 {
     if (ListNotAssing.Contains(itf))
     {
         return(ListNotAssing);
     }
     if (ListBackground.Contains(itf))
     {
         return(ListBackground);
     }
     if (ListBottom.Contains(itf))
     {
         return(ListBottom);
     }
     if (ListForeground.Contains(itf))
     {
         return(ListForeground);
     }
     return(null); //todo: trow error
 }
Esempio n. 6
0
 public void AddItfToList(WinInterface itf, IList <WinInterface> aList)
 {
     aList.Add(itf);
 }
Esempio n. 7
0
 public void MoveItfInList(WinInterface itf, IList <WinInterface> fromList, IList <WinInterface> toList)
 {
     fromList.Remove(itf);
     toList.Add(itf);
 }