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

            W32.SetForegroundWindow(itf.handler);

            overlay.ShowDialog();
        }
예제 #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);
        }
예제 #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();
 }
예제 #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
 }
예제 #6
0
 public void AddItfToList(WinInterface itf, IList <WinInterface> aList)
 {
     aList.Add(itf);
 }
예제 #7
0
 public void MoveItfInList(WinInterface itf, IList <WinInterface> fromList, IList <WinInterface> toList)
 {
     fromList.Remove(itf);
     toList.Add(itf);
 }