//获取屏幕的长宽
int DeskWidth = Screen.PrimaryScreen.WorkingArea.Width;
int DeskHeight = Screen.PrimaryScreen.WorkingArea.Height;
Console.WriteLine( DeskWidth.ToString());
Console.WriteLine(DeskHeight.ToString());