From e20cc09a605c52fe3083599858bc4f067983d154 Mon Sep 17 00:00:00 2001 From: Tom Raterman Date: Mon, 24 Mar 2025 12:33:38 -0400 Subject: [PATCH] Windowing --- ServiceBus98/App.xaml | 78 ++++++++- ServiceBus98/App.xaml.cs | 15 ++ ServiceBus98/Controls/Titlebar9x.xaml | 20 --- ServiceBus98/Controls/Titlebar9x.xaml.cs | 31 ---- ServiceBus98/Controls/Window9x.xaml | 40 ----- ServiceBus98/Controls/Window9x.xaml.cs | 28 ---- ServiceBus98/MainWindow.xaml | 151 +++++++++--------- ServiceBus98/MainWindow.xaml.cs | 6 + ServiceBus98/Windows/About.xaml | 17 -- ServiceBus98/Windows/AboutWindow.xaml | 45 ++++++ .../{About.xaml.cs => AboutWindow.xaml.cs} | 14 +- 11 files changed, 228 insertions(+), 217 deletions(-) delete mode 100644 ServiceBus98/Controls/Titlebar9x.xaml delete mode 100644 ServiceBus98/Controls/Titlebar9x.xaml.cs delete mode 100644 ServiceBus98/Controls/Window9x.xaml delete mode 100644 ServiceBus98/Controls/Window9x.xaml.cs delete mode 100644 ServiceBus98/Windows/About.xaml create mode 100644 ServiceBus98/Windows/AboutWindow.xaml rename ServiceBus98/Windows/{About.xaml.cs => AboutWindow.xaml.cs} (61%) diff --git a/ServiceBus98/App.xaml b/ServiceBus98/App.xaml index 6bc7af6..f74d186 100644 --- a/ServiceBus98/App.xaml +++ b/ServiceBus98/App.xaml @@ -28,7 +28,83 @@ --> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Copyright (C) 1998-2025 Tommy + + + diff --git a/ServiceBus98/Windows/About.xaml.cs b/ServiceBus98/Windows/AboutWindow.xaml.cs similarity index 61% rename from ServiceBus98/Windows/About.xaml.cs rename to ServiceBus98/Windows/AboutWindow.xaml.cs index d9a189b..17bf227 100644 --- a/ServiceBus98/Windows/About.xaml.cs +++ b/ServiceBus98/Windows/AboutWindow.xaml.cs @@ -17,11 +17,21 @@ namespace ServiceBus98 /// /// Interaction logic for About.xaml /// - public partial class About : Window + public partial class AboutWindow : Window { - public About() + public AboutWindow() { InitializeComponent(); } + + private void CloseCanExecute(object sender, CanExecuteRoutedEventArgs e) + { + e.CanExecute = true; + } + + private void CloseExecuted(object sender, ExecutedRoutedEventArgs e) + { + this.Close(); + } } }