예제 #1
0
        private static void SingleInstanceMain()
        {
            var app = new App();

            ApiRequestEngine.Information += app.OnCoreInformation;
            ApiRequestEngine.Warning     += app.OnCoreWarning;
            ApiRequestEngine.Error       += app.OnCoreError;

            app.DispatcherUnhandledException += app.OnDispatcherUnhandledException;

            LogManager.LoggingShutdown += app.LogManager_LoggingShutdown;

            LocalizationUtils.Initialize();

            LocalizationUtils.LocalizationsLoaded      += app.LocalizationUtils_LocalizationsLoaded;
            LocalizationUtils.LocalizationsNotFound    += app.LocalizationUtils_LocalizationsNotFound;
            LocalizationUtils.LocalizationFileNotFound += app.LocalizationUtils_LocalizationFileNotFound;
            LocalizationUtils.LocalizedCultureNotFound += app.LocalizationUtils_LocalizedCultureNotFound;

            app.InitializeComponent();
            app.Run(Memenim.MainWindow.Instance);
        }