本文整理汇总了C#中IRegionManager类的典型用法代码示例。如果您正苦于以下问题:C# IRegionManager类的具体用法?C# IRegionManager怎么用?C# IRegionManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IRegionManager类属于命名空间,在下文中一共展示了IRegionManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: CustomerListVM
public CustomerListVM(IRegionManager regionManager)
{
this.regionManager = regionManager;
this._Customers = CustomerService.GetAllCustomers(0);
Add_Customer = new DelegateCommand(AddCustomerHandler);
}
开发者ID:TheNeal,项目名称:ABBProject,代码行数:7,代码来源:CustomerListVM.cs
示例2: ModuleOne
public ModuleOne(IRegionManager regionManager, CompositionContainer container)
{
if(regionManager == null) throw new ArgumentNullException("regionManager");
if(container == null) throw new ArgumentNullException("container");
_regionManager = regionManager;
_container = container;
}
开发者ID:modulexcite,项目名称:PrismExample,代码行数:7,代码来源:ModuleOne.cs
示例3: CalendarViewModel
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);
}
开发者ID:eslahi,项目名称:prism,代码行数:28,代码来源:CalendarViewModel.cs
示例4: TaskViewModel
public TaskViewModel(IRegionManager regionManager, IAppResourceService appResourceService)
{
_regionManager = regionManager;
_appResourceService = appResourceService;
VmTitle = Names.TaskItem;
VmImage = _appResourceService.GetPng16("users");
}
开发者ID:miseeger,项目名称:SharpDevelop.Templates,代码行数:7,代码来源:TaskViewModel.cs
示例5: ModuleInit
public ModuleInit(IRegionManager regionManager, IUnityContainer container, IEventAggregator eventAggregator, IModuleManager moduleManager)
{
this.regionManager = regionManager;
this.container = container;
this.eventAggregator = eventAggregator;
this.moduleManager = moduleManager;
}
开发者ID:skidamian,项目名称:Projekt-SI,代码行数:7,代码来源:ModuleInit.cs
示例6: SalesModule
public SalesModule(IEventAggregator eventAggregator, INavigationService navigationService, IUnityContainer container, IRegionManager regionManager)
{
_container = container;
_regionManager = regionManager;
_navigationService = navigationService;
_eventAggregator = eventAggregator;
}
开发者ID:cstrahan,项目名称:openpos,代码行数:7,代码来源:SalesModule.cs
示例7: MainModuleClass
public MainModuleClass(IUnityContainer unityContainer, IRegionManager regionManager)
{
_regionManager = regionManager;
_unityContainer = unityContainer;
_unityContainer.RegisterType(typeof (IMusicGridPresenter), typeof (MusicGridPresenter), false);
_unityContainer.RegisterType(typeof(IMusicGridView), typeof(MusicGridView), false);
}
开发者ID:hsmasud,项目名称:markovmusic,代码行数:7,代码来源:MainModuleClass.cs
示例8: ModifierModule
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);
}
开发者ID:neapolis,项目名称:SambaPOS-3,代码行数:25,代码来源:ModifierModule.cs
示例9: RegisterNewPopupRegion
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);
}
}
开发者ID:basio,项目名称:veropos,代码行数:25,代码来源:RegionPopupBehaviors.cs
示例10: PosViewModel
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);
}
开发者ID:shuxingliu,项目名称:SambaPOS-3,代码行数:29,代码来源:PosViewModel.cs
示例11: AddQuestionView
public AddQuestionView(AddQuestionViewModel viewModel, IRegionManager regionManager)
{
_regionManager = regionManager;
ViewModel = viewModel;
DataContext = this.ViewModel;
InitializeComponent();
}
开发者ID:kwapisiewicz,项目名称:Edu,代码行数:7,代码来源:AddQuestionView.xaml.cs
示例12: PartyAccountabilitySelectorViewModel
public PartyAccountabilitySelectorViewModel(IEventAggregator eventAggregator, IMdmService entityService, IRegionManager regionManager)
{
this.eventAggregator = eventAggregator;
this.entityService = entityService;
this.regionManager = regionManager;
this.AsOf = SystemTime.UtcNow().Date;
}
开发者ID:RaoulHolzer,项目名称:EnergyTrading-MDM-Sample,代码行数:7,代码来源:PartyAccountabilitySelectorViewModel.cs
示例13: BillingModule
/// <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 );
}
开发者ID:divyang4481,项目名称:REM,代码行数:35,代码来源:BillingModule.cs
示例14: PageStartMenuViewModel
public PageStartMenuViewModel(IRegionManager regionManager, ITaskDialogService taskDialog)
{
_regionManager = regionManager;
_taskDialog = taskDialog;
NavigateCommand = new DelegateCommand<Uri>(Navigate);
ExitCommand = new DelegateCommand<Window>(ExitGame);
}
开发者ID:TheAirlineProject,项目名称:tap-desktop,代码行数:7,代码来源:PageStartMenuViewModel.cs
示例15: ResourceUseCase
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);
}
开发者ID:transformersprimeabcxyz,项目名称:cslacontrib-MarimerLLC,代码行数:34,代码来源:ResourceUseCase.cs
示例16: ApplicationMenuViewModel
/// <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);
}
开发者ID:George-Andras,项目名称:HomeInventories,代码行数:18,代码来源:ApplicationMenuViewModel.cs
示例17: WatchListViewModel
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;
}
开发者ID:eslahi,项目名称:prism,代码行数:29,代码来源:WatchListViewModel.cs
示例18: TestResultsController
public TestResultsController(IUnityContainer container, IRegionManager regionManager, IEventAggregator eventAggregator, ISettingsService settingsService)
{
_container = container;
_regionManager = regionManager;
_eventAggregator = eventAggregator;
_settingsService = settingsService;
}
开发者ID:MGetmanov,项目名称:Selenite,代码行数:7,代码来源:TestResultsController.cs
示例19: DockSystemModule
public DockSystemModule(DockSystemView dockSystemView, IDefaultContentsTemplate contentsTemplate,
IRegionManager regionViewRegistry)
{
this.dockSystemView = dockSystemView;
this.contentsTemplate = contentsTemplate;
this.regionViewRegistry = regionViewRegistry;
}
开发者ID:SimoneLocatelli,项目名称:AncientTimesEditor,代码行数:7,代码来源:DockSystemModule.cs
示例20: ChannelbarViewModel
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);
}
}
开发者ID:Khayde,项目名称:slimCat,代码行数:31,代码来源:ChannelBarViewModel.cs
注:本文中的IRegionManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论