From fbd5692df43b1af48405927d7fbce12f54c4a8c0 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Thu, 20 Jul 2023 00:34:02 +0100 Subject: [PATCH] Add window for showing server information --- .../Elements/ContextMenu/MenuContainer.xaml | 2 +- .../ContextMenu/MenuContainer.xaml.cs | 5 -- .../ContextMenu/ServerInformation.xaml | 46 +++++++++++++++++++ .../ContextMenu/ServerInformation.xaml.cs | 30 ++++++++++++ Bloxstrap/UI/Elements/FluentMessageBox.xaml | 2 +- Bloxstrap/UI/NotifyIconWrapper.cs | 32 +++++++++++-- .../ContextMenu/ServerInformationViewModel.cs | 34 ++++++++++++++ 7 files changed, 141 insertions(+), 10 deletions(-) create mode 100644 Bloxstrap/UI/Elements/ContextMenu/ServerInformation.xaml create mode 100644 Bloxstrap/UI/Elements/ContextMenu/ServerInformation.xaml.cs create mode 100644 Bloxstrap/UI/ViewModels/ContextMenu/ServerInformationViewModel.cs diff --git a/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml b/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml index a3c9bad..9454823 100644 --- a/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml +++ b/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml @@ -21,7 +21,7 @@ - + diff --git a/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs b/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs index 6154055..adad0a4 100644 --- a/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs +++ b/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs @@ -48,11 +48,6 @@ namespace Bloxstrap.UI.Elements.ContextMenu Controls.ShowMessageBox($"hi how u doing i am {RichPresenceMenuItem.IsChecked}", MessageBoxImage.Warning); } - private void ServerDetailsMenuItem_Click(object sender, RoutedEventArgs e) - { - Controls.ShowMessageBox($"hi how u doing i am {RichPresenceMenuItem.IsChecked}", MessageBoxImage.Warning); - } - private void TestMenuItem_Click(object sender, RoutedEventArgs e) { Controls.ShowMessageBox($"hi how u doing i am {TestMenuItem.IsChecked}", MessageBoxImage.Warning); diff --git a/Bloxstrap/UI/Elements/ContextMenu/ServerInformation.xaml b/Bloxstrap/UI/Elements/ContextMenu/ServerInformation.xaml new file mode 100644 index 0000000..4233e52 --- /dev/null +++ b/Bloxstrap/UI/Elements/ContextMenu/ServerInformation.xaml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + +