コード例 #1
0
 public void InitApplication(IAppStart appStart, HelpCommandHandler helpCommandHandler, ISettingsManager settingsManager)
 {
     _appStart        = appStart;
     _settingsManager = settingsManager;
     helpCommandHandler.RegisterHelpCommandBinding();
     RegisterXamlCulture();
 }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: xulong2005/PDFCreator
 public App(IAppStart appStart, HelpCommandHandler helpCommandHandler, ISettingsManager settingsManager)
 {
     _appStart        = appStart;
     _settingsManager = settingsManager;
     InitializeComponent();
     helpCommandHandler.RegisterHelpCommandBinding();
     RegisterXamlCulture();
 }
コード例 #3
0
        public void InitApplication(IAppStart appStart, HelpCommandHandler helpCommandHandler, ISettingsManager settingsManager)
        {
            _appStart        = appStart;
            _settingsManager = settingsManager;
            helpCommandHandler.RegisterHelpCommandBinding();
            this.ShutdownMode = ShutdownMode.OnExplicitShutdown;

            RegisterXamlCulture();
        }
コード例 #4
0
        private ExitCode RunAppStart(IAppStart appStart)
        {
            // Run this in a separate thread to avoid deadlocks

            var exitCode = ExitCode.Ok;
            var thread   = new Thread(() => exitCode = appStart.Run().GetAwaiter().GetResult());

            thread.SetApartmentState(ApartmentState.STA);
            thread.Start();
            thread.Join();

            return(exitCode);
        }
コード例 #5
0
 public App(IAppStart appStart)
 {
     _appStart = appStart;
     InitializeComponent();
 }