Ejemplo n.º 1
0
        public override void Setup(XafApplication application)
        {
            base.Setup(application);

            application.SetupComplete += application_SetupComplete;
            application.CreateCustomLogonWindowObjectSpace += (sender, args) => { args.ObjectSpace = (( CoreAppLogonParameters )args.LogonParameters).ObjectSpace = application.CreateObjectSpace( ); };

            if (CriteriaOperator.GetCustomFunctions( ).GetCustomFunction("ConvertToStr") == null)
            {
                CriteriaOperator.RegisterCustomFunction(new ConvertToStrFunction( ));
            }
        }