private void TestW_OnLoaded(object sender, RoutedEventArgs e) { IClose.Source = ImgHelpers.BitmapToImageSource(Properties.Resources.close); AppDomain.CurrentDomain.AssemblyResolve += CurrentDomainOnAssemblyResolve; _sc = new DxScreenCapture(); _is = new Input(); _is = new Input { KeyboardFilterMode = KeyboardFilterMode.All }; _is.Load(); Start(); th = new Thread(Check); th.Start(); }
internal Sbmp(DxScreenCapture sc) { _buf = sc.GetImg(); Width = Screen.PrimaryScreen.Bounds.Width; Height = Screen.PrimaryScreen.Bounds.Height; }