Skip to content
Browse files

Merge remote-tracking branch 'mmozuras/repositorypath' into repositor…

…ypath
  • Loading branch information...
2 parents f4d02d1 + df9e17b commit ac4addd2250a4a795a6accb1cc5c1923fe6b4c29 @Haacked committed Jul 29, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 SeeGitApp/MainWindow.xaml
  2. +2 −1 SeeGitApp/ViewModels/MainWindowViewModel.cs
View
2 SeeGitApp/MainWindow.xaml
@@ -42,7 +42,7 @@
<Label VerticalAlignment="Center" VerticalContentAlignment="Center" Foreground="White" FontSize="10"
FontFamily="Verdana" FontWeight="Bold" Margin="0,0,0,0" Content="Repository Path:" />
<Label VerticalAlignment="Center" VerticalContentAlignment="Center" Foreground="White" FontSize="10"
- FontFamily="Verdana" FontWeight="Bold" Margin="0,0,0,0" Content="{Binding Path=RepositoryPath}" />
+ FontFamily="Verdana" FontWeight="Bold" Margin="0,0,0,0" Content="{Binding RepositoryPath}" />
<Button Background="Gray" Foreground="White" HorizontalAlignment="Right" Margin="10 2 0 2" Padding="3"
Click="OnChooseRepository">
Browse For a Repository...
View
3 SeeGitApp/ViewModels/MainWindowViewModel.cs
@@ -25,7 +25,7 @@ public MainWindowViewModel(Dispatcher uiDispatcher, Func<string, IRepositoryGrap
public string LayoutAlgorithmType
{
get { return _layoutAlgorithmType; }
- set
+ private set
{
_layoutAlgorithmType = value;
RaisePropertyChanged(() => LayoutAlgorithmType);
@@ -68,6 +68,7 @@ public void MonitorRepository(string repositoryWorkingPath)
_graphBuilder = _graphBuilderThunk(gitPath);
Graph = _graphBuilder.Graph();
+ RepositoryPath = Directory.GetParent(gitPath).FullName;
LayoutAlgorithmType = "Tree";
Refresh();

0 comments on commit ac4addd

Please sign in to comment.
Something went wrong with that request. Please try again.