public void OnUpload(object sender, FileUploadedEventArgs e) { while (e.Process > 0) { e.Process--; UploadEvent?.Invoke(sender, e); Thread.Sleep(100); } }
private void Upload_UploadEvent(object sender, FileUploadedEventArgs e) { Console.WriteLine(e.Process.ToString()); }