private void Add_Click(object sender, RoutedEventArgs e) { InsertTest insertView = new InsertTest(); if (insertView.ShowDialog() == true) { ToeicTestManager.GetTestManager().ReLoad(); ((MainViewModel)this.DataContext).LoadTestList(); } }
public MainViewModel() { this.testCollection = new ObservableCollection <TestItem>(); this.testManager = ToeicTestManager.GetTestManager(); this.LoadTestList(); }