From 04e3244be1bda2377ca26edc00ebd4866add7d39 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Mon, 19 Oct 2015 16:58:44 +0200 Subject: [PATCH] improved test for spinner and focus --- Tests/GOLIBTests.cs | 16 ++++++++++++++++ Tests/Interfaces/testSpinner.goml | 4 ++++ 2 files changed, 20 insertions(+) diff --git a/Tests/GOLIBTests.cs b/Tests/GOLIBTests.cs index e84c18fc..2c1563ed 100644 --- a/Tests/GOLIBTests.cs +++ b/Tests/GOLIBTests.cs @@ -93,6 +93,22 @@ namespace test public string update = ""; #endregion + public int intValue = 25; + + public int IntValue { + get { + return intValue; + } + set { + intValue = value; + NotifyValueChanged ("IntValue", intValue); + } + } + void onSpinnerValueChange(object sender, ValueChangeEventArgs e){ + if (e.MemberName != "Value") + return; + intValue = Convert.ToInt32(e.NewValue); + } public List TestList = new List( new string[] { "string 1", diff --git a/Tests/Interfaces/testSpinner.goml b/Tests/Interfaces/testSpinner.goml index 48791ba5..d80f5c29 100755 --- a/Tests/Interfaces/testSpinner.goml +++ b/Tests/Interfaces/testSpinner.goml @@ -2,6 +2,10 @@ + + + + \ No newline at end of file -- 2.47.3