示例#1
0
 private void UnSetHandlers(CriteriaUsageParameter p)
 {
     if (p == null)
     {
         return;
     }
     p.SuffixChanged -= SuffixChangedHandler;
 }
示例#2
0
 void SetHandlers(CriteriaUsageParameter p)
 {
     if (p == null)
     {
         return;
     }
     p.SuffixChanged += SuffixChanged;
 }
        public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
        {
            if (destinationType == typeof(String) && value is CriteriaUsageParameter)
            {
                CriteriaUsageParameter so = (CriteriaUsageParameter)value;
                return("Factory: " + so.Factory);
            }

            return(base.ConvertTo(context, culture, value, destinationType));
        }
示例#4
0
        internal static CriteriaUsageParameter Clone(CriteriaUsageParameter masterUsageParam)
        {
            var newUsageParam = new CriteriaUsageParameter();

            newUsageParam.Factory       = masterUsageParam.Factory;
            newUsageParam.AddRemove     = masterUsageParam.AddRemove;
            newUsageParam.DataPortal    = masterUsageParam.DataPortal;
            newUsageParam.RunLocal      = masterUsageParam.RunLocal;
            newUsageParam.Procedure     = masterUsageParam.Procedure;
            newUsageParam.ProcedureName = masterUsageParam.ProcedureName;
            newUsageParam.FactorySuffix = masterUsageParam.FactorySuffix;

            return(newUsageParam);
        }
示例#5
0
        internal static Criteria Clone(Criteria masterCrit)
        {
            var newCrit = new Criteria(masterCrit.ParentObject);

            newCrit.Name = masterCrit.Name;
            newCrit.CriteriaClassMode = masterCrit.CriteriaClassMode;
            newCrit.NestedClass       = masterCrit.NestedClass;
            newCrit.Summary           = masterCrit.Summary;
            newCrit.Remarks           = masterCrit.Remarks;

            newCrit.CreateOptions = CriteriaUsageParameter.Clone(masterCrit.CreateOptions);
            newCrit.GetOptions    = CriteriaUsageParameter.Clone(masterCrit.GetOptions);
            newCrit.DeleteOptions = CriteriaUsageParameter.Clone(masterCrit.DeleteOptions);
            newCrit.Properties.AddRange(CriteriaPropertyCollection.Clone(masterCrit.Properties));

            return(newCrit);
        }