public int getNrMonitors() { int nrMonitors = 1; if (this.action == Actions.Test || this.action == Actions.Preview) { nrMonitors = hwnds.Length; } else { nrMonitors = Screen.AllScreens.Length; } return nrMonitors; }