public PhotoBoothWindow()
        {
            InitializeComponent();

            this.initialStatusFontSize = this.statusText.FontSize;
            this.fontSizeAnimation = new DoubleAnimation(this.initialStatusFontSize / 4, TimeSpan.FromSeconds(1.0));
            this.fontSizeAnimation.Completed += fontSizeAnimation_Completed;

            this.screenSaverInhibitor = new ScreenSaverInhibitor(this.Dispatcher);
            this.DataContext = this;

            this.Loaded += PhotoBoothWindow_Loaded;
        }
        public PhotoBoothWindow()
        {
            InitializeComponent();

            this.initialStatusFontSize        = this.statusText.FontSize;
            this.fontSizeAnimation            = new DoubleAnimation(this.initialStatusFontSize / 4, TimeSpan.FromSeconds(1.0));
            this.fontSizeAnimation.Completed += fontSizeAnimation_Completed;

            this.screenSaverInhibitor = new ScreenSaverInhibitor(this.Dispatcher);
            this.DataContext          = this;

            this.Loaded += PhotoBoothWindow_Loaded;
        }
 protected override void OnClosed(EventArgs e)
 {
     this.screenSaverInhibitor.Dispose();
     this.screenSaverInhibitor = null;
     base.OnClosed(e);
 }
 protected override void OnClosed(EventArgs e)
 {
     this.screenSaverInhibitor.Dispose();
     this.screenSaverInhibitor = null;
     base.OnClosed(e);
 }