public void Close()
 {
     if (loadingForm != null)
     {
         loadingForm.BeginInvoke(new System.Threading.ThreadStart(loadingForm.CloseLoadingForm));
         loadingForm = null;
         loadthread  = null;
     }
 }
 private void LoadingProcessEx(object parent)
 {
     MetroFramework.Forms.MetroForm Cparent = parent as MetroFramework.Forms.MetroForm;
     loadingForm = new frmRunning(Cparent);
     loadingForm.ShowDialog();
 }
 private void LoadingProcessEx()
 {
     loadingForm = new frmRunning();
     loadingForm.ShowDialog();
 }