public bool checkwindow(string check) { // Contains already returns true/false, no need of additional checks return(Listofwindows.Contains(check)); }
public bool checkwindow() { return(Listofwindows.Contains(Check)); }