/// <summary> /// Initializes a new instance of the <see cref="WorkbenchViewModel"/> class. /// </summary> /// <param name="host">The host.</param> public WorkbenchViewModel() { PluginContext.Host.PatientConnected += (sender, e) => this.component = PluginContext.ComponentFactory.GetInstance <IFamilyComponent>(); this.FamilyMembers = new ObservableCollection <LightPatientDto>(); this.loadRecordsCommand = new RelayArgCommand(e => this.LoadRecords(e as object[]), e => this.CanLoadRecords()); this.removeRelationCommand = new RelayCommand(() => this.RemoveRelation(), () => this.CanRemoveRelation()); }
/// <summary> /// Initializes a new instance of the <see cref="WorkbenchViewModel"/> class. /// </summary> /// <param name="host">The host.</param> public WorkbenchViewModel() { PluginContext.Host.PatientConnected += (sender, e) => this.component = PluginContext.ComponentFactory.GetInstance<IFamilyComponent>(); this.FamilyMembers = new ObservableCollection<LightPatientDto>(); this.loadRecordsCommand = new RelayArgCommand(e => this.LoadRecords(e as object[]), e => this.CanLoadRecords()); this.removeRelationCommand = new RelayCommand(() => this.RemoveRelation(), () => this.CanRemoveRelation()); }