mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-03-21 17:48:28 -05:00
Misc tweaks
no functional change HaX popup now uses Task Dialog api for cleaner impl
This commit is contained in:
parent
3489555f74
commit
19655ec2ec
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#pragma warning disable CA1857
|
||||
|
||||
namespace PKHeX.Core;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using static System.Buffers.Binary.BinaryPrimitives;
|
||||
#pragma warning disable CA1857
|
||||
|
||||
namespace PKHeX.Core;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,14 +15,17 @@ public sealed class SlotChangeInfo<TCursor, TImageSource>
|
|||
/// Gets or sets a value indicating whether the left mouse button is down.
|
||||
/// </summary>
|
||||
public bool IsLeftMouseDown { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether a drag-and-drop operation is in progress.
|
||||
/// </summary>
|
||||
public bool IsDragDropInProgress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the current cursor.
|
||||
/// </summary>
|
||||
public TCursor? Cursor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the current file path involved in the drag-and-drop operation.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user