protected override void OnStartup(StartupEventArgs e) { Messenger.Default.Register <NotificationMessage>(this, MessageReceived); singletonApp.OnStartup(e); MainWindow = new LoginWindow(); MainWindow.Show(); base.OnStartup(e); }
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); }