Example #1
0
 public MainPage()
 {
     this.InitializeComponent();
     evaluator = new Evaluator();
     DataContext = (viewModel = new ViewModel());
     RefreshVariables();
 }
Example #2
0
 private void ClearData_Click(object sender, RoutedEventArgs e)
 {
     evaluator.Clear();
     DataContext = (viewModel = new ViewModel());
     RefreshVariables();
 }