internal void EndFileDownload()
 {
     Application.Current.Dispatcher.Invoke(() =>
     {
         FileDownloadEnd?.Invoke(this, null);
     });
 }
 protected virtual void OnFileDownloadEnded(EventArgs e)
 {
     FileDownloadEnd?.Invoke(this, e);
 }