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