Exemplo n.º 1
0
 public void RemoveItfInList(WinInterface itf)
 {
     ListNotAssing.Remove(itf);
     ListBackground.Remove(itf);
     ListBottom.Remove(itf);
     ListForeground.Remove(itf);
 }
Exemplo n.º 2
0
        private void GetRunningItfs()
        {
            if (ListNotAssing == null)
            {
                ListNotAssing = new ObservableCollection <WinInterface>();
            }

            ListNotAssing.Clear();

            foreach (WinInterface window in DesktopHandler.GetAllWindows())
            {
                ListNotAssing.Add(window);
            }
        }
Exemplo n.º 3
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
 }