private void button1_Click_1(object sender, EventArgs e) { using (frmAssemblyExplorer f = new frmAssemblyExplorer()) { if (f.ShowDialog() == DialogResult.OK) { txtSvc.Text = f.SelectedServiceConfiguration.Name; ControllerTest.Storage.StorageObject.SelectedServiceConfiguration = f.SelectedServiceConfiguration; ControllerTest.Storage.Save(); Fwk.Bases.IServiceContract isvcReq = (Fwk.Bases.IServiceContract)Fwk.HelperFunctions.ReflectionFunctions.CreateInstance(ControllerTest.Storage.StorageObject.SelectedServiceConfiguration.Request); this.txtXmlRequest.Text = isvcReq.GetBusinessDataXml(); } } }