public static void Shutdown(ExitCodes code) { if (code == ExitCodes.Updating) { var dlgdc = new Dialogs.DownloadDialogDataContext((App.Current as App).DownloadInfo); var dlg = new Dialogs.DownloadDialog(dlgdc); dlg.ShowDialog(); } App.Current.Shutdown((int)code); }
public DownloadDialog(DownloadDialogDataContext dc) { this.DataContext = dc; InitializeComponent(); }