public void EditTestOn() { EditTestPopUpViewModel window = new EditTestPopUpViewModel(this.Db, this._eventAggregator, this.SelectedTest); this._windowManager.ShowDialog(window); Task task = Task.Run(() => { window.ReadyToUpdateTests(); this.Tests = this.Db.GetTests(); this.Refresh(); }); }
public void CreateTest() { TestModel newTest = new TestModel(-1, "", ""); EditTestPopUpViewModel window = new EditTestPopUpViewModel(this.Db, this._eventAggregator, newTest); this._windowManager.ShowDialog(window); Task task = Task.Run(() => { window.ReadyToUpdateTests(); this.Tests = this.Db.GetTests(); this.Refresh(); }); }