Ejemplo n.º 1
0
        protected void OnWritingPerformed(
            object sender,
            double percentForNow)
        {
            var args = new WritingPerformedEventArgs
            {
                PercentForNow = percentForNow
            };

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