private void LoadingProcessEx(object parent)
        {
            Form Cparent = parent as Form;

            loadingForm = new WaitForm(Cparent);
            loadingForm.ShowDialog();
        }
 private void LoadingProcessEx()
 {
     loadingForm = new WaitForm();
     loadingForm.ShowDialog();
 }