/// <summary> /// Does the start connection. /// </summary> /// <param name="status">The status.</param> private void doStartConnection(object status) { ProgressBarDialog progress = status as ProgressBarDialog; progress.Begin(); progress.SetText(BCApplication.getMessageString("START_CONNECTING")); bcApp.startProcess(); //Do something... progress.End(); }