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;
            }
        }