Наследование: System.EventArgs
        protected static void OnUpdateProgress(ProgressEventArgs e)
        {
            EventHandler<ProgressEventArgs> handler = UpdateProgress;

            if (handler != null)
            {
                handler(null, e);
            }
        }
Пример #2
0
 static void HandleUpdateProgress(object sender, ProgressEventArgs e)
 {
     if(e.Progress > 0)
     {
         Console.Write(e.Progress.ToString() + '%');
         if(e.Progress != 100)
         {
             Console.Write("...");
         }
         else
         {
             Console.WriteLine();
         }
     }
 }
Пример #3
0
 private void HandleUpdateProgress(object sender, ProgressEventArgs e)
 {
     SetToolStripProgressBarValue(tspbProgress, e.Progress);
 }
        protected virtual void OnUpdateProgress(ProgressEventArgs e)
        {
            EventHandler<ProgressEventArgs> handler = UpdateProgress;

            if(handler != null)
            {
                handler(this, e);
            }
        }
 private void HandleUpdateProgress(object sender, ProgressEventArgs e)
 {
     OnUpdateProgress(e);
 }
Пример #6
0
 protected virtual void OnUpdateProgress(ProgressEventArgs e)
 {
     UpdateProgress?.Invoke(this, e);
 }