UI service frame
This commit is contained in:
1 parent
12a27f85c5
commit
e2d0974b3c
45 files changed
+1138
-927
No files matched your search
@@ -5,6 +5,7 @@ namespace Code.Infrastructure.Loadings
|
||||
public class Loading
|
||||
{
|
||||
private int _progress;
|
||||
public bool Completed { get; private set; }
|
||||
private Action _completed;
|
||||
private Action<Loading> _loadProgress;
|
||||
|
||||
@@ -23,7 +24,12 @@ namespace Code.Infrastructure.Loadings
|
||||
{
|
||||
_progress--;
|
||||
_loadProgress?.Invoke(this);
|
||||
if(_progress <= 0) _completed();
|
||||
|
||||
if(_progress <= 0) // Зачем инвертировать, если так читается лучше, райдер соси
|
||||
{
|
||||
Completed = true;
|
||||
_completed();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user