Browse Source

Bring selected pad to front, if there are multiple pads in one area.

pull/1857/head
Siegfried Pammer 6 years ago
parent
commit
3f9e7488f1
  1. 2
      ILSpy/Analyzers/AnalyzerTreeView.cs
  2. 2
      ILSpy/Commands/ShowDebugSteps.cs
  3. 5
      ILSpy/DebugSteps.xaml.cs
  4. 3
      ILSpy/Languages/ILAstLanguage.cs
  5. 2
      ILSpy/MainWindow.xaml.cs
  6. 6
      ILSpy/ViewModels/ToolPaneModel.cs

2
ILSpy/Analyzers/AnalyzerTreeView.cs

@ -60,7 +60,7 @@ namespace ICSharpCode.ILSpy.Analyzers @@ -60,7 +60,7 @@ namespace ICSharpCode.ILSpy.Analyzers
public void Show()
{
AnalyzerPaneModel.Instance.IsVisible = true;
AnalyzerPaneModel.Instance.Show();
}
public void Show(AnalyzerTreeNode node)

2
ILSpy/Commands/ShowDebugSteps.cs

@ -11,7 +11,7 @@ namespace ICSharpCode.ILSpy.Commands @@ -11,7 +11,7 @@ namespace ICSharpCode.ILSpy.Commands
{
public override void Execute(object parameter)
{
DebugStepsPaneModel.Instance.IsVisible = true;
DebugStepsPaneModel.Instance.Show();
}
}
}

5
ILSpy/DebugSteps.xaml.cs

@ -79,11 +79,6 @@ namespace ICSharpCode.ILSpy @@ -79,11 +79,6 @@ namespace ICSharpCode.ILSpy
#endif
}
public static void Show()
{
DebugStepsPaneModel.Instance.IsVisible = true;
}
void IPane.Closed()
{
#if DEBUG

3
ILSpy/Languages/ILAstLanguage.cs

@ -31,6 +31,7 @@ using ICSharpCode.Decompiler.TypeSystem; @@ -31,6 +31,7 @@ using ICSharpCode.Decompiler.TypeSystem;
using SRM = System.Reflection.Metadata;
using static System.Reflection.Metadata.PEReaderExtensions;
using ICSharpCode.ILSpy.ViewModels;
namespace ICSharpCode.ILSpy
{
@ -140,7 +141,7 @@ namespace ICSharpCode.ILSpy @@ -140,7 +141,7 @@ namespace ICSharpCode.ILSpy
}
}
(output as ISmartTextOutput)?.AddButton(Images.ViewCode, "Show Steps", delegate {
DebugSteps.Show();
DebugStepsPaneModel.Instance.Show();
});
output.WriteLine();
il.WriteTo(output, DebugSteps.Options);

2
ILSpy/MainWindow.xaml.cs

@ -915,7 +915,7 @@ namespace ICSharpCode.ILSpy @@ -915,7 +915,7 @@ namespace ICSharpCode.ILSpy
void SearchCommandExecuted(object sender, ExecutedRoutedEventArgs e)
{
SearchPaneModel.Instance.IsVisible = true;
SearchPaneModel.Instance.Show();
}
#endregion

6
ILSpy/ViewModels/ToolPaneModel.cs

@ -20,6 +20,10 @@ namespace ICSharpCode.ILSpy.ViewModels @@ -20,6 +20,10 @@ namespace ICSharpCode.ILSpy.ViewModels
{
public abstract class ToolPaneModel : PaneModel
{
public void Show()
{
this.IsActive = true;
this.IsVisible = true;
}
}
}

Loading…
Cancel
Save