private async void LibraryButton_OnClick(object sender, RoutedEventArgs e)
        {
            SelectExistingRamlOption();
            var rmlLibrary       = new RAMLLibraryBrowser(exchangeUrl);
            var selectedRamlFile = rmlLibrary.ShowDialog();

            if (selectedRamlFile.HasValue && selectedRamlFile.Value)
            {
                var url = rmlLibrary.RAMLFileUrl;

                txtURL.Text = url;

                var preview = new RamlPreview(ServiceProvider, action, RamlTempFilePath, txtURL.Text, "title", isContractUseCase);

                StartProgress();
                preview.FromURL();
                StopProgress();

                var dialogResult = preview.ShowDialog();
                if (dialogResult == true)
                {
                    Close();
                }
            }
        }
        private async void LibraryButton_OnClick(object sender, RoutedEventArgs e)
        {
            SelectExistingRamlOption();
            var rmlLibrary = new RAMLLibraryBrowser(exchangeUrl);
            var selectedRamlFile = rmlLibrary.ShowDialog();

            if (selectedRamlFile.HasValue && selectedRamlFile.Value)
            {
                var url = rmlLibrary.RAMLFileUrl;

                txtURL.Text = url;

                var preview = new RamlPreview(ServiceProvider, action, RamlTempFilePath, txtURL.Text, "title", isContractUseCase);
                
                StartProgress();
                preview.FromURL();
                StopProgress();

                var dialogResult = preview.ShowDialog();
                if (dialogResult == true)
                    Close();
            }
        }
 public BrowserControlEvents(RAMLLibraryBrowser w)
 {
     _externalWpf = w;
 }
Esempio n. 4
0
 public BrowserControlEvents(RAMLLibraryBrowser w)
 {
     _externalWpf = w;
 }