public void CallingForm(HelperMethods helper, DataGenerator dg)
 {
     _Helper = helper;
     _dg = dg;
 }
        public void CallingForm(MerchantProfile merchantProfile, bool blnNewProfile, BankcardService bcs, ElectronicCheckingService ecks, StoredValueService svas, string serviceId, DataGenerator dg)
        {
            _bcs = bcs;
            _ecks = ecks;
            _svas = svas;
            _strServiceID = serviceId;
            _dg = dg;

            hideAllFields();
            //Since MerchantProfile is saved at the serviceId level, display serviceId.
            //txtMerchantProfileServiceId.Text = merchantProfile.ServiceId;

            if (serviceId.Length < 1)
                txtMerchantProfileServiceId.Text = "ServiceId not selected in calling form";
            else
                txtMerchantProfileServiceId.Text = serviceId;

            //Populate combo boxes with the Enumeration
            cboCountryCode.Sorted = true;
            cboCountryCode.DataSource = Enum.GetValues(typeof(TypeISOCountryCodeA3));
            cboCountryCode.SelectedItem = TypeISOCountryCodeA3.NotSet;

            cboLanguage.Sorted = true;
            cboLanguage.DataSource = Enum.GetValues(typeof(TypeISOLanguageCodeA3));
            cboLanguage.SelectedItem = TypeISOLanguageCodeA3.NotSet;

            cboCurrencyCode.Sorted = true;
            cboCurrencyCode.DataSource = Enum.GetValues(typeof(TypeISOCurrencyCodeA3));
            cboCurrencyCode.SelectedItem = TypeISOCurrencyCodeA3.NotSet;

            cboCustomerPresent.Sorted = true;
            cboCustomerPresent.DataSource = Enum.GetValues(typeof(CustomerPresent));
            cboCustomerPresent.SelectedItem = CustomerPresent.NotSet;

            cboRequestACI.Sorted = true;
            cboRequestACI.DataSource = Enum.GetValues(typeof(RequestACI));
            cboRequestACI.SelectedItem = RequestACI.IsCPSMeritCapable;

            cboEntryMode.Sorted = true;
            cboEntryMode.DataSource = Enum.GetValues(typeof(EntryMode));
            cboEntryMode.SelectedItem = EntryMode.NotSet;

            cboMerchantIndustryType.Sorted = true;
            cboMerchantIndustryType.DataSource = Enum.GetValues(typeof(IndustryType));
            cboMerchantIndustryType.SelectedItem = IndustryType.NotSet;

            if (_bcs != null)
            {
                if (_strServiceID == "C82ED00001" || _strServiceID == "71C8700001" ||
                    _strServiceID == "88D9300001" || _strServiceID == "B447F00001" ||
                    _strServiceID == "D806000001" || _strServiceID == "E88FD00001")
                    showBCPExpandedFields();
                else if (_strServiceID == "168511300C" || _strServiceID == "9999999999")
                    showBCPExpandedFields();
                else
                {
                    showBCPFields();
                }
            }

            if (_ecks != null)
            {
                showECKFields();
            }
            if (_svas != null)
            {
                showSVAFields();
            }
        }