Beispiel #1
0
        private void GdbTransactionStatusChanged(object sender, TransactionStatusChangedEventArgs e)
        {
            // Update UI controls based on whether the geodatabase has a current transaction.
            InvokeOnMainThread(() =>
            {
                // These buttons should be enabled when there IS a transaction.
                _addButton.Enabled = e.IsInTransaction;

                // These buttons should be enabled when there is NOT a transaction.
                _syncButton.Enabled = !e.IsInTransaction;
            });
        }
Beispiel #2
0
        private void GdbTransactionStatusChanged(object sender, TransactionStatusChangedEventArgs e)
        {
            // Update UI controls based on whether the geodatabase has a current transaction
            RunOnUiThread(() =>
            {
                // These buttons should be enabled when there IS a transaction
                _addBirdButton.Enabled     = e.IsInTransaction;
                _addMarineButton.Enabled   = e.IsInTransaction;
                _stopEditingButton.Enabled = e.IsInTransaction;

                // These buttons should be enabled when there is NOT a transaction
                _startEditingButton.Enabled = !e.IsInTransaction;
                _syncEditsButton.Enabled    = !e.IsInTransaction;
            });
        }
        private void GdbTransactionStatusChanged(object sender, TransactionStatusChangedEventArgs e)
        {
            // Update UI controls based on whether the geodatabase has a current transaction
            Device.BeginInvokeOnMainThread(() =>
            {
                // These buttons should be enabled when there IS a transaction
                AddBirdButton.IsEnabled     = e.IsInTransaction;
                AddMarineButton.IsEnabled   = e.IsInTransaction;
                StopEditingButton.IsEnabled = e.IsInTransaction;

                // These buttons should be enabled when there is NOT a transaction
                StartEditingButton.IsEnabled = !e.IsInTransaction;
                SyncEditsButton.IsEnabled    = !e.IsInTransaction;
            });
        }
Beispiel #4
0
        private async void GdbTransactionStatusChanged(object sender, TransactionStatusChangedEventArgs e)
        {
            // Update UI controls based on whether the geodatabase has a current transaction
            await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                // These buttons should be enabled when there IS a transaction
                AddBirdButton.IsEnabled     = e.IsInTransaction;
                AddMarineButton.IsEnabled   = e.IsInTransaction;
                StopEditingButton.IsEnabled = e.IsInTransaction;

                // These buttons should be enabled when there is NOT a transaction
                StartEditingButton.IsEnabled = !e.IsInTransaction;
                SyncEditsButton.IsEnabled    = !e.IsInTransaction;
            });
        }