Exemplo n.º 1
0
        private void LoadCollection(WindowCollection coll)
        {
            windowsListBox.Items.Clear();

            if (coll.Windows.Count > 0)
            {
                foreach (Window win in coll.Windows)
                {
                    windowsListBox.Items.Add(win.title);
                }
            }
        }
Exemplo n.º 2
0
 // ideally this should utilize the find/move single window function, however
 // the Hwnd library i'm using does not really allow for that :/
 private void MoveLayoutWindows(WindowCollection coll)
 {
     foreach (HwndObject o in HwndObject.GetWindows())
     {
         foreach (Window w in coll.Windows)
         {
             if (TitlesMatch(w, o))
             {
                 w.MoveAndResize(o);
             }
         }
     }
 }