Beispiel #1
0
        public override void ConnectControlSpecific(Control _control, ConnectorFactory _factory)
        {
            WACPR_TaxParcelFormVM vm = (WACPR_TaxParcelFormVM)ViewModel;

            if (vm.TaxParcelValidator == null)
            {
                vm.TaxParcelValidator = _factory.CreateValidator("WACPR_TaxParcelValidator") as WACPR_TaxParcelValidator;
            }
        }
Beispiel #2
0
        public override void ConnectControlSpecific(Control _control, ConnectorFactory _factory)
        {
            WACPR_TaxParcelOwnerFormVM vm = ViewModel as WACPR_TaxParcelOwnerFormVM;

            //vm.WireUp();
            if (vm.TaxParcelOwnerValidator == null)
            {
                vm.TaxParcelOwnerValidator = _factory.CreateValidator("WACPR_TaxParcelOwnerValidator") as WACPR_TaxParcelOwnerValidator;
            }
        }
Beispiel #3
0
        public override void ConnectControlSpecific(Control _control, ConnectorFactory _factory)
        {
            WACAG_SupplementalAgreementFormVM vm = ViewModel as WACAG_SupplementalAgreementFormVM;

            if (vm.Validator == null)
            {
                vm.Validator = _factory.CreateValidator("WACAG_SupplementalAgreementValidator") as WACAG_SupplementalAgreementValidator;
            }
            if (vm.ListSource == null)
            {
                vm.ListSource = new MasterDetailDataObject(SupplementalAgreement.PrimaryKeyName, SupplementalAgreement.PrimaryKeyName);
            }
        }
        public override void ConnectControlSpecific(Control _control, ConnectorFactory _factory)
        {
            WACAG_FarmBusinessFormVM vm = ViewModel as WACAG_FarmBusinessFormVM;

            if (vm.Validator == null)
            {
                vm.Validator = _factory.CreateValidator("WACAG_FarmBusinessValidator") as WACAG_FarmBusinessValidator;
            }
            if (vm.ListSource == null)
            {
                vm.ListSource = new MasterDetailDataObject(FarmBusiness.PrimaryKeyName, FarmBusiness.PrimaryKeyName);
            }
            if (ViewModel.DDLBinders.Count < 1)
            {
                ViewModel.DDLBinders.TryAdd("ddlProgramWAC", new DDLDataObject(new WACProgramDP()));
                ViewModel.DDLBinders.TryAdd("ddlFarmSize", new DDLDataObject(new FarmSizeDP()));
                ViewModel.DDLBinders.TryAdd("ddlBasin", new DDLDataObject(new BasinDP()));
                ViewModel.DDLBinders.TryAdd("ddlSoldFarm", new DDLDataObject(new FarmIDFarmNameDP()));
            }
        }