Пример #1
0
 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();
         }
     }
 }
Пример #2
0
        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();
                }
            }

    

        }