private Window DisplayPreviewScreen(Int32 winHandle) { TV tv = TV.GetInstance(1, this.settings); new Screensaver(tv, new IntPtr(winHandle)); return(null); }
public Screensaver(TV tv, Rectangle bounds) : this(tv) { this.Left = bounds.Left; this.Top = bounds.Top; this.Width = bounds.Width; this.Height = bounds.Height; if (this.IsLoaded) { this.WindowState = System.Windows.WindowState.Maximized; } }
private Window DisplayScreensaver() { TV tv = TV.GetInstance(Screen.AllScreens.Length, this.settings); foreach (Screen screen in Screen.AllScreens) { (new Screensaver(tv, screen.Bounds)).Show(); } return(null); }
public Screensaver(TV tv, IntPtr handle) : this(tv) { setParentWindow(handle); // set the preview flag this.isPreview = true; }
public Screensaver(TV tv) { DataContext = new ScreensaverViewModel(tv); InitializeComponent(); sizeImages(); }