mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
style<Dashboard>: code style - nest class when it's only used by outer class
This commit is contained in:
parent
4ee9234289
commit
8a4dee918d
2 changed files with 26 additions and 26 deletions
|
@ -302,7 +302,7 @@
|
|||
</TreeView.ItemContainerStyle>
|
||||
|
||||
<TreeView.Resources>
|
||||
<HierarchicalDataTemplate DataType="{x:Type local:RemoteNode}" ItemsSource="{Binding Children}">
|
||||
<HierarchicalDataTemplate DataType="{x:Type local:Dashboard+RemoteNode}" ItemsSource="{Binding Children}">
|
||||
<Grid Height="24">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="16"/>
|
||||
|
@ -314,7 +314,7 @@
|
|||
</Grid>
|
||||
</HierarchicalDataTemplate>
|
||||
|
||||
<HierarchicalDataTemplate DataType="{x:Type local:BranchNode}" ItemsSource="{Binding Children}">
|
||||
<HierarchicalDataTemplate DataType="{x:Type local:Dashboard+BranchNode}" ItemsSource="{Binding Children}">
|
||||
<Grid Height="24">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="16"/>
|
||||
|
|
|
@ -13,6 +13,15 @@ using System.Windows.Threading;
|
|||
|
||||
namespace SourceGit.UI {
|
||||
|
||||
/// <summary>
|
||||
/// Dashboard for opened repository.
|
||||
/// </summary>
|
||||
public partial class Dashboard : UserControl {
|
||||
private Git.Repository repo = null;
|
||||
private List<BranchNode> cachedLocalBranches = new List<BranchNode>();
|
||||
private List<RemoteNode> cachedRemotes = new List<RemoteNode>();
|
||||
private string abortCommand = null;
|
||||
|
||||
/// <summary>
|
||||
/// Branch node in tree.
|
||||
/// </summary>
|
||||
|
@ -37,15 +46,6 @@ namespace SourceGit.UI {
|
|||
public List<BranchNode> Children { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Dashboard for opened repository.
|
||||
/// </summary>
|
||||
public partial class Dashboard : UserControl {
|
||||
private Git.Repository repo = null;
|
||||
private List<BranchNode> cachedLocalBranches = new List<BranchNode>();
|
||||
private List<RemoteNode> cachedRemotes = new List<RemoteNode>();
|
||||
private string abortCommand = null;
|
||||
|
||||
/// <summary>
|
||||
/// Expand/Collapsed tags
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in a new issue