定义的接口
public interface IAddEmployeeProcess
{
string employees
        {
            get;
            set;
        } bool ShowProgress(Infragistics.Win.UltraWinProgressBar.UltraProgressBar progressBar, Infragistics.Win.Misc.UltraLabel lblStatus, out bool isClose);
}
继承的类:
public partial class UCTrainClassEmployee : IAddEmployeeProcess
{  private string _checkShowForm;
 /// <summary>
/// 窗体加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void FormAddEmployeeProgress_Load(object sender, EventArgs e)
{
_checkShowForm= "正在准备添加学员";
}public bool ShowProgress(Infragistics.Win.UltraWinProgressBar.UltraProgressBar progressBar, Infragistics.Win.Misc.UltraLabel lblStatus, out bool isClose){
   此时  _checkShowForm=null;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
}另外的调用界面执行方法
IAddEmployeeProcess.ShowProgress(progressBar, lblStatus, out _isClose);
}