Esempio n. 1
0
        protected override async void OnExecute()
        {
            var package = (MDKPackage)Package;
            var version = await package.CheckForUpdatesAsync(package.Options.NotifyPrereleaseUpdates);

            UpdateDetectedDialog.ShowDialog(new UpdateDetectedDialogModel(version));
        }
Esempio n. 2
0
        /// <summary>
        /// Shows this dialog with the provided view model.
        /// </summary>
        /// <param name="viewModel"></param>
        /// <returns></returns>
        public static bool?ShowDialog(UpdateDetectedDialogModel viewModel)
        {
            var dialog = new UpdateDetectedDialog();

            dialog.SetModel(viewModel);
            return(dialog.ShowModal());
        }