/// <summary> /// 显示窗口 /// </summary> private static void ShowForm(object obj) { if (loadingForm != null) { loadingForm.closeOrder(); loadingForm = null; } string message = Convert.ToString(obj); loadingForm = new MarqueeProgressBar(message); loadingForm.TopLevel = true; //loadingForm.TopMost = true; loadingForm.ShowDialog(); }
/// <summary> /// 关闭窗口,委托中使用 /// </summary> private static void CloseFormInternal() { loadingForm.closeOrder(); loadingForm = null; }