protected override void OnStartup(StartupEventArgs e)
        {
            Messenger.Default.Register<NotificationMessage>(this, MessageReceived);

            _singletonApp.OnStartup(e);

            base.OnStartup(e);

            MainWindow = new LoginWindow();
            MainWindow.Show();
        }
示例#2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            Messenger.Default.Register<NotificationMessage>(this, MessageReceived);
               if (e.Args.Length != 0 && e.Args[0].ToLower() == "-mock")
                SimpleIoc.Default.Register<IClient>(() => new MockClient());
            else
               SimpleIoc.Default.Register<IClient>(() => new Client());

            _singletonApp.OnStartup(e);
            MainWindow = new LoginWindow();
            MainWindow.Show();
            base.OnStartup(e);
        }