diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-12-13 12:53:08 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-12-13 12:53:08 +0100 |
| commit | 8f33514940cfd7dc539ff8a0ca207a029b15a4b9 (patch) | |
| tree | 852c4cad66db863d53b49a2768d2d5c637d23c8c /Samples/BindingTest/Program.cs | |
| parent | 035ef61b3233c0a85caf42260f3cd1c1e1a01d54 (diff) | |
binding tests + wip
Diffstat (limited to 'Samples/BindingTest/Program.cs')
| -rw-r--r-- | Samples/BindingTest/Program.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Samples/BindingTest/Program.cs b/Samples/BindingTest/Program.cs new file mode 100644 index 00000000..cf19bf26 --- /dev/null +++ b/Samples/BindingTest/Program.cs @@ -0,0 +1,38 @@ +// Copyright (c) 2013-2020 Jean-Philippe Bruyère <jp_bruyere@hotmail.com> +// +// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) +using System; +using System.Runtime.CompilerServices; +using Crow; + +namespace BindingTest +{ + class Program : SampleBase + { + + static void Main () + { + using (Program app = new Program ()) + app.Run (); + } + + protected override void OnInitialized () + { + Load ("#ui.test.crow").DataSource = this; + + } + + + void setDataSourceNull (object sender, MouseButtonEventArgs e) + { + TcVCInstance = null; + Console.WriteLine ("set data source null"); + } + void setDataSourceThis (object sender, MouseButtonEventArgs e) + { + TcVCInstance = new TestClassVC () { Prop1 = "instance 1 prop1 value", Prop2 = "instance 1 prop2 value" }; + Console.WriteLine ("set data source not null"); + } + + } +} |