Esempio n. 1
0
        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();
            });
        }
Esempio n. 2
0
        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();
            });
        }