示例#1
0
        /// <summary>
        /// 显示窗口
        /// </summary>
        private static void ShowForm()
        {
            if (loadingForm != null)
            {
                loadingForm.closeOrder();
                loadingForm = null;
            }
            loadingForm         = new LoaderForm();
            loadingForm.TopMost = true;
            int width  = loadingForm.Width;
            int height = loadingForm.Height;

            loadingForm.Location = new System.Drawing.Point((parentWidth - width) / 2, (parentHeight - height) / 2);
            loadingForm.ShowDialog();
        }
示例#2
0
 /// <summary>
 /// 关闭窗口,委托中使用
 /// </summary>
 private static void CloseFormInternal()
 {
     loadingForm.closeOrder();
     loadingForm = null;
 }