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";
     }
 }
Ejemplo n.º 2
0
 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.";
     }
 }
Ejemplo n.º 3
0
 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.";
     }
 }
Ejemplo n.º 4
0
 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.";
     }
 }