aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/SampleBase.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-04-09 04:51:37 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-04-09 04:51:37 +0200
commit2b6d20f81ec25698e39f2b1efac2574340aafcdd (patch)
tree821a44ace4d045f77733402bb1867b47b677c396 /Samples/common/SampleBase.cs
parent1a2d73613006acc5d519bac9b86d8c0c79ae9d46 (diff)
TG recursive lock check, IObsList clear evt, sample Editor xml syntax, command IList, CommandBase class
Diffstat (limited to 'Samples/common/SampleBase.cs')
-rw-r--r--Samples/common/SampleBase.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Samples/common/SampleBase.cs b/Samples/common/SampleBase.cs
index 59244f1b..a17eaf92 100644
--- a/Samples/common/SampleBase.cs
+++ b/Samples/common/SampleBase.cs
@@ -127,6 +127,9 @@ namespace Crow
public override string ToString ()
=> $"{Prop1}, {Prop2}";
+ public void OnValidateCommand (Object sender, ValidateEventArgs e) {
+ Console.WriteLine ($"Validation: {e.ValidatedText}");
+ }
}
public class TestClassVC : IValueChange
{
@@ -160,7 +163,7 @@ namespace Crow
=> $"{Prop1}, {Prop2}";
}
- TestClass tcInstance;// = new TestClass () { Prop1 = "instance 0 prop1 value", Prop2 = "instance 0 prop2 value" };
+ TestClass tcInstance = new TestClass () { Prop1 = "instance 0 prop1 value", Prop2 = "instance 0 prop2 value" };
TestClassVC tcVCInstance;// = new TestClassVC () { Prop1 = "instance 0 prop1 value", Prop2 = "instance 0 prop2 value" };
TestClass tcInstance1 = new TestClass () { Prop1 = "instance 1 prop1 value", Prop2 = "instance 1 prop2 value" };
TestClassVC tcVCInstance1 = new TestClassVC () { Prop1 = "instance 1 prop1 value", Prop2 = "instance 1 prop2 value" };