Implement the ability to re-unlock an already unlocked phone

+ Start to work on a better UI for reset
This commit is contained in:
Gustave Monce
2019-12-22 12:23:46 +01:00
parent 126429227e
commit 0e6f905809
10 changed files with 361 additions and 58 deletions
+23 -1
View File
@@ -29,7 +29,7 @@ namespace WPinternals
internal ProgressUpdater ProgressUpdater = null;
// UIContext can be passed to BusyViewModel, when it needs to update progress-controls and it is created on a worker-thread.
internal BusyViewModel(string Message, string SubMessage = null, ulong? MaxProgressValue = null, SynchronizationContext UIContext = null, bool ShowAnimation = true)
internal BusyViewModel(string Message, string SubMessage = null, ulong? MaxProgressValue = null, SynchronizationContext UIContext = null, bool ShowAnimation = true, bool ShowRebootHelp = false)
{
LogFile.Log(Message);
@@ -41,6 +41,7 @@ namespace WPinternals
this.Message = Message;
this.SubMessage = SubMessage;
this.ShowAnimation = ShowAnimation;
this.ShowRebootHelp = ShowRebootHelp;
if (MaxProgressValue != null)
{
ProgressPercentage = 0;
@@ -64,6 +65,11 @@ namespace WPinternals
}
}
internal void SetShowRebootHelp(bool Value)
{
ShowRebootHelp = Value;
}
internal void SetProgress(ulong Value)
{
if (ProgressUpdater != null)
@@ -188,5 +194,21 @@ namespace WPinternals
}
}
private bool _ShowRebootHelp = false;
public bool ShowRebootHelp
{
get
{
return _ShowRebootHelp;
}
set
{
if (_ShowRebootHelp != value)
{
_ShowRebootHelp = value;
OnPropertyChanged("ShowRebootHelp");
}
}
}
}
}