changeset 10:fa95b81901f5

* Add ControlValueChangedChecker class to source control to go with previous commit of project file that includes it! no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Thu, 24 Dec 2009 20:28:07 +0000
parents fa1921ee34a5
children d052bc59cb22
files Windows/Forms/Util/ControlValueChangedChecker.cs
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Windows/Forms/Util/ControlValueChangedChecker.cs	Thu Dec 24 20:28:07 2009 +0000
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace IBBoard.Windows.Forms.Util
+{
+	/// <summary>
+	/// A small helper class that can be temporarily attached to controls as a one-shot method for determining if the controls value has changed.
+	/// </summary>
+	public class ControlValueChangedChecker
+	{
+		public bool valueChanged;
+
+		public void ValueChanged(object sender, EventArgs e)
+		{
+			valueChanged = true;
+		}
+	}
+}