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(); }
public LayoutDialogViewModel(Guid layoutUID) { var layout = ClientManager.LayoutsConfiguration.Layouts.FirstOrDefault(item => item.UID == layoutUID); LayoutContainer = new LayoutContainer(this, layout); }
public TemplateContainerPartViewModel(LayoutPartReferenceProperties properties) { var layout = ClientManager.LayoutsConfiguration.Layouts.FirstOrDefault(item => item.UID == properties.ReferenceUID); LayoutContainer = new LayoutContainer(this, layout); }