Browse Source

Now showing the file name of an installed AddIn on details panel.

pull/32/head
Andreas Weizel 13 years ago
parent
commit
f55f1c8b9e
  1. 3
      src/AddIns/Misc/AddInManager2/Project/Resources/StringResources.resx
  2. 14
      src/AddIns/Misc/AddInManager2/Project/Src/View/AddInsView.xaml
  3. 9
      src/AddIns/Misc/AddInManager2/Project/Src/ViewModel/AddInPackageViewModelBase.cs
  4. 15
      src/AddIns/Misc/AddInManager2/Project/Src/ViewModel/OfflineAddInViewModel.cs

3
src/AddIns/Misc/AddInManager2/Project/Resources/StringResources.resx

@ -251,4 +251,7 @@ The application will try to download and install them, as well. Do you want to c
<data name="AddInManager2.AddInsView.Repository" xml:space="preserve"> <data name="AddInManager2.AddInsView.Repository" xml:space="preserve">
<value>Repository:</value> <value>Repository:</value>
</data> </data>
<data name="AddInManager2.Details.FileName" xml:space="preserve">
<value>File name:</value>
</data>
</root> </root>

14
src/AddIns/Misc/AddInManager2/Project/Src/View/AddInsView.xaml

@ -372,6 +372,20 @@
Margin="4, 4" Margin="4, 4"
ItemsSource="{Binding Path=Dependencies}"/> ItemsSource="{Binding Path=Dependencies}"/>
</StackPanel> </StackPanel>
<Grid
Visibility="{Binding Path=IsOffline, Converter={StaticResource BoolToVisibility}}"
Margin="0, 4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock
Grid.Column="0"
Margin="0, 0, 4, 0"
Text="{core:Localize AddInManager2.Details.FileName}"
FontWeight="Bold"/>
<TextBlock Grid.Column="1" Text="{Binding Path=FileName}" TextWrapping="Wrap" />
</Grid>
<Grid Margin="0,20,0,0"> <Grid Margin="0,20,0,0">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />

9
src/AddIns/Misc/AddInManager2/Project/Src/ViewModel/AddInPackageViewModelBase.cs

@ -390,7 +390,6 @@ namespace ICSharpCode.AddInManager2.ViewModel
} }
} }
public virtual bool HasOptions public virtual bool HasOptions
{ {
get get
@ -414,6 +413,14 @@ namespace ICSharpCode.AddInManager2.ViewModel
get; get;
} }
public virtual string FileName
{
get
{
return null;
}
}
protected string SurroundWithParantheses(string content) protected string SurroundWithParantheses(string content)
{ {
return "(" + content + ")"; return "(" + content + ")";

15
src/AddIns/Misc/AddInManager2/Project/Src/ViewModel/OfflineAddInViewModel.cs

@ -392,6 +392,21 @@ namespace ICSharpCode.AddInManager2.ViewModel
} }
} }
public override string FileName
{
get
{
if (_addIn != null)
{
return FileUtility.NormalizePath(_addIn.FileName);
}
else
{
return null;
}
}
}
public override bool HasDependencyConflicts public override bool HasDependencyConflicts
{ {
get get

Loading…
Cancel
Save