mirror of
https://github.com/unclshura/splitter.git
synced 2026-06-22 00:22:01 +00:00
21 lines
592 B
C#
21 lines
592 B
C#
namespace Splitter_UI.Services;
|
|
|
|
internal class GlobalLogger(ILogService _logService, StatusBarViewModel _statusBar) : ILogger
|
|
{
|
|
public void ClearProgress(string name, int progressLine)
|
|
{
|
|
if (progressLine == 0)
|
|
_statusBar.Percent = 0;
|
|
}
|
|
public void DrawProgress(string name, int progressLine, double progress, TimeSpan eta, double speed)
|
|
{
|
|
if (progressLine == 0)
|
|
_statusBar.Percent = progress;
|
|
}
|
|
|
|
public void Log(string prefix, ConsoleColor color, string msg)
|
|
{
|
|
_logService.Log(prefix, color, msg);
|
|
}
|
|
}
|