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! + +