/// <summary>
        ///
        /// </summary>
        public void FetchWorkitems()
        {
            // var factory = new AbstractDbFactory():
            var repository = new StudyOrderRepository();
            var workitems  = repository.FetchWorkitems(Since.Value, Until.Value, PatientId.Value);

            this.Workitems.AddRange(workitems);
        }
Ejemplo n.º 2
0
        public MainWindowViewModel()
        {
            this._repository = new StudyOrderRepository();
            this.StudiesView = CollectionViewSource.GetDefaultView(this.Workitems);

            this.ClearCommand = new DelegateCommand(
                // 実行内容
                () => { this.Workitems.Clear(); },
                // 実行可否
                () => true
                );

            this.ReloadCommand = new DelegateCommand(
                // 実行内容
                () => { this.ReloadWorkitems(); },
                // 実行可否
                () => true
                );
        }