mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-29 19:09:20 +00:00
Organize Views
This commit is contained in:
@@ -89,7 +89,7 @@ namespace qController
|
|||||||
{
|
{
|
||||||
await NavigationPage.PopToRootAsync();
|
await NavigationPage.PopToRootAsync();
|
||||||
QWorkspace recentWorkspace = new QWorkspace(packagedInfo.workspaceInfo, new QServer(packagedInfo.serverInfo.host, packagedInfo.serverInfo.port));
|
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");
|
Log.Debug("Pushed WorkspacePage from App Action");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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)
|
if (resp.Ok)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"Passcode is null: {resp.Value == null}");
|
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
|
else
|
||||||
{
|
{
|
||||||
await Navigation.PushAsync(new WorkspacePage(selectedWorkspace));
|
await Navigation.PushAsync(new QWorkspacePage(selectedWorkspace));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
xmlns:qui="clr-namespace:qController.UI"
|
xmlns:qui="clr-namespace:qController.UI"
|
||||||
ios:Page.UseSafeArea="true"
|
ios:Page.UseSafeArea="true"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
x:Class="qController.WorkspacePage"
|
x:Class="qController.QWorkspacePage"
|
||||||
BackgroundColor="{DynamicResource PageBackgroundColor}">
|
BackgroundColor="{DynamicResource PageBackgroundColor}">
|
||||||
<Grid RowSpacing="0">
|
<Grid RowSpacing="0">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
+2
-2
@@ -15,12 +15,12 @@ using System;
|
|||||||
|
|
||||||
namespace qController
|
namespace qController
|
||||||
{
|
{
|
||||||
public partial class WorkspacePage : ContentPage
|
public partial class QWorkspacePage : ContentPage
|
||||||
{
|
{
|
||||||
private QWorkspace connectedWorkspace;
|
private QWorkspace connectedWorkspace;
|
||||||
private string passcode;
|
private string passcode;
|
||||||
private Dictionary<string, Grid> cueGridDict = new Dictionary<string, Grid>();
|
private Dictionary<string, Grid> cueGridDict = new Dictionary<string, Grid>();
|
||||||
public WorkspacePage(QWorkspace workspace, string passcode = null)
|
public QWorkspacePage(QWorkspace workspace, string passcode = null)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
@@ -94,6 +94,8 @@
|
|||||||
<Folder Include="Classes\UI\Buttons\" />
|
<Folder Include="Classes\UI\Buttons\" />
|
||||||
<Folder Include="Classes\UI\Cells\" />
|
<Folder Include="Classes\UI\Cells\" />
|
||||||
<Folder Include="Classes\Helpers\" />
|
<Folder Include="Classes\Helpers\" />
|
||||||
|
<Folder Include="Views\Old\" />
|
||||||
|
<Folder Include="Views\Root\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Remove="Pages\RootPageMaster.xaml" />
|
<EmbeddedResource Remove="Pages\RootPageMaster.xaml" />
|
||||||
|
|||||||
Reference in New Issue
Block a user