예제 #1
0
		void LogEvents(Slider control)
		{
			control.ValueChanged += delegate
			{
				Log.Write(control, "ValueChanged, Value: {0}", control.Value);
			};
		}
예제 #2
0
		Slider SetInitialValue ()
		{
			var control = new Slider{
				MinValue = 0,
				MaxValue = 1000, 
				TickFrequency = 100,
				Value = 500
			};
			LogEvents(control);
			return control;
		}
예제 #3
0
		Control Default()
		{
			var control = new Slider();
			LogEvents(control);
			return control;
		}
예제 #4
0
파일: Slider.cs 프로젝트: gene-l-thomas/Eto
			/// <summary>
			/// Raises the value changed event.
			/// </summary>
			public void OnValueChanged(Slider widget, EventArgs e)
			{
				widget.Platform.Invoke(() => widget.OnValueChanged(e));
			}
예제 #5
0
		protected virtual void LogEvents(Slider control)
		{
			control.ValueChanged += delegate
			{
				Log.Write(control, "ValueChanged");
			};

			LogEvents((Control)control);
		}
예제 #6
0
		Control SliderControl()
		{
			var control = new Slider();
			LogEvents(control);
			return control;
		}