示例#1
0
        /// <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();
        }
示例#2
0
 /// <summary>
 /// 关闭窗口,委托中使用
 /// </summary>
 private static void CloseFormInternal()
 {
     loadingForm.closeOrder();
     loadingForm = null;
 }