The property "WorkingArea" is used to get the working area of the display. The working area is the desktop area of the display, excluding taskbars, docked windows, and docked tool bars. If you want to get the resolution, you can use property "Bounds".
int SH = Screen.PrimaryScreen.Bounds.Height;
int SW = Screen.PrimaryScreen.Bounds.Width;