summaryrefslogtreecommitdiff
path: root/reference/csharp/snippets/Efl.Ui.Check.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/snippets/Efl.Ui.Check.cs')
-rw-r--r--reference/csharp/snippets/Efl.Ui.Check.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/reference/csharp/snippets/Efl.Ui.Check.cs b/reference/csharp/snippets/Efl.Ui.Check.cs
new file mode 100644
index 0000000..8d3f47c
--- /dev/null
+++ b/reference/csharp/snippets/Efl.Ui.Check.cs
@@ -0,0 +1,12 @@
1Efl.Ui.Check check = new Efl.Ui.Check(parent);
2
3check.SetText("Test Check");
4check.SetSelected(true);
5
6check.SelectedChangedEvent += (sender, args) =>
7{
8 if (check.Selected)
9 Console.WriteLine("Check is selected");
10 else
11 Console.WriteLine("Check is not selected");
12};