Exemplo n.º 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            Messenger.Default.Register <NotificationMessage>(this, MessageReceived);
            singletonApp.OnStartup(e);

            MainWindow = new LoginWindow();
            MainWindow.Show();
            base.OnStartup(e);
        }
Exemplo n.º 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);
        }