/// <summary> /// 获得窗体实例,保证唯一 /// </summary> /// <param name="act">泛型委托,用于回调主窗体加载邮箱方法</param> /// <returns></returns> public static FrmPickEmail GetInstanceArgs(Action <string> act) { if (instance == null || instance.IsDisposed) { instance = new FrmPickEmail(act); } return(instance); }
/// <summary> /// 获得窗体实例,保证唯一 /// </summary> /// <returns></returns> public static FrmPickEmail GetInstance() { if (instance == null || instance.IsDisposed) { instance = new FrmPickEmail(); } return(instance); }
//采集qq邮箱 private void btnPick_Click(object sender, EventArgs e) { FrmPickEmail fpe = FrmPickEmail.GetInstanceArgs(ImpEmail); fpe.Show(); }
/// <summary> /// 获得窗体实例,保证唯一 /// </summary> /// <returns></returns> public static FrmPickEmail GetInstance() { if (instance == null || instance.IsDisposed) { instance = new FrmPickEmail(); } return instance; }
/// <summary> /// 获得窗体实例,保证唯一 /// </summary> /// <param name="act">泛型委托,用于回调主窗体加载邮箱方法</param> /// <returns></returns> public static FrmPickEmail GetInstanceArgs(Action<string> act) { if (instance == null || instance.IsDisposed) { instance = new FrmPickEmail(act); } return instance; }