private void actionButton_Click(object sender, RoutedEventArgs e) { UserControl userControl = SimulationEditorControl.getInstance(this); MainWindow.Instance.loadBottomGrid(userControl); UserAccount.refreshUserAccountPool(SelectedSimulation.Id); Patient.refreshPatientPool(SimulationPoolControl.SelectedSimulation.Id); }
private void newButton_Click(object sender, RoutedEventArgs e) { //indicates that new button was clicked from other processes SelectedSimulation = null; UserAccount.UserAccounts.Clear(); Patient.PatientPool.Clear(); MainWindow.Instance.loadBottomGrid(SimulationEditorControl.getEmptyInstance(this)); }