コード例 #1
0
		public MonitorLayoutShellViewModel(RubezhAPI.Models.Layouts.Layout layout)
			: base()
		{
			Layout = layout;
			LayoutContainer = new LayoutContainer(this, layout);
			LayoutContainer.LayoutChanging += LayoutChanging;
			ChangeUserCommand = new RelayCommand(OnChangeUser);
			ChangeLayoutCommand = new RelayCommand<LayoutModel>(OnChangeLayout);
			Icon = @"..\Monitor.Layout.ico";
			ListenAutomationEvents();
		}
コード例 #2
0
		public LayoutDialogViewModel(Guid layoutUID)
		{
			var layout = ClientManager.LayoutsConfiguration.Layouts.FirstOrDefault(item => item.UID == layoutUID);
			LayoutContainer = new LayoutContainer(this, layout);
		}
コード例 #3
0
		public TemplateContainerPartViewModel(LayoutPartReferenceProperties properties)
		{
			var layout = ClientManager.LayoutsConfiguration.Layouts.FirstOrDefault(item => item.UID == properties.ReferenceUID);
			LayoutContainer = new LayoutContainer(this, layout);
		}