Пример #1
0
        public void OnUpload(object sender, FileUploadedEventArgs e)
        {
            while (e.Process > 0)
            {
                e.Process--;
                UploadEvent?.Invoke(sender, e);

                Thread.Sleep(100);
            }
        }
Пример #2
0
 private void Upload_UploadEvent(object sender, FileUploadedEventArgs e)
 {
     Console.WriteLine(e.Process.ToString());
 }