Exemplo n.º 1
0
        private void AboutDialogCommand()
        {
            IAboutDialogView     view        = container.GetExportedValue <IAboutDialogView>();
            AboutDialogViewModel aboutDialog = new AboutDialogViewModel(view);

            aboutDialog.ShowDialog(this.shellViewModel.View);
        }
Exemplo n.º 2
0
        public ShellViewModel(
            IRegionManager regionManager, ISnackbarMessageQueue snackbarMessageQueue,
            IDialogService dialogService, SystemInfoService systemInfoService,
            IEventAggregator eventAggregator, IMessageService messageService, IAboutDialogView aboutDialogView)
            : base(regionManager, dialogService, eventAggregator, messageService)
        {
            _systemInfoService = systemInfoService;
            _aboutDialogView   = aboutDialogView;
            MessageQueue       = snackbarMessageQueue;

            EventAggregator.GetEvent <IsBusyEvent>().Subscribe(OnBusyEvent);
            EventAggregator.GetEvent <IsBusyMessageEvent>().Subscribe(OnBusyMessageEvent);
            EventAggregator.GetEvent <SentGlobalMessageEvent>().Subscribe(OnSentGlobalMessagEvent);

            BindData();
        }