public static void Main (string[] args) { var generator = new global::Eto.Platform.Wpf.Generator (); generator.Add<IDialog> (() => new Controls.CustomDialog ()); generator.Add<IForm> (() => new Controls.CustomForm ()); //generator.Add<IWebView>(() => new Controls.CefSharpWebViewHandler()); generator.Add<IWebView>(() => new Controls.CefGlueWebViewHandler()); generator.Add<IJabbRApplication>(() => new Controls.JabbRApplicationHandler()); Generator.Initialize(generator); Style.Add<Controls.CustomForm> (null, handler => { AddResources (handler.Control); }); Style.Add<Controls.CustomDialog> (null, handler => { AddResources (handler.Control); }); Style.Add<TreeViewHandler> ("channelList", handler => { handler.Control.BorderThickness = new sw.Thickness (0); }); Style.Add<TreeViewHandler> ("userList", handler => { handler.Control.BorderThickness = new sw.Thickness (0); }); var app = new JabbRApplication(); app.Initialized += CheckForNewVersion; app.Run (args); }
public static void Main(string[] args) { var generator = new global::Eto.Platform.Wpf.Generator(); generator.Add <IDialog> (() => new Controls.CustomDialog()); generator.Add <IForm> (() => new Controls.CustomForm()); //generator.Add<IWebView>(() => new Controls.CefSharpWebViewHandler()); generator.Add <IWebView>(() => new Controls.CefGlueWebViewHandler()); generator.Add <IJabbRApplication>(() => new Controls.JabbRApplicationHandler()); Style.Add <Controls.CustomForm> (null, handler => { AddResources(handler.Control); }); Style.Add <Controls.CustomDialog> (null, handler => { AddResources(handler.Control); }); Style.Add <TreeViewHandler> ("channelList", handler => { handler.Control.BorderThickness = new sw.Thickness(0); }); Style.Add <TreeViewHandler> ("userList", handler => { handler.Control.BorderThickness = new sw.Thickness(0); }); var app = new JabbRApplication(generator); app.Initialized += CheckForNewVersion; app.Run(args); }