public void RemoveItfInList(WinInterface itf) { ListNotAssing.Remove(itf); ListBackground.Remove(itf); ListBottom.Remove(itf); ListForeground.Remove(itf); }
private void GetRunningItfs() { if (ListNotAssing == null) { ListNotAssing = new ObservableCollection <WinInterface>(); } ListNotAssing.Clear(); foreach (WinInterface window in DesktopHandler.GetAllWindows()) { ListNotAssing.Add(window); } }
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 }