public void RemoveItfInList(WinInterface itf) { ListNotAssing.Remove(itf); ListBackground.Remove(itf); ListBottom.Remove(itf); ListForeground.Remove(itf); }
public void Scale(WinInterface itf) { ScaleOverlay overlay = new ScaleOverlay(this, itf); W32.SetForegroundWindow(itf.handler); overlay.ShowDialog(); }
public void MoveItfBetweenItf(WinInterface sourceItf, WinInterface targetItf) { IList <WinInterface> targetList = GetListOfItf(targetItf); RemoveItfInList(sourceItf); int i = targetList.IndexOf(targetItf); targetList.Insert(i, sourceItf); }
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(); }
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 }
public void AddItfToList(WinInterface itf, IList <WinInterface> aList) { aList.Add(itf); }
public void MoveItfInList(WinInterface itf, IList <WinInterface> fromList, IList <WinInterface> toList) { fromList.Remove(itf); toList.Add(itf); }