public LoadWsdlDirector( ITestStudioControl wsdlPathComboBox, WsdlModel wsdlModel, string fileHistoryLocation = null) { this.wsdlModel = wsdlModel; this.wsdlPathComboBox = wsdlPathComboBox; this.fileHistoryLocation = fileHistoryLocation; // Load Wsdl path history var fileHistSerializer = new XmlSerializer(typeof(BindingList<string>)); if (File.Exists(fileHistoryLocation)) { try { using (var stream = File.OpenRead(fileHistoryLocation)) { fileHistory = (BindingList<string>)(fileHistSerializer.Deserialize(stream)); } } catch (Exception ex) { Console.WriteLine("Could not load file history {0}", ex.Message); } } wsdlPathComboBox.Content = fileHistory; if (fileHistory.Any()) wsdlPathComboBox.SelectedContentItem = fileHistory[0]; this.wsdlPathComboBox.AddEventHandler("SelectionChangeCommitted", new EventHandler(selectionChangeCommitted_wsdlPathComboBox)); }
public MainPresenter(TestStudioForm form, WsdlModel mainModel) { this.form = form; this.mainModel = mainModel; mainModel.WsdlPath = @"c:\Dev\rts\source_w1\00\bin\release\TransportationWebService.wsdl"; }
public MethodListDirector(WsdlModel wsdlModel, ITestStudioControl methodFilterComboBox, ITestStudioControl methodsListBox) { this.wsdlModel = wsdlModel; this.methodFilterComboBox = methodFilterComboBox; this.methodsListBox = methodsListBox; this.wsdlModel.WsdlModelInitialized += OnWsdlModelInitialized; }
// Uses Explicit Form and DockContent public MainPresenter(MainForm mainForm, WsdlModel mainModel) { this.mainForm = mainForm; this.mainModel = mainModel; mainModel.WsdlPath = @"c:\Dev\rts\source_w1\00\bin\release\TransportationWebService.wsdl"; TypeDescriptorModifier.modifyType(typeof(System.Dynamic.ExpandoObject)); InitializeForm(); }