From 9b261dbf78edab33f29b8be78238b5ed57ba52b7 Mon Sep 17 00:00:00 2001 From: Frozd Date: Mon, 2 Mar 2026 16:26:17 +0100 Subject: [PATCH] chore: updated to .NET 8.0 --- CarManagerV3/CarManagerV3.csproj | 119 ++---------------- CarManagerV3/Forms/MainForm.cs | 13 +- CarManagerV3/Properties/AssemblyInfo.cs | 33 ----- CarManagerV3/Properties/Resources.Designer.cs | 2 +- 4 files changed, 16 insertions(+), 151 deletions(-) delete mode 100644 CarManagerV3/Properties/AssemblyInfo.cs diff --git a/CarManagerV3/CarManagerV3.csproj b/CarManagerV3/CarManagerV3.csproj index ac2735a..ca18198 100644 --- a/CarManagerV3/CarManagerV3.csproj +++ b/CarManagerV3/CarManagerV3.csproj @@ -1,17 +1,7 @@ - - - + - Debug - AnyCPU - {93CA258B-A645-41A8-A24F-59036ABC173F} + net8.0-windows WinExe - CarManagerV3 - CarManagerV3 - v4.7.2 - 512 - true - true publish\ true Disk @@ -27,106 +17,17 @@ false false true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 + false + true + true - - - - - - - - - - - - - - - + UserControl - - CarCard.cs - - - - Form - - - MainForm.cs - - - Form - - - CarDetailsForm.cs - - - - Form - - - PleaseWait.cs - - - - - - - - CarCard.cs - - - MainForm.cs - - - CarDetailsForm.cs - - - PleaseWait.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - True - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - + + + @@ -140,6 +41,4 @@ false - - \ No newline at end of file diff --git a/CarManagerV3/Forms/MainForm.cs b/CarManagerV3/Forms/MainForm.cs index e5dd190..257ff5b 100644 --- a/CarManagerV3/Forms/MainForm.cs +++ b/CarManagerV3/Forms/MainForm.cs @@ -127,8 +127,8 @@ namespace CarManagerV3 detailsForm.ShowDialog(); }; - ContextMenu cm = new ContextMenu(); - cm.MenuItems.Add(new MenuItem("Move Up", (s, e) => + ContextMenuStrip cms = new ContextMenuStrip(); + cms.Items.Add("Move up", null, (s, e) => { int order = car.Order; // find car with order just less than this one @@ -142,11 +142,10 @@ namespace CarManagerV3 SafeManager.SaveCars(filepath, cars); refreshCars(cars); } - })); + }); - cm.MenuItems.Add(new MenuItem("Move Down", (s, e) => + cms.Items.Add("Move down", null, (s, e) => { - int order = car.Order; // find car with order just greater than this one Car other = cars.Where(c => c.Order > order).OrderBy(c => c.Order).FirstOrDefault(); @@ -159,9 +158,9 @@ namespace CarManagerV3 SafeManager.SaveCars(filepath, cars); refreshCars(cars); } - })); + }); - card.ContextMenu = cm; + card.ContextMenuStrip = cms; if (isNew) { diff --git a/CarManagerV3/Properties/AssemblyInfo.cs b/CarManagerV3/Properties/AssemblyInfo.cs deleted file mode 100644 index f356216..0000000 --- a/CarManagerV3/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("CarManagerV3")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CarManagerV3")] -[assembly: AssemblyCopyright("Copyright © 2025")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("93ca258b-a645-41a8-a24f-59036abc173f")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CarManagerV3/Properties/Resources.Designer.cs b/CarManagerV3/Properties/Resources.Designer.cs index 54ae591..ad07e6f 100644 --- a/CarManagerV3/Properties/Resources.Designer.cs +++ b/CarManagerV3/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace CarManagerV3.Properties { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "18.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources {