private void connectionBackgroundWorker_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e) { if (cancelled == false) { ConnectToTFS TFSConnectionComplete = new ConnectToTFS(this); TFSConnectionComplete.connectToTFSComplete(); } }
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); }