Example #1
0
        protected void OnWritingPerformed(
            object sender,
            double percentForNow)
        {
            var args = new WritingPerformedEventArgs
            {
                PercentForNow = percentForNow
            };

            WritingPerformed?.Invoke(sender, args);
        }
Example #2
0
 private static void OnWritingPerformed(object sender, WritingPerformedEventArgs e)
 {
     Console.WriteLine($"Запись выполнена на {e.PercentForNow.ToString("00.00")}%");
 }
Example #3
0
 public void WriteResultData(object sender, WritingPerformedEventArgs args)
 {
     Console.WriteLine($"{args.PercentageToFireEvent} % is done");
 }