提交 57b80b67 编写于 作者: R Ravi Chande

Incorporated style feedback

上级 e6cafeba
......@@ -54,26 +54,28 @@ private void SolutionOpeningContextChanged(object sender, UIContextChangedEventA
private void ContextChangedWorker(UIContextChangedEventArgs e, string operation)
{
if (_notificationService != null)
if (_notificationService == null)
{
return;
}
TryCancelPendingNotification(operation);
if (e.Activated)
{
TryCancelPendingNotification(operation);
if (e.Activated)
{
_operations[operation] = _notificationService.Start(operation);
}
_operations[operation] = _notificationService.Start(operation);
}
}
private void TryCancelPendingNotification(string operation)
{
if (_operations.ContainsKey(operation))
GlobalOperationRegistration globalOperation;
if (_operations.TryGetValue(operation, out globalOperation))
{
var globalOperation = _operations[operation];
globalOperation.Done();
globalOperation.Dispose();
}
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册