C# WinForm 获取屏幕分辨率大小

1// 获取屏幕分辨率
2int SH = Screen.PrimaryScreen.Bounds.Height;
3int SW = Screen.PrimaryScreen.Bounds.Width;