Пример #1
0
 private void OnPredicatorProcessingPrecentsChanged(object sender, ProcessingPrecentsChangedEventArgs e)
 {
     ProcessingPrecentsChanged.Invoke(this, new ProcessingPrecentsChangedEventArgs()
     {
         Precents = e.Precents
     });
 }
Пример #2
0
 private void OnProcessingPrecentsChanged(object sender, PcapProcessor.ProcessingPrecentsChangedEventArgs e)
 {
     if (e.Precents <= 90)
     {
         this.progressBar.Value = e.Precents;
     }
 }
Пример #3
0
        private void OnPredicatorProcessingPrecentsChanged(object sender, ProcessingPrecentsChangedEventArgs e)
        {
            // TODO: think of make this check in a dedicated extention method for events (e.g SafeInvoke())
            if (ProcessingPrecentsChanged is null)
            {
                return;
            }

            ProcessingPrecentsChanged.Invoke(this, new ProcessingPrecentsChangedEventArgs()
            {
                Precents = e.Precents
            });
        }