You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
763 B
30 lines
763 B
// <file> |
|
// <copyright see="prj:///doc/copyright.txt"/> |
|
// <license see="prj:///doc/license.txt"/> |
|
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/> |
|
// <version>$Revision$</version> |
|
// </file> |
|
|
|
using System; |
|
using System.Windows.Forms; |
|
|
|
namespace ICSharpCode.PythonBinding |
|
{ |
|
/// <summary> |
|
/// Represents the AutoValidate property for a Form or ContainerControl. |
|
/// </summary> |
|
public class PythonControlAutoValidateProperty : PythonControlProperty |
|
{ |
|
public PythonControlAutoValidateProperty() |
|
{ |
|
} |
|
|
|
public override bool IsDefaultValue(object propertyValue) |
|
{ |
|
if (propertyValue is AutoValidate) { |
|
return (AutoValidate)propertyValue == AutoValidate.EnablePreventFocusChange; |
|
} |
|
return false; |
|
} |
|
} |
|
}
|
|
|