private void btnSave_Click(object sender, RoutedEventArgs e) { TableCriteriaUtil tableCriteriaUtil = new TableCriteriaUtil(new DbConnection()); tableCriteriaUtil.Update(viewModel.AllIndexCriterias, projectName);//save the modefied criterias to the database this.Close(); }