private void BeginTransaction(object sender, EventArgs e) { // See if there is a transaction active for the geodatabase if (!_localGeodatabase.IsInTransaction) { // If not, begin a transaction _localGeodatabase.BeginTransaction(); MessageTextBlock.Text = "Transaction started"; } }
private void BeginTransaction(object sender, EventArgs e) { // See if there is a transaction active for the geodatabase if (_localGeodatabase != null && !_localGeodatabase.IsInTransaction) { // If not, begin a transaction _localGeodatabase.BeginTransaction(); _messageTextBlock.Text = "Transaction started"; } else { _messageTextBlock.Text = "Not yet ready for new transaction."; } }
private void BeginTransaction() { try { // See if there is a transaction active for the geodatabase. if (!_localGeodatabase.IsInTransaction) { // If not, begin a transaction. _localGeodatabase.BeginTransaction(); _statusLabel.Text = "Transaction started"; } } catch (Exception) { _statusLabel.Text = "The geodatabase isn't ready yet."; } }
private void BeginTransaction(object sender, EventArgs e) { try { // See if there is a transaction active for the geodatabase. if (!_localGeodatabase.IsInTransaction) { // If not, begin a transaction. _localGeodatabase.BeginTransaction(); _messageTextBlock.Text = "Transaction started"; } } catch (Exception) { _messageTextBlock.Text = "The geodatabase isn't ready yet."; } }