aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/HelloWorld/main.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-24 23:50:38 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-24 23:50:38 +0100
commitb25ad7a6e15a7284e40407377a1624747ffe42e5 (patch)
treef53a12fb2120eb7f1b82ccfbda37a2430c5be330 /Samples/HelloWorld/main.cs
parent09026f4328d0e578823062d6506ffdacac457b25 (diff)
IBackend instead of IDevice to bind to Interface
Diffstat (limited to 'Samples/HelloWorld/main.cs')
-rw-r--r--Samples/HelloWorld/main.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Samples/HelloWorld/main.cs b/Samples/HelloWorld/main.cs
index e60b9782..e84607b9 100644
--- a/Samples/HelloWorld/main.cs
+++ b/Samples/HelloWorld/main.cs
@@ -1,13 +1,15 @@
using System;
using Crow;
+using Glfw;
using Samples;
namespace HelloWorld
{
- class Program {
+ class Program : Interface {
+ Program() : base (800, 600, true, true) {}
static void Main (string[] args) {
- using (Interface app = new Interface ()) {
- app.Initialized += (sender, e) => app.LoadIMLFragment (@"<Label Text='Hello World'/>");
+ using (Program app = new Program ()) {
+ app.Initialized += (sender, e) => app.LoadIMLFragment (@"<Window Caption='Hello World'/>");
app.Run ();
}
}