コード例 #1
0
ファイル: AutoUpdater.cs プロジェクト: MiT-Ufa/UpdateLib
        /// <summary>
        ///     Opens the Download window that download the update and execute the installer when download completes.
        /// </summary>
        public static void DownloadUpdate(Window owner)
        {
            var downloadDialog = new DownloadDialog(DownloadUrl);

            downloadDialog.Owner = owner;
            downloadDialog.ShowDialog();
        }
コード例 #2
0
ファイル: AutoUpdater.cs プロジェクト: MiT-Ufa/UpdateLib
        /// <summary>
        ///     Opens the Download window that download the update and execute the installer when download completes.
        /// </summary>
        public static void DownloadUpdate()
        {
            var downloadDialog = new DownloadDialog(DownloadUrl);

            downloadDialog.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            downloadDialog.ShowDialog();
        }