Adding biolerplate for other pages
This commit is contained in:
@@ -29,7 +29,7 @@ public partial class App : Application
|
|||||||
|
|
||||||
private void InitCogwheel()
|
private void InitCogwheel()
|
||||||
{
|
{
|
||||||
AppManager.CommandsManager.AddAssembly(Assembly.GetAssembly(typeof(DeafultCogwheelConsole)));
|
AppManager.CommandsManager.AddAssembly(Assembly.GetAssembly(typeof(CommandsManager)));
|
||||||
AppManager.CommandsManager.AddAssembly(Assembly.GetExecutingAssembly());
|
AppManager.CommandsManager.AddAssembly(Assembly.GetExecutingAssembly());
|
||||||
COGWHEEL.Initialize(AppManager.CommandsManager, AppManager.SzConsole);
|
COGWHEEL.Initialize(AppManager.CommandsManager, AppManager.SzConsole);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,10 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="1200" d:DesignHeight="700"
|
||||||
x:Class="SessionZero.MainWindow"
|
x:Class="SessionZero.MainWindow"
|
||||||
Title="SessionZero">
|
Title="SessionZero"
|
||||||
|
Width="1200" Height="700" WindowStartupLocation="CenterOwner">
|
||||||
<Grid Background="{DynamicResource PrimaryBackground}" ColumnDefinitions="Auto, *">
|
<Grid Background="{DynamicResource PrimaryBackground}" ColumnDefinitions="Auto, *">
|
||||||
<Border Padding="10" Background="{DynamicResource PrimaryBackground}" BoxShadow="5 5 20 0 Black">
|
<Border Padding="10" Background="{DynamicResource PrimaryBackground}" BoxShadow="5 5 20 0 Black">
|
||||||
<Grid RowDefinitions="*, Auto">
|
<Grid RowDefinitions="*, Auto">
|
||||||
|
|||||||
@@ -76,9 +76,13 @@ public partial class MainWindow : Window
|
|||||||
{
|
{
|
||||||
var homePage = new HomePage();
|
var homePage = new HomePage();
|
||||||
var sessionsPage = new SessionsPage();
|
var sessionsPage = new SessionsPage();
|
||||||
|
var libraryPage = new LibraryPage();
|
||||||
|
var settingsPage = new SettingsPage();
|
||||||
|
|
||||||
_pages.Add(homePage.PageName.ToLower(), homePage);
|
_pages.Add(homePage.PageName.ToLower(), homePage);
|
||||||
_pages.Add(sessionsPage.PageName.ToLower(), sessionsPage);
|
_pages.Add(sessionsPage.PageName.ToLower(), sessionsPage);
|
||||||
|
_pages.Add(libraryPage.PageName.ToLower(), libraryPage);
|
||||||
|
_pages.Add(settingsPage.PageName.ToLower(), settingsPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetupButtonEvents()
|
private void SetupButtonEvents()
|
||||||
|
|||||||
10
SessionZero/Pages/LibraryPage.axaml
Normal file
10
SessionZero/Pages/LibraryPage.axaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<UserControl xmlns="https://github.com/avaloniaui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
|
x:Class="SessionZero.Pages.LibraryPage">
|
||||||
|
<StackPanel>
|
||||||
|
<Label FontSize="20">Library</Label>
|
||||||
|
</StackPanel>
|
||||||
|
</UserControl>
|
||||||
16
SessionZero/Pages/LibraryPage.axaml.cs
Normal file
16
SessionZero/Pages/LibraryPage.axaml.cs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
using Avalonia;
|
||||||
|
using Avalonia.Controls;
|
||||||
|
using Avalonia.Markup.Xaml;
|
||||||
|
|
||||||
|
namespace SessionZero.Pages;
|
||||||
|
|
||||||
|
public partial class LibraryPage : UserControl, IPageBase
|
||||||
|
{
|
||||||
|
public string PageName { get; set; } = "Library";
|
||||||
|
|
||||||
|
public LibraryPage()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
10
SessionZero/Pages/SettingsPage.axaml
Normal file
10
SessionZero/Pages/SettingsPage.axaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<UserControl xmlns="https://github.com/avaloniaui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
|
x:Class="SessionZero.Pages.SettingsPage">
|
||||||
|
<StackPanel>
|
||||||
|
<Label FontSize="20">Settings</Label>
|
||||||
|
</StackPanel>
|
||||||
|
</UserControl>
|
||||||
15
SessionZero/Pages/SettingsPage.axaml.cs
Normal file
15
SessionZero/Pages/SettingsPage.axaml.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using Avalonia;
|
||||||
|
using Avalonia.Controls;
|
||||||
|
using Avalonia.Markup.Xaml;
|
||||||
|
|
||||||
|
namespace SessionZero.Pages;
|
||||||
|
|
||||||
|
public partial class SettingsPage : UserControl, IPageBase
|
||||||
|
{
|
||||||
|
public string PageName { get; set; } = "Settings";
|
||||||
|
|
||||||
|
public SettingsPage()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ACOGWHEEL_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003Fhome_003Fchris_003F_002Econfig_003FJetBrains_003FRider2025_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F2ee8efbdf4144b7e9741475fab7c883d5800_003Fa0_003F83e60bea_003FCOGWHEEL_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ACOGWHEEL_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003Fhome_003Fchris_003F_002Econfig_003FJetBrains_003FRider2025_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F2ee8efbdf4144b7e9741475fab7c883d5800_003Fa0_003F83e60bea_003FCOGWHEEL_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||||
|
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ACommandsManager_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003Fhome_003Fchris_003F_002Econfig_003FJetBrains_003FRider2025_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F2ee8efbdf4144b7e9741475fab7c883d5800_003F6f_003F28a7ba06_003FCommandsManager_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AICogwheelConsole_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003Fhome_003Fchris_003F_002Econfig_003FJetBrains_003FRider2025_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F2ee8efbdf4144b7e9741475fab7c883d5800_003F77_003Fe0eaad3c_003FICogwheelConsole_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AICogwheelConsole_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003Fhome_003Fchris_003F_002Econfig_003FJetBrains_003FRider2025_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F2ee8efbdf4144b7e9741475fab7c883d5800_003F77_003Fe0eaad3c_003FICogwheelConsole_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AMethodBaseInvoker_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003Fhome_003Fchris_003F_002Econfig_003FJetBrains_003FRider2025_002E3_003Fresharper_002Dhost_003FSourcesCache_003Fd6b757e154dd7f8c23e0e785431c97a76e4b9c6bdae38b978238421dbab55d_003FMethodBaseInvoker_002Ecs/@EntryIndexedValue">ForceIncluded</s:String></wpf:ResourceDictionary>
|
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AMethodBaseInvoker_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003Fhome_003Fchris_003F_002Econfig_003FJetBrains_003FRider2025_002E3_003Fresharper_002Dhost_003FSourcesCache_003Fd6b757e154dd7f8c23e0e785431c97a76e4b9c6bdae38b978238421dbab55d_003FMethodBaseInvoker_002Ecs/@EntryIndexedValue">ForceIncluded</s:String></wpf:ResourceDictionary>
|
||||||
Reference in New Issue
Block a user