public AddFolderViewModel()
            : base()
        {
            PluginContext.Host.UserConnected += (sender, e) => this.component = PluginContext.ComponentFactory.GetInstance<IMedicalRecordComponent>();

            this.tagToAdd = new TagDto(TagCategory.MedicalRecord);
            this.AddFolderCommand = new RelayCommand(() => this.AddFolder(), () => this.CanAddFolder());
        }
Beispiel #2
0
        public AddFolderViewModel()
            : base()
        {
            PluginContext.Host.UserConnected += (sender, e) => this.component = PluginContext.ComponentFactory.GetInstance <IMedicalRecordComponent>();

            this.tagToAdd         = new TagDto(TagCategory.MedicalRecord);
            this.AddFolderCommand = new RelayCommand(() => this.AddFolder(), () => this.CanAddFolder());
        }
 public AddRecordViewModel()
 {
     PluginContext.Host.UserConnected += (sender, e) => this.component = PluginContext.ComponentFactory.GetInstance <IMedicalRecordComponent>();
     this.recordToAdd      = new MedicalRecordDto();
     this.addRecordCommand = new RelayCommand(() => this.AddRecord(), () => this.CanAddRecord());
 }
 public AddRecordViewModel()
 {
     PluginContext.Host.UserConnected += (sender, e) => this.component = PluginContext.ComponentFactory.GetInstance<IMedicalRecordComponent>();
     this.recordToAdd = new MedicalRecordDto();
     this.addRecordCommand = new RelayCommand(() => this.AddRecord(), () => this.CanAddRecord());
 }