コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 protected override void OnClosed(EventArgs e)
 {
     this.screenSaverInhibitor.Dispose();
     this.screenSaverInhibitor = null;
     base.OnClosed(e);
 }
コード例 #4
0
 protected override void OnClosed(EventArgs e)
 {
     this.screenSaverInhibitor.Dispose();
     this.screenSaverInhibitor = null;
     base.OnClosed(e);
 }