private void UpdateProgress(ExportStage stage) { CurrentStatus = stage.Name; IsIndeterminate = stage.AllCount == 0; if (!IsIndeterminate) { Progress = stage.Done * 100f / stage.AllCount; } }
private static void BankrotClient_ProgressChanged(ExportStage obj) { Console.WriteLine($"{obj.Name} [{obj.Done} / {obj.AllCount}]"); }