//프로그램 종료 전
        public SmartUpdater(ISmartUpdatable applicationInfo, UpdateWindow win)
        {
            type = 1;

            this.applicationInfo              = applicationInfo;
            this.win                          = win;
            this.bgWorker                     = new BackgroundWorker();
            this.bgWorker.DoWork             += new DoWorkEventHandler(bgWorker_DoWork);
            this.bgWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bgWorker_RunWorkerCompleted);
        }
        private void updatebtn_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            try {
                //webClient.DownloadFileAsync(updateInfo.Uri, this.tempFile);

                UpdateWindow updatewin = new UpdateWindow();
                updatewin.initSmartUpdate(applicationInfo);
                bool result = (bool)updatewin.ShowDialog();

                if (result == true)
                {
                }
                else if (result == false)
                {
                    //MessageBoxOrange.ShowDialog("the update download was cancelled.");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }