diff --git a/PKHeX.Core/PKM/Shared/G4PKM.cs b/PKHeX.Core/PKM/Shared/G4PKM.cs index 4cc828e37..e35d33d24 100644 --- a/PKHeX.Core/PKM/Shared/G4PKM.cs +++ b/PKHeX.Core/PKM/Shared/G4PKM.cs @@ -2,6 +2,7 @@ using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; using static System.Buffers.Binary.BinaryPrimitives; +#pragma warning disable CA1857 namespace PKHeX.Core; diff --git a/PKHeX.Core/Saves/SAV6.cs b/PKHeX.Core/Saves/SAV6.cs index 496183888..95ec7dfde 100644 --- a/PKHeX.Core/Saves/SAV6.cs +++ b/PKHeX.Core/Saves/SAV6.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; +#pragma warning disable CA1857 namespace PKHeX.Core; diff --git a/PKHeX.Core/Saves/SAV_BEEF.cs b/PKHeX.Core/Saves/SAV_BEEF.cs index f5b1479c9..73c1f7869 100644 --- a/PKHeX.Core/Saves/SAV_BEEF.cs +++ b/PKHeX.Core/Saves/SAV_BEEF.cs @@ -3,6 +3,7 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using static System.Buffers.Binary.BinaryPrimitives; +#pragma warning disable CA1857 namespace PKHeX.Core; diff --git a/PKHeX.WinForms/Controls/Slots/SlotChangeInfo.cs b/PKHeX.WinForms/Controls/Slots/SlotChangeInfo.cs index 5abaf73dd..26f16a204 100644 --- a/PKHeX.WinForms/Controls/Slots/SlotChangeInfo.cs +++ b/PKHeX.WinForms/Controls/Slots/SlotChangeInfo.cs @@ -15,14 +15,17 @@ public sealed class SlotChangeInfo /// Gets or sets a value indicating whether the left mouse button is down. /// public bool IsLeftMouseDown { get; set; } + /// /// Gets or sets a value indicating whether a drag-and-drop operation is in progress. /// public bool IsDragDropInProgress { get; set; } + /// /// Gets or sets the current cursor. /// public TCursor? Cursor { get; set; } + /// /// Gets or sets the current file path involved in the drag-and-drop operation. /// diff --git a/PKHeX.WinForms/MainWindow/Main.cs b/PKHeX.WinForms/MainWindow/Main.cs index 9345b7671..d3d7ab421 100644 --- a/PKHeX.WinForms/MainWindow/Main.cs +++ b/PKHeX.WinForms/MainWindow/Main.cs @@ -1353,6 +1353,15 @@ public void PromptBackup(string folder) public void WarnBehavior() { - WinFormsUtil.Alert(MsgProgramIllegalModeActive, MsgProgramIllegalModeBehave); + var page = new TaskDialogPage + { + Caption = MsgProgramIllegalModeActive, + Text = MsgProgramIllegalModeBehave, + Icon = TaskDialogIcon.Shield, + DefaultButton = TaskDialogButton.OK, + Buttons = [TaskDialogButton.OK], + AllowCancel = true, + }; + TaskDialog.ShowDialog(this, page); } }