private void btn_batchlogging_Click(object sender, EventArgs e)
        {
            BatchLoggingForm blf = new BatchLoggingForm();

            blf.SelectedCertificate           = SelectedCertificate;
            blf.EndPointConfigurationNameList = GetEndPoints("BatchLoggingAgency.IBatchLoggingAgencyExternalEC");
            blf.SelectedEndpointName          = SelectedEndPointName;
            SetClientValues(blf, "BatchLoggingAgency.IBatchLoggingAgencyExternalEC");
            ShowMethod1(blf);
        }
 private void btn_BatchLoggingAgency_Click(object sender, EventArgs e)
 {
     if (UseEC2Interface)
     {
         BatchLoggingFormEC2 blf = new BatchLoggingFormEC2();
         blf.Text = "BatchLoggingForm (EC2)";
         blf.SelectedCertificate           = SelectedCertificate;
         blf.EndPointConfigurationNameList = GetEndPoints();
         blf.SelectedEndpointName          = SelectedEndPointName;
         SetClientValues(blf, "BatchLoggingAgencyEC2.IBatchLoggingAgencyExternalEC2");
         ShowMethod1(blf);
     }
     else
     {
         BatchLoggingForm blf = new BatchLoggingForm();
         blf.Text = "BatchLoggingForm (EC)";
         blf.SelectedCertificate           = SelectedCertificate;
         blf.EndPointConfigurationNameList = GetEndPoints();
         blf.SelectedEndpointName          = SelectedEndPointName;
         SetClientValues(blf, "BatchLoggingAgency.IBatchLoggingAgencyExternalEC");
         ShowMethod1(blf);
     }
 }