diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-10-26 08:23:19 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-10-26 08:23:19 +0200 |
| commit | c706b713a716e8b7fd29508ccf88e5de5041d1d4 (patch) | |
| tree | c71fcc73e4f28c9248eece7df8a2c70225cc498c /Samples/HelloWorld/main.cs | |
| parent | 942155da0d427b7c4f98fa91da390461b5f1dd9f (diff) | |
rename all 'GraphicObject' to 'Widget', move to netcoreapp3.0 for crow library to use LoadContext for native dll resolutionFileDialogImprove
Diffstat (limited to 'Samples/HelloWorld/main.cs')
| -rw-r--r-- | Samples/HelloWorld/main.cs | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/Samples/HelloWorld/main.cs b/Samples/HelloWorld/main.cs index dc5e2a13..e60b9782 100644 --- a/Samples/HelloWorld/main.cs +++ b/Samples/HelloWorld/main.cs @@ -4,21 +4,10 @@ using Samples; namespace HelloWorld { - class Program : SampleBase { - public CommandGroup CMDTest = new CommandGroup ( - new ActionCommand("Action", ()=> Console.WriteLine ("Action executed")) - ); + class Program { static void Main (string[] args) { - DbgLogger.IncludedEvents.AddRange ( new DbgEvtType[] { - DbgEvtType.MouseEnter, - DbgEvtType.MouseLeave, - DbgEvtType.WidgetMouseDown, - DbgEvtType.WidgetMouseUp, - DbgEvtType.WidgetMouseClick, - DbgEvtType.HoverWidget - }); - using (Interface app = new Program ()) { - app.Initialized += (sender, e) => (sender as Interface).Load ("#HelloWorld.helloworld.crow").DataSource = sender; + using (Interface app = new Interface ()) { + app.Initialized += (sender, e) => app.LoadIMLFragment (@"<Label Text='Hello World'/>"); app.Run (); } } |