Exemple #1
0
        /// <summary>
        /// Handles the Startup event of the App control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="StartupEventArgs"/> instance containing the event data.</param>
        private void App_Startup(object sender, StartupEventArgs e)
        {
            GalaSoft.MvvmLight.Threading.DispatcherHelper.Initialize();
            //Producer.OPCUAServerProducerSimulator.CreateDevice(_cbf, x => m_DisposableCollection.Add(x), y => m_Log.Add(y));
            AppBootstrapper _bootstrapper = new AppBootstrapper();

            _bootstrapper.Run();
        }
Exemple #2
0
        internal static void RunInReleaseMode()
        {
            AppDomain.CurrentDomain.UnhandledException += AppDomainUnhandledException;
            AppBootstrapper _bootstrapper;

            try
            {
                _bootstrapper = new AppBootstrapper();
                _bootstrapper.Run();
            }
            catch (Exception ex)
            {
                HandleException(ex);
                ITraceSource _logger = new TraceSourceBase();
                _logger.TraceData(TraceEventType.Critical, 51, $"Exception while composing the application: {ex}");
            }
        }