private void AddRamlReferenceCallback(object sender, EventArgs e) { var generationServices = new RamlReferenceService(ServiceProvider.GlobalProvider); var ramlChooser = new RamlChooser(this, generationServices.AddRamlReference, "Add RAML Reference", false, Settings.Default.RAMLExchangeUrl); ramlChooser.ShowDialog(); }
private void AddRamlReferenceCallback(object sender, EventArgs e) { var generationServices = new RamlReferenceService(ServiceProvider.GlobalProvider, new ActivityLogger()); var ramlChooserViewModel = new RamlChooserViewModel(); ramlChooserViewModel.Load(this, generationServices.AddRamlReference, "Add RAML Reference", false, Settings.Default.RAMLExchangeUrl); dynamic settings = new ExpandoObject(); settings.Height = 475; windowManager.ShowDialog(ramlChooserViewModel, null, settings); //var ramlChooser = new RamlChooserView(this, generationServices.AddRamlReference, "Add RAML Reference", false, Settings.Default.RAMLExchangeUrl); //ramlChooser.ShowDialog(); }