From 57c3cb0fdbec702f629543fcabb7ebbbe36b1bcf Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Wed, 29 Jun 2022 13:02:15 -0400 Subject: [PATCH] added XAML stuff --- DeskHubSharpRevised/AboutWindow.axaml | 21 ++- DeskHubSharpRevised/AboutWindow.axaml.cs | 46 +++--- DeskHubSharpRevised/App.axaml | 5 +- DeskHubSharpRevised/DetailWindow.axaml | 16 +- DeskHubSharpRevised/DetailWindow.axaml.cs | 87 +++++++++-- DeskHubSharpRevised/ErrorWindow.axaml | 10 +- DeskHubSharpRevised/ErrorWindow.axaml.cs | 39 ++--- DeskHubSharpRevised/FeedbackWindow.axaml | 18 ++- DeskHubSharpRevised/FeedbackWindow.axaml.cs | 40 +++-- DeskHubSharpRevised/HelpWindow.axaml | 14 +- DeskHubSharpRevised/HelpWindow.axaml.cs | 39 ++--- DeskHubSharpRevised/MainWindow.axaml | 32 +++- DeskHubSharpRevised/MainWindow.axaml.cs | 153 ++++++++++++++++++++ DeskHubSharpRevised/SearchWindow.axaml | 10 +- DeskHubSharpRevised/SearchWindow.axaml.cs | 58 ++++++-- 15 files changed, 481 insertions(+), 107 deletions(-) diff --git a/DeskHubSharpRevised/AboutWindow.axaml b/DeskHubSharpRevised/AboutWindow.axaml index 0b1d7fd..877a686 100644 --- a/DeskHubSharpRevised/AboutWindow.axaml +++ b/DeskHubSharpRevised/AboutWindow.axaml @@ -2,8 +2,23 @@ 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" + xmlns:unicode="clr-namespace:Avalonia.Media.TextFormatting.Unicode;assembly=Avalonia.Visuals" + mc:Ignorable="d" x:Class="DeskHubSharpRevised.AboutWindow" - Title="AboutWindow"> - Welcome to Avalonia! + Title="About - DeskHubSharp" Height="300" Width="450" CanResize="False"> + + diff --git a/DeskHubSharpRevised/FeedbackWindow.axaml.cs b/DeskHubSharpRevised/FeedbackWindow.axaml.cs index 50da178..57a7834 100644 --- a/DeskHubSharpRevised/FeedbackWindow.axaml.cs +++ b/DeskHubSharpRevised/FeedbackWindow.axaml.cs @@ -1,22 +1,34 @@ -$HEADER$using Avalonia; +using Avalonia; using Avalonia.Controls; +using Avalonia.Interactivity; using Avalonia.Markup.Xaml; +using DeskHubSharpRevised.BLL; -namespace $NAMESPACE$ +namespace DeskHubSharpRevised; + +public partial class FeedbackWindow : Window { - public partial class $CLASS$ : Window + public FeedbackWindow() { - public $CLASS$() - { - InitializeComponent(); + InitializeComponent(); #if DEBUG - this.AttachDevTools(); + this.AttachDevTools(); #endif - } - - private void InitializeComponent() - { - AvaloniaXamlLoader.Load(this); - } } -} + + private void InitializeComponent() + { + AvaloniaXamlLoader.Load(this); + } + + private void btn_discard_Click(object sender, RoutedEventArgs e) + { + this.Close(); + } + + private void btn_send_Click(object sender, RoutedEventArgs e) + { + EmailBLL email = new EmailBLL(txtbox_name.Text, txtbox_feedbackmessage.Text, txtbox_email.Text); + email.CreateMessage(); + } +} \ No newline at end of file diff --git a/DeskHubSharpRevised/HelpWindow.axaml b/DeskHubSharpRevised/HelpWindow.axaml index 8a2a726..8d63324 100644 --- a/DeskHubSharpRevised/HelpWindow.axaml +++ b/DeskHubSharpRevised/HelpWindow.axaml @@ -2,8 +2,20 @@ 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" + xmlns:unicode="clr-namespace:Avalonia.Media.TextFormatting.Unicode;assembly=Avalonia.Visuals" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="DeskHubSharpRevised.HelpWindow" Title="HelpWindow"> - Welcome to Avalonia! + +