private void btn_intermediarystreamed_Click(object sender, EventArgs e)
        {
            IntermediaryInboundStreamedForm iisF = new IntermediaryInboundStreamedForm();

            iisF.SelectedCertificate           = SelectedCertificate;
            iisF.EndPointConfigurationNameList = GetEndPoints("IntermediaryInboundStreamed.IIntermediaryInboundExternalECStreamed");
            iisF.SelectedEndpointName          = SelectedEndPointName;
            SetClientValues(iisF, "IntermediaryInboundStreamed.IIntermediaryInboundExternalECStreamed");
            ShowMethod1(iisF);
        }
 private void btn_IntermediaryInboundStreamed_Click(object sender, EventArgs e)
 {
     if (UseEC2Interface)
     {
         IntermediaryInboundStreamedFormEC2 iisF = new IntermediaryInboundStreamedFormEC2();
         iisF.Text = "IntermediaryInboundStreamedForm (EC2)";
         iisF.SelectedCertificate           = SelectedCertificate;
         iisF.EndPointConfigurationNameList = GetEndPoints();
         iisF.SelectedEndpointName          = SelectedEndPointName;
         SetClientValues(iisF, "IntermediaryInboundEC2Streamed.IIntermediaryInboundExternalEC2Streamed");
         ShowMethod1(iisF);
     }
     else
     {
         IntermediaryInboundStreamedForm iisF = new IntermediaryInboundStreamedForm();
         iisF.Text = "BatchLoggingForm (EC)";
         iisF.SelectedCertificate           = SelectedCertificate;
         iisF.EndPointConfigurationNameList = GetEndPoints();
         iisF.SelectedEndpointName          = SelectedEndPointName;
         SetClientValues(iisF, "IntermediaryInboundStreamed.IIntermediaryInboundExternalECStreamed");
         ShowMethod1(iisF);
     }
 }