Exemplo n.º 1
0
        public ScreenshotManager()
        {
            this.scr = new ScreenshotTaker();

            // .NET methods return Windows 8 info on Windows 10, so we need to use WMI
            this.isW10 = (from x in new ManagementObjectSearcher("SELECT * FROM Win32_OperatingSystem").Get().OfType <ManagementObject>() select x.GetPropertyValue("Caption")).First().ToString().Contains("Windows 10");
        }
Exemplo n.º 2
0
        public ScreenshotManager()
        {
            this.scr = new ScreenshotTaker();

            // .NET methods return Windows 8 info on Windows 10, so we need to use WMI
            this.isW10 = (from x in new ManagementObjectSearcher("SELECT * FROM Win32_OperatingSystem").Get().OfType<ManagementObject>() select x.GetPropertyValue("Caption")).First().ToString().Contains("Windows 10");
        }
Exemplo n.º 3
0
        public RegionSelectionWindow()
        {
            InitializeComponent();

            this.scr = new ScreenshotTaker();
        }
        public RegionSelectionWindow()
        {
            InitializeComponent();

            this.scr = new ScreenshotTaker();
        }