summaryrefslogtreecommitdiff
path: root/reference/csharp/snippets/Efl.Ui.Datepicker.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/snippets/Efl.Ui.Datepicker.cs')
-rw-r--r--reference/csharp/snippets/Efl.Ui.Datepicker.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/reference/csharp/snippets/Efl.Ui.Datepicker.cs b/reference/csharp/snippets/Efl.Ui.Datepicker.cs
new file mode 100644
index 0000000..4288131
--- /dev/null
+++ b/reference/csharp/snippets/Efl.Ui.Datepicker.cs
@@ -0,0 +1,11 @@
1Efl.Ui.Datepicker datepicker = new Efl.Ui.Datepicker(parent);
2
3datepicker.SetDateMin(2000, 1, 1);
4datepicker.SetDateMax(2030, 1, 1);
5datepicker.SetDate(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
6
7datepicker.DateChangedEvent += (sender, args) =>
8{
9 datepicker.GetDate(out int year, out int month, out int day);
10 Console.WriteLine("Date has been changed! Current date: " + year + "-" + month + "-" + day);
11};