private void btn_receipt_Click(object sender, EventArgs e)
        {
            ReceiptForm raF = new ReceiptForm();

            raF.SelectedCertificate           = SelectedCertificate;
            raF.EndPointConfigurationNameList = GetEndPoints("Receipt.IReceiptExternalEC");
            raF.SelectedEndpointName          = SelectedEndPointName;
            SetClientValues(raF, "Receipt.IReceiptExternalEC");
            ShowMethod1(raF);
        }
 private void btn_Receipt_Click(object sender, EventArgs e)
 {
     if (UseEC2Interface)
     {
         ReceiptFormEC2 raF = new ReceiptFormEC2();
         raF.Text = "ReceiptForm (EC2)";
         raF.SelectedCertificate           = SelectedCertificate;
         raF.EndPointConfigurationNameList = GetEndPoints();
         raF.SelectedEndpointName          = SelectedEndPointName;
         SetClientValues(raF, "ReceiptEC2.IReceiptExternalEC2");
         ShowMethod1(raF);
     }
     else
     {
         ReceiptForm raF = new ReceiptForm();
         raF.Text = "ReceiptForm (EC)";
         raF.SelectedCertificate           = SelectedCertificate;
         raF.EndPointConfigurationNameList = GetEndPoints();
         raF.SelectedEndpointName          = SelectedEndPointName;
         SetClientValues(raF, "Receipt.IReceiptExternalEC");
         ShowMethod1(raF);
     }
 }