private void StartProgress()
        {
            var tstart = new ThreadStart(() => {
                loaddlg             = new LoadingDialog();
                loaddlg.LoadPercent = 0;
                loaddlg.ShowDialog();
            });
            var thread = new Thread(tstart);

            thread.Start();
        }
        private static void ChangeProgress(LoadingDialog ld, int progress)
        {
            if (ld == null)
            {
                return;
            }

            if (ld.InvokeRequired)
            {
                ld.Invoke(new Action(() =>
                {
                    ld.LoadPercent = progress;
                }));
            }
            else
            {
                ld.LoadPercent = progress;
            }
        }