aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/ShowCase
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2019-08-21 16:03:14 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2019-08-21 16:03:14 +0200
commitc39fc133477d483648ce05cc1c656d9cdf2e1d3b (patch)
tree1b7529c667166a57a2ed6f59b629be8c9727b5e1 /Samples/ShowCase
parent351fcf0e73381f5dfba14185f1aaea592f9283c4 (diff)
Cairo namespace renamed to Crow.Cairo to avoid md addins fault
Diffstat (limited to 'Samples/ShowCase')
-rw-r--r--Samples/ShowCase/main.cs18
1 files changed, 11 insertions, 7 deletions
diff --git a/Samples/ShowCase/main.cs b/Samples/ShowCase/main.cs
index c6ffc408..a2b263fe 100644
--- a/Samples/ShowCase/main.cs
+++ b/Samples/ShowCase/main.cs
@@ -45,18 +45,22 @@ namespace tests
using (Showcase app = new Showcase ()) {
//app.Keyboard.KeyDown += App_KeyboardKeyDown;
- Widget g = app.Load ("#ShowCase.showcase.crow");
- g.DataSource = app;
- app.crowContainer = g.FindByName ("CrowContainer") as Container;
- //I set an empty object as datasource at this level to force update when new
- //widgets are added to the interface
- app.crowContainer.DataSource = new object ();
- app.hideError ();
app.Run ();
}
}
+ protected override void Startup ()
+ {
+ Widget g = Load ("#ShowCase.showcase.crow");
+ g.DataSource = this;
+ crowContainer = g.FindByName ("CrowContainer") as Container;
+ //I set an empty object as datasource at this level to force update when new
+ //widgets are added to the interface
+ crowContainer.DataSource = new object ();
+ hideError ();
+ }
+
static void App_KeyboardKeyDown (object sender, KeyEventArgs e)
{
#if DEBUG_LOG