Ejemplo n.º 1
0
        /// <summary>
        /// Logs the user out and moves to selecting a new server screen.
        /// Forces a configuration change to the saved connection so it is null.
        /// This means we will not try to automatically connect when we next start up.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void disconnectButton_Click(object sender, RoutedEventArgs e)
        {
            // Don't allow disconnect until project teams have loaded
            if (InteractionAllowed)
            {
                AzureDevOps.Disconnect();

                ClearTreeviewSelection();
                ChangeStates(ControlState.NoServer);
                AzureDevOps.Configuration.SavedConnection = null;
            }

            canSave = false;
            Dispatcher.Invoke(UpdateSaveButton);
        }
Ejemplo n.º 2
0
 public void Disconnect()
 {
     AzureDevOps.Disconnect();
 }