Organize Views

This commit is contained in:
2020-11-29 15:22:56 -06:00
parent 60e03f2203
commit 12ec5905f1
17 changed files with 8 additions and 26 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ namespace qController
{
await NavigationPage.PopToRootAsync();
QWorkspace recentWorkspace = new QWorkspace(packagedInfo.workspaceInfo, new QServer(packagedInfo.serverInfo.host, packagedInfo.serverInfo.port));
await NavigationPage.PushAsync(new WorkspacePage(recentWorkspace));
await NavigationPage.PushAsync(new QWorkspacePage(recentWorkspace));
Log.Debug("Pushed WorkspacePage from App Action");
}
});
-5
View File
@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="qController.HomePage">
<ContentPage.Content>
</ContentPage.Content>
</ContentPage>
@@ -1,15 +0,0 @@
using System;
using System.Collections.Generic;
using Xamarin.Forms;
namespace qController
{
public partial class HomePage : ContentPage
{
public HomePage()
{
InitializeComponent();
}
}
}
@@ -65,7 +65,7 @@ namespace qController.Pages
if (resp.Ok)
{
Console.WriteLine($"Passcode is null: {resp.Value == null}");
await Navigation.PushAsync(new WorkspacePage(selectedWorkspace, resp.Value));
await Navigation.PushAsync(new QWorkspacePage(selectedWorkspace, resp.Value));
}
}
@@ -73,7 +73,7 @@ namespace qController.Pages
}
else
{
await Navigation.PushAsync(new WorkspacePage(selectedWorkspace));
await Navigation.PushAsync(new QWorkspacePage(selectedWorkspace));
}
}
@@ -7,7 +7,7 @@
xmlns:qui="clr-namespace:qController.UI"
ios:Page.UseSafeArea="true"
mc:Ignorable="d"
x:Class="qController.WorkspacePage"
x:Class="qController.QWorkspacePage"
BackgroundColor="{DynamicResource PageBackgroundColor}">
<Grid RowSpacing="0">
<Grid.RowDefinitions>
@@ -15,12 +15,12 @@ using System;
namespace qController
{
public partial class WorkspacePage : ContentPage
public partial class QWorkspacePage : ContentPage
{
private QWorkspace connectedWorkspace;
private string passcode;
private Dictionary<string, Grid> cueGridDict = new Dictionary<string, Grid>();
public WorkspacePage(QWorkspace workspace, string passcode = null)
public QWorkspacePage(QWorkspace workspace, string passcode = null)
{
InitializeComponent();
+2
View File
@@ -94,6 +94,8 @@
<Folder Include="Classes\UI\Buttons\" />
<Folder Include="Classes\UI\Cells\" />
<Folder Include="Classes\Helpers\" />
<Folder Include="Views\Old\" />
<Folder Include="Views\Root\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Remove="Pages\RootPageMaster.xaml" />