示例#1
0
        private Window DisplayPreviewScreen(Int32 winHandle)
        {
            TV tv = TV.GetInstance(1, this.settings);

            new Screensaver(tv, new IntPtr(winHandle));
            return(null);
        }
示例#2
0
 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;
     }
 }
示例#3
0
        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);
        }
示例#4
0
        public Screensaver(TV tv, IntPtr handle) : this(tv) {
            setParentWindow(handle);

            // set the preview flag
            this.isPreview = true;
        }
示例#5
0
 public Screensaver(TV tv)
 {
     DataContext = new ScreensaverViewModel(tv);
     InitializeComponent();
     sizeImages();
 }