Пример #1
0
        async void BtnInstallPackClick(object sender, EventArgs e)
        {
            var context = new Context(registry, PreferenceManager.Config.RemoteRegistry,
                                      PreferenceManager.Config.Translation);
            var isd = new RemoteQueryDialog(context);

            if (isd.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            await installPackage(isd.SelectedIdentifier, isd.SelectedVersion);
        }
Пример #2
0
 async void ManipulationFormShown(object sender, EventArgs e)
 {
     if (callInstallDlg)
     {
         var context = new Context(registry, PreferenceManager.Config.RemoteRegistry,
                                   PreferenceManager.Config.Translation);
         var isd = new RemoteQueryDialog(context, idToInstall);
         if (isd.ShowDialog() != DialogResult.OK)
         {
             this.Close();
             return;
         }
         await installPackage(isd.SelectedIdentifier, isd.SelectedVersion);
     }
 }
Пример #3
0
        async void BtnUpgradeDowngradeClick(object sender, EventArgs e)
        {
            if (localPackageListBox.SelectedItem == null)
            {
                return;
            }
            var context = new Context(registry, PreferenceManager.Config.RemoteRegistry,
                                      PreferenceManager.Config.Translation);
            var isd = new RemoteQueryDialog(context, (localPackageListBox.SelectedItem as LocalPackageInfo).ID, true);

            if (isd.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            await installPackage(isd.SelectedIdentifier, isd.SelectedVersion);
        }