コード例 #1
0
ファイル: WinRangeValidator.cs プロジェクト: gipasoft/Sfera
		public WinRangeValidator(string id, Control controlToValidate, string errorMessage,WindowsErrorProvider parent)
		{
			this.id = id;
			this.controlToValidate = controlToValidate;
			this.errorMessage = errorMessage;
			this.parent = parent;
			AddEvents();
		}
コード例 #2
0
ファイル: WinRangeValidator.cs プロジェクト: gipasoft/Sfera
		public WinRangeValidator(string id, Control controlToValidate,WindowsErrorProvider parent)
		{
			this.id = id;
			this.controlToValidate = controlToValidate;
			this.errorMessage = controlToValidate.Name + " value is not within the range " + minValue.ToString() + " and " + maxValue.ToString();
			this.parent = parent;
			AddEvents();
		}
コード例 #3
0
		public WinRequiredFieldValidator(string id, Control controlToValidate,WindowsErrorProvider parent)
		{
			this.id = id;
			this.controlToValidate = controlToValidate;
			this.errorMessage = controlToValidate.Name + " è obbligatorio.";
			this.parent = parent;
			AddEvents();
		}
コード例 #4
0
ファイル: WinCustomValidator.cs プロジェクト: gipasoft/Sfera
		public WinCustomValidator(string id, Control controlToValidate, WindowsErrorProvider parent)
		{
			this.id = id;
			this.controlToValidate = controlToValidate;
			this.errorMessage = "Trail Version - Invalid!.";
			this.parent = parent;
			AddEvents();
		}
コード例 #5
0
ファイル: WinCompareValidator.cs プロジェクト: gipasoft/Sfera
		public WinCompareValidator(string id, Control controlToValidate,DataType dataType ,WindowsErrorProvider parent)
		{
			this.id = id;
			this.controlToValidate = controlToValidate;
			this.dataType = dataType;
			this.errorMessage = "Invalid!.";
			this.parent = parent;
			AddEvents();
		}
コード例 #6
0
ファイル: WinCompareValidator.cs プロジェクト: gipasoft/Sfera
		public WinCompareValidator(string id, Control controlToValidate,object valueToCompare,WindowsErrorProvider parent)
		{
			this.id = id;
			this.controlToValidate = controlToValidate;
			this.valueToCompare = valueToCompare;
			this.errorMessage = "Invalid!.";
			this.parent = parent;
			AddEvents();
		}
コード例 #7
0
ファイル: WinCustomValidator.cs プロジェクト: gipasoft/Sfera
//
//		public override string ErrorMessage
//		{
//			set
//			{
//				this.errorMessage =  "Trail Version " + value;
//			}
//			get
//			{
//				return this.errorMessage;
//			}
//		}
	
		#region Constructors
		
		public WinCustomValidator(string id, Control controlToValidate, string errorMessage, WindowsErrorProvider parent)
		{
			this.id = id;
			this.controlToValidate = controlToValidate;
			this.errorMessage =  errorMessage;
			this.parent = parent;
			if(errorMessage != string.Empty)
				base.bValid = false;
			AddEvents();
		}
コード例 #8
0
		public WinRegularExpressionValidator(string id, Control controlToValidate,string validationExpression,WindowsErrorProvider parent)
		{
			this.id = id;
			this.controlToValidate = controlToValidate;
			this.validation = Validations.UserDefined;
			this.validationExpression = validationExpression;
			this.errorMessage = "Invalid!.";
			this.parent = parent;
			AddEvents();
		}
コード例 #9
0
		public WinRegularExpressionValidator(string id, Control controlToValidate,Validations validation , string errorMessage,WindowsErrorProvider parent)
		{
			this.id = id;
			this.controlToValidate = controlToValidate;
			this.errorMessage = errorMessage;
			this.validationExpression = "";
			this.validation = validation;
			this.parent = parent;
			AddEvents();
		}
コード例 #10
0
ファイル: WinRangeValidator.cs プロジェクト: gipasoft/Sfera
		public WinRangeValidator(string id, Control controlToValidate,string errorMessage,object minValue,object maxValue,DataType dataType, WindowsErrorProvider parent)
		{
			this.id = id;
			this.dataType = dataType;
			this.controlToValidate = controlToValidate;
			this.maxValue = maxValue;
			this.minValue = minValue;
			this.errorMessage = errorMessage;
			this.parent = parent;
			AddEvents();
		}
コード例 #11
0
		public void Add(string id, Control controlToValidate,Validations validation , string errorMessage,WindowsErrorProvider parent)
		{
			if(!list.ContainsKey(id))
			{
				WinRegularExpressionValidator validator = new WinRegularExpressionValidator(id,controlToValidate,validation,errorMessage,this.parent);
				list.Add(id,validator);
			}
			else
			{
				throw new Exception("Item already exists in the collection.");
			}
		}
コード例 #12
0
ファイル: WinRangeValidators.cs プロジェクト: gipasoft/Sfera
		public WinRangeValidators(WindowsErrorProvider parent)
		{
			this.parent = parent;
			list = new Hashtable();	
		}
コード例 #13
0
		public WinRequiredFieldValidators(WindowsErrorProvider parent)
		{
			this.parent = parent;
			list = new Hashtable();	
		}
コード例 #14
0
		public WinRegularExpressionValidators(WindowsErrorProvider parent)
		{
			this.parent = parent;
			list = new Hashtable();	
		}