From 007690b000a2833519307b00438a63b256ab3fc4 Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 3 Jan 2021 19:49:57 +0800 Subject: [PATCH] style: rename Manager to NewPage; change layout of NewPage content --- src/UI/Launcher.xaml.cs | 2 +- src/UI/{Manager.xaml => NewPage.xaml} | 63 ++++++++++++--------- src/UI/{Manager.xaml.cs => NewPage.xaml.cs} | 6 +- 3 files changed, 39 insertions(+), 32 deletions(-) rename src/UI/{Manager.xaml => NewPage.xaml} (78%) rename src/UI/{Manager.xaml.cs => NewPage.xaml.cs} (99%) diff --git a/src/UI/Launcher.xaml.cs b/src/UI/Launcher.xaml.cs index 510ef579..b7219f0a 100644 --- a/src/UI/Launcher.xaml.cs +++ b/src/UI/Launcher.xaml.cs @@ -167,7 +167,7 @@ namespace SourceGit.UI { /// /// private void NewTab(object sender, RoutedEventArgs e) { - var tab = new Tab() { Page = new Manager() }; + var tab = new Tab() { Page = new NewPage() }; Tabs.Add(tab); openedTabs.SelectedItem = tab; } diff --git a/src/UI/Manager.xaml b/src/UI/NewPage.xaml similarity index 78% rename from src/UI/Manager.xaml rename to src/UI/NewPage.xaml index 1f1d01e4..6d1ca73c 100644 --- a/src/UI/Manager.xaml +++ b/src/UI/NewPage.xaml @@ -1,5 +1,5 @@ - + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + @@ -64,7 +71,7 @@ - /// Repository manager. + /// New page to open repository. /// - public partial class Manager : UserControl { + public partial class NewPage : UserControl { /// /// Used to build tree @@ -30,7 +30,7 @@ namespace SourceGit.UI { /// /// Constructor. /// - public Manager() { + public NewPage() { InitializeComponent(); UpdateTree(); }