public static VNC_Screen GetScreenByDeviceName(string name)
 {
     if (name == "")
     {
         return(VNC_Screen.EnumerateScreens().Find(x => x.DeviceName == "\\\\.\\DISPLAY1"));
     }
     else
     {
         return(VNC_Screen.EnumerateScreens().Find(x => x.DeviceName == name));
     }
 }
 public static VNC_Screen GetPrimaryScreen()
 {
     return(VNC_Screen.EnumerateScreens().Find(x => x.Primary == true));
 }