Skip to content

Commit

Permalink
Fixed issue with the logic that allows a user to select the path to G…
Browse files Browse the repository at this point in the history
…raphviz
  • Loading branch information
Roberto committed Jul 11, 2018
1 parent 73a474e commit 522704d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions DependenciesVisualizer/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial class MainWindow : Window
{
public ILog Logger { get; private set; }

private GraphVizPathSelector graphVizPathSelectorUserControl = null;
private GraphVizPathSelector GraphVizPathSelectorUserControl { get; set; }

public MainWindow(IKernel ioc)
{
Expand All @@ -36,7 +36,7 @@ public MainWindow(IKernel ioc)
// Application.Current.Shutdown();
//}

GraphVizPathSelector graphVizPathSelectorUserControl = null;
//GraphVizPathSelector graphVizPathSelectorUserControl = null;

if (string.IsNullOrWhiteSpace(Properties.Settings.Default.graphvizPath) || !Directory.Exists(Properties.Settings.Default.graphvizPath))
{
Expand All @@ -52,7 +52,7 @@ public MainWindow(IKernel ioc)
}
}

if (graphVizPathSelectorUserControl != null && ((GraphVizPathSelectorViewModel)graphVizPathSelectorUserControl.DataContext).CloseApplication)
if (this.GraphVizPathSelectorUserControl != null && ((GraphVizPathSelectorViewModel)this.GraphVizPathSelectorUserControl.DataContext).CloseApplication)
{
Application.Current.Shutdown();
}
Expand All @@ -63,11 +63,11 @@ public MainWindow(IKernel ioc)

private void ShowGraphVizPathSelector()
{
graphVizPathSelectorUserControl = new GraphVizPathSelector();
this.GraphVizPathSelectorUserControl = new GraphVizPathSelector();
Window window = new Window
{
Title = "Select the Graphviz path",
Content = graphVizPathSelectorUserControl,
Content = this.GraphVizPathSelectorUserControl,
SizeToContent = SizeToContent.WidthAndHeight,
ResizeMode = ResizeMode.NoResize
};
Expand Down

0 comments on commit 522704d

Please sign in to comment.