Example #1
0
        /// <summary>
        /// ウィンドウを使って更新するかどうか確認します。
        /// </summary>
        private bool ConfirmUpdate(bool downloaded)
        {
            if (this.updateWindow != null)
            {
                this.updateWindow.Activate();
                return(false);
            }

            this.updateWindow = new UpdateWindow
            {
                IsDownloaded = downloaded,
                Topmost      = true,
                DataContext  = this,
            };
            this.updateWindow.Closed        +=
                (_, __) => this.updateWindow = null;

            return(this.updateWindow.ShowDialog() == true);
        }
        /// <summary>
        /// ウィンドウを使って更新するかどうか確認します。
        /// </summary>
        private bool ConfirmUpdate(bool downloaded)
        {
            if (this.updateWindow != null)
            {
                this.updateWindow.Activate();
                return false;
            }

            this.updateWindow = new UpdateWindow
            {
                IsDownloaded = downloaded,
                Topmost = true,
                DataContext = this,
            };
            this.updateWindow.Closed +=
                (_, __) => this.updateWindow = null;

            return (this.updateWindow.ShowDialog() == true);
        }