public HomeModule(IUnityContainer container, IRegionManager regionManager, IGrigCoreNavigationService grigCoreNavigationService) { _container = container; _regionManager = regionManager; _grigCoreNavigationService = grigCoreNavigationService; }
public AccountModule(IRegionManager regionManager, IUserService userService, IApplicationState applicationState, AccountSelectorView accountSelectorView, AccountSelectorViewModel accountSelectorViewModel, AccountDetailsView accountDetailsView, DocumentCreatorView documentCreatorView, BatchDocumentCreatorView batchDocumentCreatorView, BatchDocumentCreatorViewModel batchDocumentCreatorViewModel) : base(regionManager, AppScreens.AccountView) { _regionManager = regionManager; _userService = userService; _applicationState = applicationState; _accountSelectorView = accountSelectorView; _accountSelectorViewModel = accountSelectorViewModel; _accountDetailsView = accountDetailsView; _documentCreatorView = documentCreatorView; _batchDocumentCreatorView = batchDocumentCreatorView; _batchDocumentCreatorViewModel = batchDocumentCreatorViewModel; AddDashboardCommand<EntityCollectionViewModelBase<AccountTypeViewModel, AccountType>>(Resources.AccountType.ToPlural(), Resources.Accounts, 40); AddDashboardCommand<EntityCollectionViewModelBase<AccountViewModel, Account>>(Resources.Account.ToPlural(), Resources.Accounts, 40); AddDashboardCommand<EntityCollectionViewModelBase<AccountScreenViewModel, AccountScreen>>(Resources.AccountScreen.ToPlural(), Resources.Accounts, 40); AddDashboardCommand<EntityCollectionViewModelBase<AccountTransactionTypeViewModel, AccountTransactionType>>(Resources.TransactionType.ToPlural(), Resources.Accounts, 40); AddDashboardCommand<EntityCollectionViewModelBase<AccountTransactionDocumentTypeViewModel, AccountTransactionDocumentType>>(Resources.DocumentType.ToPlural(), Resources.Accounts, 40); AddDashboardCommand<EntityCollectionViewModelBase<AccountTransactionDocumentViewModel, AccountTransactionDocument>>(Resources.Transaction.ToPlural(), Resources.Accounts, 40); PermissionRegistry.RegisterPermission(PermissionNames.NavigateAccountView, PermissionCategories.Navigation, Resources.CanNavigateCash); PermissionRegistry.RegisterPermission(PermissionNames.CreateAccount, PermissionCategories.Account, Resources.CanCreateAccount); SetNavigationCommand(Resources.Accounts, Resources.Common, "Images/Xls.png", 30); }
public ModifierModule(IRegionManager regionManager, IUserService userService, ExtraModifierEditorView extraModifierEditorView, ExtraModifierEditorViewModel extraModifierEditorViewModel, TicketNoteEditorView ticketNoteEditorView, TicketNoteEditorViewModel ticketNoteEditorViewModel, TicketTagEditorView ticketTagEditorView, TicketTagEditorViewModel ticketTagEditorViewModel, OrderTagEditorView selectedOrdersView, OrderTagEditorViewModel selectedOrdersViewModel) { _selectedOrdersView = selectedOrdersView; _selectedOrdersViewModel = selectedOrdersViewModel; _ticketNoteEditorView = ticketNoteEditorView; _ticketNoteEditorViewModel = ticketNoteEditorViewModel; _ticketTagEditorView = ticketTagEditorView; _ticketTagEditorViewModel = ticketTagEditorViewModel; _extraModifierEditorViewModel = extraModifierEditorViewModel; _extraModifierEditorView = extraModifierEditorView; _regionManager = regionManager; _userService = userService; EventServiceFactory.EventService.GetEvent<GenericEvent<SelectedOrdersData>>().Subscribe(OnSelectedOrdersDataEvent); EventServiceFactory.EventService.GetEvent<GenericEvent<EventAggregator>>().Subscribe(OnDisplayTicketDetailsScreen); EventServiceFactory.EventService.GetEvent<GenericEvent<TicketTagData>>().Subscribe(OnTicketTagDataSelected); EventServiceFactory.EventService.GetEvent<GenericEvent<Ticket>>().Subscribe(OnTicketEvent); _showExtraModifierCommand = new CaptionCommand<Ticket>(Resources.ExtraModifier, OnExtraModifiersSelected, CanSelectExtraModifier); _showExtraModifierCommand.PublishEvent(EventTopicNames.AddCustomOrderCommand); }
public CustomerListVM(IRegionManager regionManager) { this.regionManager = regionManager; this._Customers = CustomerService.GetAllCustomers(0); Add_Customer = new DelegateCommand(AddCustomerHandler); }
public CalendarViewModel(ICalendarService calendarService, IRegionManager regionManager) { this.synchronizationContext = SynchronizationContext.Current ?? new SynchronizationContext(); this.openMeetingEmailCommand = new DelegateCommand<Meeting>(this.OpenMeetingEmail); this.meetings = new ObservableCollection<Meeting>(); this.calendarService = calendarService; this.regionManager = regionManager; this.calendarService.BeginGetMeetings( r => { var meetings = this.calendarService.EndGetMeetings(r); this.synchronizationContext.Post( s => { foreach (var meeting in meetings) { this.Meetings.Add(meeting); } }, null); }, null); }
public ArticleViewModel(INewsFeedService newsFeedService, IRegionManager regionManager, IEventAggregator eventAggregator) { if (newsFeedService == null) { throw new ArgumentNullException("newsFeedService"); } if (regionManager == null) { throw new ArgumentNullException("regionManager"); } if (eventAggregator == null) { throw new ArgumentNullException("eventAggregator"); } this.newsFeedService = newsFeedService; this.regionManager = regionManager; this.showArticleListCommand = new DelegateCommand(this.ShowArticleList); this.showNewsReaderViewCommand = new DelegateCommand(this.ShowNewsReaderView); eventAggregator.GetEvent<TickerSymbolSelectedEvent>().Subscribe(OnTickerSymbolSelected, ThreadOption.UIThread); }
public ModuleOne(IRegionManager regionManager, CompositionContainer container) { if(regionManager == null) throw new ArgumentNullException("regionManager"); if(container == null) throw new ArgumentNullException("container"); _regionManager = regionManager; _container = container; }
public ModuleB(IUnityContainer container, IRegionManager regionManager) { Container = container; RegionManager = regionManager; RegisterViewsAndServices(); }
public ModuleInit(IRegionManager regionManager, IUnityContainer container, IEventAggregator eventAggregator, IModuleManager moduleManager) { this.regionManager = regionManager; this.container = container; this.eventAggregator = eventAggregator; this.moduleManager = moduleManager; }
public AccountModule(IRegionManager regionManager, IUserService userService, AccountSelectorView accountSelectorView, AccountDetailsView accountDetailsView, DocumentCreatorView documentCreatorView) : base(regionManager, AppScreens.AccountList) { _regionManager = regionManager; _userService = userService; _accountSelectorView = accountSelectorView; _accountDetailsView = accountDetailsView; _documentCreatorView = documentCreatorView; AddDashboardCommand<EntityCollectionViewModelBase<AccountTemplateViewModel, AccountTemplate>>(Resources.AccountTemplate.ToPlural(), Resources.Accounts, 40); AddDashboardCommand<EntityCollectionViewModelBase<AccountViewModel, Account>>(Resources.Account.ToPlural(), Resources.Accounts, 40); AddDashboardCommand<EntityCollectionViewModelBase<AccountScreenViewModel, AccountScreen>>(Resources.AccountScreen.ToPlural(), Resources.Accounts, 40); AddDashboardCommand<EntityCollectionViewModelBase<AccountTransactionTemplateViewModel, AccountTransactionTemplate>>(Resources.TransactionTemplate.ToPlural(), Resources.Accounts, 40); AddDashboardCommand<EntityCollectionViewModelBase<AccountTransactionDocumentViewModel, AccountTransactionDocument>>(Resources.TransactionDocument.ToPlural(), Resources.Accounts, 40); AddDashboardCommand<EntityCollectionViewModelBase<AccountTransactionDocumentTemplateViewModel, AccountTransactionDocumentTemplate>>(Resources.DocumentTemplate.ToPlural(), Resources.Accounts, 40); PermissionRegistry.RegisterPermission(PermissionNames.NavigateAccountView, PermissionCategories.Navigation, Resources.CanNavigateCash); PermissionRegistry.RegisterPermission(PermissionNames.MakeAccountTransaction, PermissionCategories.Cash, Resources.CanMakeAccountTransaction); PermissionRegistry.RegisterPermission(PermissionNames.CreditOrDeptAccount, PermissionCategories.Cash, Resources.CanMakeCreditOrDeptTransaction); PermissionRegistry.RegisterPermission(PermissionNames.CreateAccount, PermissionCategories.Account, Resources.CanCreateAccount); SetNavigationCommand(Resources.Accounts, Resources.Common, "Images/Xls.png", 70); }
public TaskViewModel(IRegionManager regionManager, IAppResourceService appResourceService) { _regionManager = regionManager; _appResourceService = appResourceService; VmTitle = Names.TaskItem; VmImage = _appResourceService.GetPng16("users"); }
public DockSystemModule(DockSystemView dockSystemView, IDefaultContentsTemplate contentsTemplate, IRegionManager regionViewRegistry) { this.dockSystemView = dockSystemView; this.contentsTemplate = contentsTemplate; this.regionViewRegistry = regionViewRegistry; }
public MainModuleClass(IUnityContainer unityContainer, IRegionManager regionManager) { _regionManager = regionManager; _unityContainer = unityContainer; _unityContainer.RegisterType(typeof (IMusicGridPresenter), typeof (MusicGridPresenter), false); _unityContainer.RegisterType(typeof(IMusicGridView), typeof(MusicGridView), false); }
public WatchListViewModel(IWatchListService watchListService, IMarketFeedService marketFeedService, IRegionManager regionManager, IEventAggregator eventAggregator) { if (watchListService == null) { throw new ArgumentNullException("watchListService"); } if (eventAggregator == null) { throw new ArgumentNullException("eventAggregator"); } this.HeaderInfo = Resources.WatchListTitle; this.WatchListItems = new ObservableCollection<WatchItem>(); this.marketFeedService = marketFeedService; this.regionManager = regionManager; this.watchList = watchListService.RetrieveWatchList(); this.watchList.CollectionChanged += delegate { this.PopulateWatchItemsList(this.watchList); }; this.PopulateWatchItemsList(this.watchList); this.eventAggregator = eventAggregator; this.eventAggregator.GetEvent<MarketPricesUpdatedEvent>().Subscribe(this.MarketPricesUpdated, ThreadOption.UIThread); this.removeWatchCommand = new DelegateCommand<string>(this.RemoveWatch); this.watchListItems.CollectionChanged += this.WatchListItems_CollectionChanged; }
public SalesModule(IEventAggregator eventAggregator, INavigationService navigationService, IUnityContainer container, IRegionManager regionManager) { _container = container; _regionManager = regionManager; _navigationService = navigationService; _eventAggregator = eventAggregator; }
public ConnectionStringsService(IRegionManager regionManager, IEventAggregator eventAggregator) { this.eventAggregator = eventAggregator; this.regionManager = regionManager; ConnectionStrings = new List<IConnectionString>(); if (Settings.Default.ConnectionStrings == null) { var previousVersion = Settings.Default.GetPreviousVersion("ConnectionStrings"); if (previousVersion != null) { Settings.Default.Upgrade(); Settings.Default.Save(); } else { Settings.Default.ConnectionStrings = new List<string> { new ConnectionString("1", "192.168.1.2\\SQLEXPRESS, 1433", "eugenie-gore.ddns.net\\SQLEXPRESS, 1433","Eugenie", "pR1nc30f", "sv.stoichkov").Serialize(), new ConnectionString("2", "192.168.1.3\\SQLEXPRESS, 1433", "192.168.1.4\\SQLEXPRESS, 1433", "Eugenie2", "pR1nc30f", "sv.stoichkov").Serialize() }; Settings.Default.Save(); } } Initialize(); }
public ResourceUseCase( // Get the ViewToRegionBinder that the baseclass needs IViewToRegionBinder viewtoToRegionBinder , IRegionManager regionManager , IUnityContainer container , IEventAggregator eventAggregator // Get the factories that can create the viewmodels , ObjectFactory<ResourceListViewModel> resourceViewModel , ObjectFactory<ResourceToolbarViewModel> resourceToolbarViewModel , IApplicationModel applicationModel , IModelVisualizationRegistry modelVisualizationRegistry) : base(viewtoToRegionBinder) { this.ApplicationModel = applicationModel; this.Container = container; // Just before the view is initialized for the first time this.AddInitializationMethods( // Create the emailViewModel and assign it to this variable () => this._resourceListViewModel = resourceViewModel.CreateInstance() , () => this._resourceToolbarViewModel = resourceToolbarViewModel.CreateInstance()); // Register visualizations for these view models. This means: whenever a viewmodel is displayed, // use this type of view to visualize it. modelVisualizationRegistry.Register<ResourceListViewModel, ResourceListView>(); modelVisualizationRegistry.Register<ResourceToolbarViewModel, ResourceToolbarView>(); modelVisualizationRegistry.Register<ResourceEditViewModel, ResourceEditView>(); container.RegisterType<IResourceAssignService, ResourceAssignmentService>(new ContainerControlledLifetimeManager()); container.RegisterInstance(container.Resolve<IResourceAssignService>()); regionManager.RegisterViewWithRegion("ResourceEditRegion", typeof(ResourceEditViewModel)); // watch for OpenResourceEvents fired by (Link)Button command in ProjectEditViewModel... eventAggregator.GetEvent<OpenResourceByIdEvent>().Subscribe(OpenResourceById); }
public NewsController(IRegionManager regionManager, IArticlePresentationModel articlePresentationModel, IEventAggregator eventAggregator) { this.regionManager = regionManager; this.articlePresentationModel = articlePresentationModel; this.eventAggregator = eventAggregator; this.articlePresentationModel.Controller = this; }
public BasicReportModule(IRegionManager regionManager, BasicReportView basicReportView, IWorkPeriodService workPeriodService, IPrinterService printerService, ICacheService cacheService, IInventoryService inventoryService, IUserService userService, IAutomationService automationService, IApplicationState applicationState, ILogService logService, ISettingService settingService) : base(regionManager, AppScreens.ReportView) { ReportContext.PrinterService = printerService; ReportContext.WorkPeriodService = workPeriodService; ReportContext.InventoryService = inventoryService; ReportContext.UserService = userService; ReportContext.ApplicationState = applicationState; ReportContext.CacheService = cacheService; ReportContext.LogService = logService; ReportContext.SettingService = settingService; _userService = userService; _regionManager = regionManager; _basicReportView = basicReportView; SetNavigationCommand(Resources.Reports, Resources.Common, "Images/Ppt.png", 60); PermissionRegistry.RegisterPermission(PermissionNames.OpenReports, PermissionCategories.Navigation, Resources.CanDisplayReports); PermissionRegistry.RegisterPermission(PermissionNames.ChangeReportDate, PermissionCategories.Report, Resources.CanChangeReportFilter); //todo refactor automationService.RegisterParameterSource("ReportName", () => ReportContext.Reports.Select(x => x.Header)); }
public ChannelbarViewModel( IChatModel cm, IUnityContainer contain, IRegionManager regman, IEventAggregator events, ICharacterManager manager) : base(contain, regman, events, cm, manager) { try { Events.GetEvent<ChatOnDisplayEvent>().Subscribe(RequestNavigate, ThreadOption.UIThread, true); // create the tabs Container.Resolve<ChannelsTabViewModel>(); Container.Resolve<UsersTabViewModel>(); Container.Resolve<NotificationsTabViewModel>(); Container.Resolve<GlobalTabViewModel>(); Container.Resolve<ManageListsTabView>(); ChatModel.Notifications.CollectionChanged += (s, e) => { if (!IsExpanded) { // removed checking logic, allow the notifications daemon to worry about that HasUpdate = true; } }; } catch (Exception ex) { ex.Source = "Channelbar ViewModel, init"; Exceptions.HandleException(ex); } }
/// <summary> /// Initializes a new instance of the <see cref="NavigatorModule"/> class. /// </summary> /// <param name="container">The container.</param> /// <param name="regionManager">The region manager.</param> public NavigatorModule( IUnityContainer container, IRegionManager regionManager) { _container = container; _regionManager = regionManager; }
/// <summary> /// Initializes a new instance of the <see cref="VMBase" /> class. /// </summary> /// <param name="aggregator">The aggregator.</param> /// <param name="regionManager">The region manager.</param> /// <param name="connectionManager"></param> /// <param name="interactionService"></param> /// <param name="loggerFacade"></param> /// <exception cref="System.ArgumentNullException"> /// Any parameter /// </exception> public ApplicationMenuViewModel(IEventAggregator aggregator, IRegionManager regionManager, IConnectionManager connectionManager, IInteractionService interactionService, ILoggerFacade loggerFacade) : base(aggregator, regionManager, connectionManager, interactionService, loggerFacade) { EventAggregator.GetEvent<UserAuthCompletedEvent>().Subscribe(OnUserAuth); }
public ModifierModule(IRegionManager regionManager, IUserService userService, TicketNoteEditorView ticketNoteEditorView, TicketNoteEditorViewModel ticketNoteEditorViewModel, TicketTagEditorView ticketTagEditorView, TicketTagEditorViewModel ticketTagEditorViewModel, OrderTagGroupEditorView selectedOrdersView, OrderTagGroupEditorViewModel selectedOrdersViewModel, AutomationCommandSelectorView automationCommandSelectorView, AutomationCommandSelectorViewModel automationCommandSelectorViewModel, ProductTimerEditorView productTimerEditorView, ProductTimerEditorViewModel productTimerEditorViewModel) { _selectedOrdersView = selectedOrdersView; _selectedOrdersViewModel = selectedOrdersViewModel; _automationCommandSelectorView = automationCommandSelectorView; _productTimerEditorView = productTimerEditorView; _productTimerEditorViewModel = productTimerEditorViewModel; _ticketNoteEditorView = ticketNoteEditorView; _ticketNoteEditorViewModel = ticketNoteEditorViewModel; _ticketTagEditorView = ticketTagEditorView; _ticketTagEditorViewModel = ticketTagEditorViewModel; _regionManager = regionManager; EventServiceFactory.EventService.GetEvent<GenericEvent<SelectedOrdersData>>().Subscribe(OnSelectedOrdersDataEvent); EventServiceFactory.EventService.GetEvent<GenericEvent<EventAggregator>>().Subscribe(OnDisplayTicketDetailsScreen); EventServiceFactory.EventService.GetEvent<GenericEvent<TicketTagData>>().Subscribe(OnTicketTagDataSelected); EventServiceFactory.EventService.GetEvent<GenericEvent<Ticket>>().Subscribe(OnTicketEvent); EventServiceFactory.EventService.GetEvent<GenericEvent<AutomationCommand>>().Subscribe(OnAutomationCommandEvent); }
public PosViewModel(IRegionManager regionManager, IApplicationState applicationState, IApplicationStateSetter applicationStateSetter, ITicketService ticketService, IUserService userService, ICacheService cacheService, TicketListViewModel ticketListViewModel, TicketTagListViewModel ticketTagListViewModel, MenuItemSelectorViewModel menuItemSelectorViewModel, MenuItemSelectorView menuItemSelectorView, TicketViewModel ticketViewModel, TicketOrdersViewModel ticketOrdersViewModel,TicketEntityListViewModel ticketEntityListViewModel) { _ticketService = ticketService; _userService = userService; _cacheService = cacheService; _applicationState = applicationState; _applicationStateSetter = applicationStateSetter; _regionManager = regionManager; _menuItemSelectorView = menuItemSelectorView; _ticketViewModel = ticketViewModel; _ticketOrdersViewModel = ticketOrdersViewModel; _menuItemSelectorViewModel = menuItemSelectorViewModel; _ticketListViewModel = ticketListViewModel; _ticketTagListViewModel = ticketTagListViewModel; _ticketEntityListViewModel = ticketEntityListViewModel; EventServiceFactory.EventService.GetEvent<GenericEvent<Ticket>>().Subscribe(OnTicketEventReceived); EventServiceFactory.EventService.GetEvent<GenericEvent<SelectedOrdersData>>().Subscribe(OnSelectedOrdersChanged); EventServiceFactory.EventService.GetEvent<GenericEvent<EventAggregator>>().Subscribe(OnTicketEvent); EventServiceFactory.EventService.GetEvent<GenericEvent<ScreenMenuItemData>>().Subscribe(OnMenuItemSelected); EventServiceFactory.EventService.GetEvent<GenericIdEvent>().Subscribe(OnTicketIdPublished); EventServiceFactory.EventService.GetEvent<GenericEvent<EntityOperationRequest<Entity>>>().Subscribe(OnEntitySelectedForTicket); EventServiceFactory.EventService.GetEvent<GenericEvent<TicketTagGroup>>().Subscribe(OnTicketTagSelected); EventServiceFactory.EventService.GetEvent<GenericEvent<TicketStateData>>().Subscribe(OnTicketStateSelected); EventServiceFactory.EventService.GetEvent<GenericEvent<Department>>().Subscribe(OnDepartmentChanged); }
public AddQuestionView(AddQuestionViewModel viewModel, IRegionManager regionManager) { _regionManager = regionManager; ViewModel = viewModel; DataContext = this.ViewModel; InitializeComponent(); }
/// <summary> /// Initializes a new instance of the <see cref="BillingModule"/> class. /// </summary> /// <param name="accessControlManager">The access control manager.</param> /// <param name="container">The container.</param> /// <param name="regionManager">The region manager.</param> /// <param name="currentUserContextService">The current user context service.</param> /// <param name="asyncRequestDispatcherFactory">The async request dispatcher factory.</param> /// <param name="eventAggregator">The event aggregator.</param> public BillingModule( IAccessControlManager accessControlManager, IUnityContainer container, IRegionManager regionManager, ICurrentUserContextService currentUserContextService, IAsyncRequestDispatcherFactory asyncRequestDispatcherFactory, IEventAggregator eventAggregator ) { _accessControlManager = accessControlManager; _container = container; _regionManager = regionManager; _asyncRequestDispatcherFactory = asyncRequestDispatcherFactory; _eventAggregator = eventAggregator; //This is temporary until the main navigation dropdown is fixed currentUserContextService.RegisterForContext ( ( u, b ) => { if ( u != null ) { _agencyKey = u.Agency.Key; HandleCheckBillingOffice (); } }, true ); }
public PartyAccountabilitySelectorViewModel(IEventAggregator eventAggregator, IMdmService entityService, IRegionManager regionManager) { this.eventAggregator = eventAggregator; this.entityService = entityService; this.regionManager = regionManager; this.AsOf = SystemTime.UtcNow().Date; }
public static void RegisterNewPopupRegion(DependencyObject owner, string regionName) { // Creates a new region and registers it in the default region manager. // Another option if you need the complete infrastructure with the default region behaviors // is to extend DelayedRegionCreationBehavior overriding the CreateRegion method and create an // instance of it that will be in charge of registering the Region once a RegionManager is // set as an attached property in the Visual Tree. RegionMngr = ServiceLocator.Current.GetAllInstances<IRegionManager>().First(); if (RegionMngr != null) { IRegion region = new SingleActiveRegion(); DialogActivationBehavior behavior; #if SILVERLIGHT behavior = new PopupDialogActivationBehavior(); #else behavior = new WindowDialogActivationBehavior(); #endif behavior.HostControl = owner; region.Behaviors.Add(DialogActivationBehavior.BehaviorKey, behavior); RegionMngr.Regions.Add(regionName, region); } }
public PageStartMenuViewModel(IRegionManager regionManager, ITaskDialogService taskDialog) { _regionManager = regionManager; _taskDialog = taskDialog; NavigateCommand = new DelegateCommand<Uri>(Navigate); ExitCommand = new DelegateCommand<Window>(ExitGame); }
public TestResultsController(IUnityContainer container, IRegionManager regionManager, IEventAggregator eventAggregator, ISettingsService settingsService) { _container = container; _regionManager = regionManager; _eventAggregator = eventAggregator; _settingsService = settingsService; }
public MainWindowViewModel(IRegionManager regionManager) { }
public NotesModule(IRegionManager regionManager) { _regionManager = regionManager; }
///////////////////////////////////////////////////////////////////////////////////////////////////// // OBJECT ///////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Initializes a new instance of the <see cref="MainModule"/> class. /// </summary> /// <param name="container">The container.</param> /// <param name="registry">The registry.</param> /// <param name="regionManager">The region manager.</param> public MainModule(IUnityContainer container, IRegionViewRegistry registry, IRegionManager regionManager) { this.container = container; this.regionViewRegistry = registry; this.regionManager = regionManager; }
public ModuleBase(IUnityContainer container, IRegionManager regionManager) { Container = container; RegionManager = regionManager; }
public NewWorkoutViewModel(IUnitOfWork unitOfWork, IEventAggregator eventAggregator, IRegionManager regionManager) { _unitOfWork = unitOfWork; _eventAggregator = eventAggregator; _regionManager = regionManager; _newExercise = new Exercise(); _newRepetition = new Repetition(); _newWorkout = new Workout(); AddWorkoutCommand = new DelegateCommand(AddWorkout); AddExerciseCommand = new DelegateCommand(AddExercise); RemoveExerciseCommand = new DelegateCommand(RemoveExercise); AddRepetitionCommand = new DelegateCommand(AddRepetition); RemoveRepetitionCommand = new DelegateCommand(RemoveRepetition); _eventAggregator.GetEvent <ActivityEvent>().Subscribe(GetActivity); }
public CollectionCommandAddinBase(IUnityContainer unity, IRegionManager regionManager) { _unity = unity; _regionManager = regionManager; }
public SearchModuleModule(IUnityContainer container, IRegionManager regionManager) { _container = container; _regionManager = regionManager; }
public PracticeModule(IRegionManager regionManager) { mRegionManager = regionManager; }
public TimePickerModule(IRegionManager regionManager) { regionManager.RegisterViewWithRegion(Lib.RegionNames.TimePickingRegion, typeof(TimePickerView)); }
public DepartmentMstViewModel(IRegionManager regionManager) { this.regionManager = regionManager; }
public ViewDashboardInvestmentCommitteePresentations(ILoggerFacade logger, IEventAggregator eventAggregator, IDBInteractivity dbInteractivity, IRegionManager regionManager) { InitializeComponent(); _eventAggregator = eventAggregator; _logger = logger; _dBInteractivity = dbInteractivity; _regionManager = regionManager; _eventAggregator.GetEvent <DashboardGadgetLoad>().Subscribe(HandleDashboardGadgetLoad); this.tbHeader.Text = GadgetNames.ICPRESENTATION_PRESENTATIONS; }
public ToolbarModule(IRegionManager regionManager, IUnityContainer container) { this.regionManager = regionManager; this.container = container; }
public CityChannel(Util.IChannel channel, Procedure procedure, Formula formula, IRegionManager regionManager, IRegionLocator regionLocator, IBattleFormulas battleFormulas) { this.channel = channel; this.procedure = procedure; this.formula = formula; this.regionManager = regionManager; this.regionLocator = regionLocator; this.battleFormulas = battleFormulas; }
public MainWindow(IContainerExtension container, IRegionManager regionManager) { InitializeComponent(); _container = container; _regionManager = regionManager; }
public Module(IRegionManager regionManager) { this.regionManager = regionManager; }
/// <summary> /// Initializes a new instance of the <see cref="ViewContext"/> class. /// </summary> /// <param name="unityContainer">An instance of <see cref="IUnityContainer"/>.</param> /// <param name="modalManager">An instance of <see cref="ModalNavigator"/>.</param> /// <param name="navigationManager">An instance of <see cref="NavigationManager"/>.</param> /// <param name="regionManager">An instance of Prism <see cref="RegionManager"/>.</param> /// <param name="logger">An instance of <see cref="ILoggerFacade"/>.</param> public ViewContext(IUnityContainer unityContainer, ModalNavigator modalManager, NavigationManager navigationManager, IRegionManager regionManager, ILoggerFacade logger) : base(unityContainer, logger) { this.modalManager = modalManager; this.navigationManager = navigationManager; this.regionManager = regionManager; }
public VideoVoiceCommandProcessor(IRegionManager regionManager, IVideoService videoService) { _RegionManager = regionManager; _VideoService = videoService; }
public MenuHelper(IRegionManager regionManager) { moduleMenuProviders = Enumerable.Empty <Lazy <IModuleMenuProvider, IModuleMenuExportMetadata> >(); this.regionManager = regionManager; }
public ClientZoneViewModel(IDataServices dataServices, IRegionManager region, IEventManager manager, IDialogService dialogService) : base( string.Empty, dataServices, region, manager, dialogService) { GridIdentifier = KarveCommon.Generic.GridIdentifiers.HelperClientZone; }
public SharedModule(IRegionManager regionManager) { _regionManager = regionManager; }
/// <summary> /// Initializes a new instance of the <see cref="HeaderViewModel"/> class. /// </summary> /// <param name="regionManager">The region manager.</param> /// <param name="eventAggregator">The event aggregator.</param> public HeaderViewModel(IRegionManager regionManager, IEventAggregator eventAggregator) { this.regionManager = regionManager; this.eventAggregator = eventAggregator; }
public LogIn(IRegionManager RegionManager) : base(RegionManager) { this.Model = new LoginModel(); InitializeComponent(); }
public AppModule(IUnityContainer container, IRegionManager regionManager) { this.Container = container; this.RegionManager = regionManager; }
public PlayerModule(IUnityContainer container, IRegionManager regionManager) { this.container = container; this.regionManager = regionManager; }
public ArtikliEditViewModel(IDbService dbService, IRegionManager regionManager) { _dbService = dbService; _regionManager = regionManager; }
public InvoiceModule(IUnityContainer container, IRegionManager region_manager) : base(container, region_manager) { }
public EditorModule(IRegionManager regionManager) { _regionManager = regionManager; }
public FamilyDetailsViewModel(IRegionManager iregionManager) { IregionManager = iregionManager; NavigateCommand = new DelegateCommand <string>(Navigate); }
public ToolSettingViewModel(IEventAggregator ea, IXmlCompareToolSetting ToolSetting, IXmlSettingCollection CurrentSettingCollection, pnlDictionaryEdtPanelViewModel DictionaryEdtPanel, IXmlCompareUserControl UserControl, IXmlSettingReportDictionary CurrentReportDictionary, IXmlSettingFactorty SettingFact, IRegionManager regionManager, IXmlSettingNode _CurrentNode, IXmlSetting _CurrentSetting) { AddNewTypeCommand = new DelegateCommand <IXmlSettingCollection>(AddNewTypeCommandExecute); DeleteTypeCommand = new DelegateCommand(DeleteTypeCommandExecute); KeyFlagTrueCommand = new DelegateCommand(KeyFlagTrueCommandExecute); KeyFlagFalseCommand = new DelegateCommand(KeyFlagFalseCommandExecute); SaveCommand = new DelegateCommand(SaveCommandExecute); chkMoreCommand = new DelegateCommand(chkMoreCommandExecute); BackCommand = new DelegateCommand(Back); AddAttrCompareFlagCommand = new DelegateCommand(AddAttrCompareFlag); RemoveAttrCompareFlagCommand = new DelegateCommand(RemoveAttrCompareFlag); AddNodeCompareFlagCommand = new DelegateCommand(AddNodeCompareFlag); RemoveNodeCompareFlagCommand = new DelegateCommand(RemoveNodeCompareFlag); CurrentNode = _CurrentNode; _CurrentReportDictionary = CurrentReportDictionary; CurrentSetting = _CurrentSetting; _regionManager = regionManager; m_ToolSetting = ToolSetting; m_UserControl = UserControl; m_SettingFact = SettingFact; m_DictionaryEdtPanel = DictionaryEdtPanel; m_DictionaryEdtPanel = new pnlDictionaryEdtPanelViewModel(ea, m_ToolSetting, m_UserControl, _CurrentReportDictionary, CurrentNode, CurrentSetting); ChkMoreSelected = false; m_CurrentSettingCollection = CurrentSettingCollection; m_CurrentSettingCollection = m_SettingFact.ReadSettingCollection(m_ToolSetting.GetXmlSettingFilePath().Value); _ea = ea; _ea.GetEvent <CollectionEvent>().Subscribe(GetCollection); Flag = m_UserControl.IsUserHasPriviledge(m_UserControl.GetCurrentUser(), "XmlSettingFilePath"); XmlTypeList = new ObservableCollection <string>(m_CurrentSettingCollection.GetAllSettingTypes()); SelectType = null; ChkContent = "Show Report Dictionary Setting"; }
public PhotoFolderImportViewModel(IServiceProvider serviceProvider, IWindowService windowService, IFileSystem fileSystem, IDialogService dialogService, IRegionManager regionManager) { _serviceProvider = serviceProvider; _windowService = windowService; _fileSystem = fileSystem; _dialogService = dialogService; _regionManager = regionManager; }