private void PreHandleTypeScriptProjects()
        {
            NpmHistory history = NpmProcessor.GetPackageHistory("@types/xrm");

            NpmPicker npmPicker = new NpmPicker(history);
            bool?     result    = npmPicker.ShowModal();

            if (!result.HasValue || result.Value == false)
            {
                throw new WizardBackoutException();
            }

            _typesXrmVersion = npmPicker.SelectedPackage.Version;
        }
Ejemplo n.º 2
0
        private void PreHandleTypeScriptProjects()
        {
            var history = NpmProcessor.GetPackageHistory("@types/xrm");

            if (history == null)
            {
                MessageBox.Show(Resource.MessageBox_NPMError);
                throw new WizardBackoutException();
            }

            var npmPicker = new NpmPicker(history);
            var result    = npmPicker.ShowModal();

            if (!result.HasValue || result.Value == false)
            {
                throw new WizardBackoutException();
            }

            _typesXrmVersion = npmPicker.SelectedPackage.Version;
        }