private void UnSetHandlers(CriteriaUsageParameter p) { if (p == null) { return; } p.SuffixChanged -= SuffixChangedHandler; }
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)); }
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); }
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); }