本文整理汇总了C#中ObjectIsValidEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ObjectIsValidEventArgs类的具体用法?C# ObjectIsValidEventArgs怎么用?C# ObjectIsValidEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ObjectIsValidEventArgs类属于命名空间,在下文中一共展示了ObjectIsValidEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ObjectIsValid
public static void ObjectIsValid(StringProperty obj, ObjectIsValidEventArgs e)
{
if (obj.GetLengthConstraint() == null)
{
e.Errors.Add(string.Format("String property {0}.{1} must have a string range constraint", obj.ObjectClass.Name, obj.Name));
}
}
示例2: ObjectIsValid
public static void ObjectIsValid(IndexConstraint obj, ObjectIsValidEventArgs e)
{
if (obj.Properties.Count == 0)
{
e.Errors.Add("Cannot have index without Properties.");
}
}
示例3: ObjectIsValid
protected override ObjectIsValidResult ObjectIsValid()
{
ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
var b = base.ObjectIsValid();
e.Errors.AddRange(b.Errors);
if (OnObjectIsValid_ServiceDescriptor != null)
{
OnObjectIsValid_ServiceDescriptor(this, e);
}
return new ObjectIsValidResult(e.IsValid, e.Errors);
}
示例4: ObjectIsValid
protected override ObjectIsValidResult ObjectIsValid()
{
ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
var b = base.ObjectIsValid();
e.IsValid = b.IsValid;
e.Errors.AddRange(b.Errors);
if (OnObjectIsValid_NavigationSearchScreen != null)
{
OnObjectIsValid_NavigationSearchScreen(this, e);
}
return new ObjectIsValidResult(e.IsValid, e.Errors);
}
示例5: ObjectIsValid
protected override ObjectIsValidResult ObjectIsValid()
{
ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
var b = base.ObjectIsValid();
e.Errors.AddRange(b.Errors);
if (OnObjectIsValid_AbstractModuleMember != null)
{
OnObjectIsValid_AbstractModuleMember(this, e);
}
return new ObjectIsValidResult(e.IsValid, e.Errors);
}
示例6: ObjectIsValid
protected override ObjectIsValidResult ObjectIsValid()
{
ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
var b = base.ObjectIsValid();
e.IsValid = b.IsValid;
e.Errors.AddRange(b.Errors);
if (OnObjectIsValid_EnumParameter != null)
{
OnObjectIsValid_EnumParameter(this, e);
}
return new ObjectIsValidResult(e.IsValid, e.Errors);
}
示例7: ObjectIsValid
protected override ObjectIsValidResult ObjectIsValid()
{
ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
var b = base.ObjectIsValid();
e.Errors.AddRange(b.Errors);
if (OnObjectIsValid_PropertyDateTimeTest != null)
{
OnObjectIsValid_PropertyDateTimeTest(this, e);
}
return new ObjectIsValidResult(e.IsValid, e.Errors);
}
示例8: ObjectIsValid
protected override ObjectIsValidResult ObjectIsValid()
{
ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
var b = base.ObjectIsValid();
e.IsValid = b.IsValid;
e.Errors.AddRange(b.Errors);
if (OnObjectIsValid_StringRangeConstraint != null)
{
OnObjectIsValid_StringRangeConstraint(this, e);
}
return new ObjectIsValidResult(e.IsValid, e.Errors);
}
示例9: ObjectIsValid
protected override ObjectIsValidResult ObjectIsValid()
{
ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
var b = base.ObjectIsValid();
e.IsValid = b.IsValid;
e.Errors.AddRange(b.Errors);
if (OnObjectIsValid_GroupMembership != null)
{
OnObjectIsValid_GroupMembership(this, e);
}
return new ObjectIsValidResult(e.IsValid, e.Errors);
}
示例10: ObjectIsValid
public static void ObjectIsValid(Task obj, ObjectIsValidEventArgs e)
{
if (obj.Aufwand < 0) e.Errors.Add("Ungültiger Aufwand");
if (obj.DatumBis < obj.DatumVon) e.Errors.Add("Falscher Zeitraum");
}
示例11: ObjectIsValid
protected override ObjectIsValidResult ObjectIsValid()
{
ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
var b = base.ObjectIsValid();
e.IsValid = b.IsValid;
e.Errors.AddRange(b.Errors);
if (OnObjectIsValid_RequiredParentChild != null)
{
OnObjectIsValid_RequiredParentChild(this, e);
}
return new ObjectIsValidResult(e.IsValid, e.Errors);
}
示例12: ObjectIsValid
protected override ObjectIsValidResult ObjectIsValid()
{
ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
var b = base.ObjectIsValid();
e.IsValid = b.IsValid;
e.Errors.AddRange(b.Errors);
if (OnObjectIsValid_AnyReferenceTestObject != null)
{
OnObjectIsValid_AnyReferenceTestObject(this, e);
}
return new ObjectIsValidResult(e.IsValid, e.Errors);
}
示例13: ObjectIsValid
protected override ObjectIsValidResult ObjectIsValid()
{
ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
var b = base.ObjectIsValid();
e.Errors.AddRange(b.Errors);
if (OnObjectIsValid_RecurrenceRuleTester != null)
{
OnObjectIsValid_RecurrenceRuleTester(this, e);
}
return new ObjectIsValidResult(e.IsValid, e.Errors);
}
示例14: ObjectIsValid
protected override ObjectIsValidResult ObjectIsValid()
{
ObjectIsValidEventArgs e = new ObjectIsValidEventArgs();
var b = base.ObjectIsValid();
e.IsValid = b.IsValid;
e.Errors.AddRange(b.Errors);
if (OnObjectIsValid_ExceptionLogEntry != null)
{
OnObjectIsValid_ExceptionLogEntry(this, e);
}
return new ObjectIsValidResult(e.IsValid, e.Errors);
}
示例15: ObjectIsValid
public static void ObjectIsValid(Relation obj, ObjectIsValidEventArgs e)
{
if (obj.A != null && obj.B != null && obj.GetAssociationName().Length > 60)
{
e.Errors.Add(string.Format("The relation name '{0}' (FK_<a>_<verb>_<b>) exceed 60 chars. This could violate a database (Postgres) max identifier length.", obj.GetAssociationName()));
}
}