in MoleDeploy.UWPClient/MainPage.xaml.cs [125:160]
private async void OnStateBegin(object sender, VstsBuildState state, string message = null)
{
await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, async () =>
{
if (message != null)
{
textBlock_SubStatus.Text = message;
}
if (_CurrentState == state)
{
return;
}
_CurrentState = state;
switch (state)
{
case VstsBuildState.DeployComplete:
SetAllColors(STATE_COMPLETE_COLOR);
button_Deploy.IsEnabled = true;
return;
case VstsBuildState.Failed:
SetAllColors(STATE_FAILED_COLOR);
button_Deploy.IsEnabled = true;
return;
case VstsBuildState.BuildingApplication:
button_Deploy.IsEnabled = false;
SetAllColors(STATE_INACTIVE_COLOR, new List<VstsBuildState> { VstsBuildState.BuildingApplication });
break;
}
SetColor(state, STATE_ACTIVE_COLOR);
await Rotate(state);
});
}