Browse Source

Merge branch 'master' of github.com:icsharpcode/ILSpy

pull/469/merge
Daniel Grunwald 11 years ago
parent
commit
c0e1603f57
  1. 3
      ILSpy/MainWindow.xaml
  2. 8
      ILSpy/TextView/DecompilerTextView.cs

3
ILSpy/MainWindow.xaml

@ -39,6 +39,9 @@ @@ -39,6 +39,9 @@
Command="Search"
Executed="SearchCommandExecuted" />
</Window.CommandBindings>
<Window.TaskbarItemInfo>
<TaskbarItemInfo />
</Window.TaskbarItemInfo>
<DockPanel>
<!-- Main menu -->
<Menu DockPanel.Dock="Top" Name="mainMenu" Height="23">

8
ILSpy/TextView/DecompilerTextView.cs

@ -226,6 +226,10 @@ namespace ICSharpCode.ILSpy.TextView @@ -226,6 +226,10 @@ namespace ICSharpCode.ILSpy.TextView
if (waitAdorner.Visibility != Visibility.Visible) {
waitAdorner.Visibility = Visibility.Visible;
waitAdorner.BeginAnimation(OpacityProperty, new DoubleAnimation(0, 1, new Duration(TimeSpan.FromSeconds(0.5)), FillBehavior.Stop));
var taskBar = MainWindow.Instance.TaskbarItemInfo;
if (taskBar != null) {
taskBar.ProgressState = System.Windows.Shell.TaskbarItemProgressState.Indeterminate;
}
}
CancellationTokenSource previousCancellationTokenSource = currentCancellationTokenSource;
var myCancellationTokenSource = new CancellationTokenSource();
@ -248,6 +252,10 @@ namespace ICSharpCode.ILSpy.TextView @@ -248,6 +252,10 @@ namespace ICSharpCode.ILSpy.TextView
if (currentCancellationTokenSource == myCancellationTokenSource) {
currentCancellationTokenSource = null;
waitAdorner.Visibility = Visibility.Collapsed;
var taskBar = MainWindow.Instance.TaskbarItemInfo;
if (taskBar != null) {
taskBar.ProgressState = System.Windows.Shell.TaskbarItemProgressState.None;
}
if (task.IsCanceled) {
AvalonEditTextOutput output = new AvalonEditTextOutput();
output.WriteLine("The operation was canceled.");

Loading…
Cancel
Save