Example #1
0
 private void connectionBackgroundWorker_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
 {
     if (cancelled == false)
     {
         ConnectToTFS TFSConnectionComplete = new ConnectToTFS(this);
         TFSConnectionComplete.connectToTFSComplete();
     }
 }
Example #2
0
        private int Connect()
        {
            ConnectToTFS TFSConnection = new ConnectToTFS(this);

            TFSConnection.doConnectToTFS();
            if (connectionBackgroundWorker.CancellationPending == true)
            {
                connectionBackgroundWorker.Dispose();
                DisplayText displayInitText = new DisplayText(this);
                displayInitText.initText();
                return(1);
            }
            return(0);
        }