aboutsummaryrefslogtreecommitdiffstats
path: root/reference
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-04-04 13:17:30 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-04-04 13:17:30 +0200
commit169f569af655a5c7d26e04a9e605c86a1f25d2aa (patch)
tree8dc3bd2a837a48636d27349a236408907001020f /reference
parentmono examples: Adapt to Efl.Csharp.Application (diff)
downloadexamples-169f569af655a5c7d26e04a9e605c86a1f25d2aa.tar.gz
Fix runtime ERR regarding WinType
WinType can only be set during construction, so SetWinType() should never be called. Use the constructor parameter for this.
Diffstat (limited to 'reference')
-rw-r--r--reference/csharp/ui/src/focus_main.cs3
-rw-r--r--reference/csharp/ui/src/ui_container.cs3
-rw-r--r--reference/csharp/ui/src/ui_sizing.cs3
3 files changed, 3 insertions, 6 deletions
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index bd0e210c..494c86a3 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -10,8 +10,7 @@ public class Example : Efl.Csharp.Application
protected override void OnInitialize(Eina.Array<System.String> args)
{
// Create a window and initialize it
- var win = new Efl.Ui.Win(null);
- win.SetWinType(Efl.Ui.WinType.Basic);
+ var win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
win.SetText("Focus example");
win.SetAutohide(true);
win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {
diff --git a/reference/csharp/ui/src/ui_container.cs b/reference/csharp/ui/src/ui_container.cs
index 609bfb36..97c1fc71 100644
--- a/reference/csharp/ui/src/ui_container.cs
+++ b/reference/csharp/ui/src/ui_container.cs
@@ -60,8 +60,7 @@ public class Example : Efl.Csharp.Application
protected override void OnInitialize(Eina.Array<System.String> args)
{
// Create a window and initialize it
- Efl.Ui.Win win = new Efl.Ui.Win(null);
- win.SetWinType(Efl.Ui.WinType.Basic);
+ Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
win.SetText("Container demo");
win.SetAutohide(true);
win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {
diff --git a/reference/csharp/ui/src/ui_sizing.cs b/reference/csharp/ui/src/ui_sizing.cs
index 96a2b967..7ccfa109 100644
--- a/reference/csharp/ui/src/ui_sizing.cs
+++ b/reference/csharp/ui/src/ui_sizing.cs
@@ -13,8 +13,7 @@ public class Example : Efl.Csharp.Application
protected override void OnInitialize(Eina.Array<System.String> args)
{
// Create a window and initialize it
- Efl.Ui.Win win = new Efl.Ui.Win(null);
- win.SetWinType(Efl.Ui.WinType.Basic);
+ Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
win.SetText("Size Control");
win.SetAutohide(true);
win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {