protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); var mainContainerConfig = new MainContainerConfig(); mainContainerConfig.RegisterAsSelf<Shell>(); mainContainerConfig.RegisterStrings<SDGuiStrings>(); var mainContainer = mainContainerConfig.BuildContainer(); mainContainer.Resolve<Shell>().Show(); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); var mainContainerConfig = new MainContainerConfig(); mainContainerConfig.RegisterAsSelf <Shell>(); mainContainerConfig.RegisterStrings <SDGuiStrings>(); var mainContainer = mainContainerConfig.BuildContainer(); mainContainer.Resolve <Shell>().Show(); }
public static int Main(string[] args) { var exitCode = -1; try { var mainContainerConfig = new MainContainerConfig(); mainContainerConfig.RegisterAsSelf<SDConsole>(); mainContainerConfig.RegisterStrings<SDConsoleStrings>(); var mainContainer = mainContainerConfig.BuildContainer(); mainContainer.Resolve<SDConsole>().Start(args); exitCode = 0; } catch (Exception ex) { Trace.TraceError(ex.ToString()); } return exitCode; }
public static int Main(string[] args) { var exitCode = -1; try { var mainContainerConfig = new MainContainerConfig(); mainContainerConfig.RegisterAsSelf <SDConsole>(); mainContainerConfig.RegisterStrings <SDConsoleStrings>(); var mainContainer = mainContainerConfig.BuildContainer(); mainContainer.Resolve <SDConsole>().Start(args); exitCode = 0; } catch (Exception ex) { Trace.TraceError(ex.ToString()); } return(exitCode); }