create a setup builder impl from MicaSetup

This commit is contained in:
ema
2023-12-04 01:36:02 +08:00
parent edc597a19a
commit a6891e29dc
465 changed files with 34946 additions and 75 deletions

View File

@@ -0,0 +1,40 @@
using System;
namespace MicaSetup.Shell.Dialogs;
public class ShellObjectNotificationEventArgs : EventArgs
{
public ShellObjectChangeTypes ChangeType { get; private set; }
public bool FromSystemInterrupt { get; private set; }
internal ShellObjectNotificationEventArgs(ChangeNotifyLock notifyLock)
{
ChangeType = notifyLock.ChangeType;
FromSystemInterrupt = notifyLock.FromSystemInterrupt;
}
}
public class ShellObjectChangedEventArgs : ShellObjectNotificationEventArgs
{
public string Path { get; private set; }
internal ShellObjectChangedEventArgs(ChangeNotifyLock notifyLock)
: base(notifyLock) => Path = notifyLock.ItemName;
}
public class ShellObjectRenamedEventArgs : ShellObjectChangedEventArgs
{
public string NewPath { get; private set; }
internal ShellObjectRenamedEventArgs(ChangeNotifyLock notifyLock)
: base(notifyLock) => NewPath = notifyLock.ItemName2;
}
public class SystemImageUpdatedEventArgs : ShellObjectNotificationEventArgs
{
public int ImageIndex { get; private set; }
internal SystemImageUpdatedEventArgs(ChangeNotifyLock notifyLock)
: base(notifyLock) => ImageIndex = notifyLock.ImageIndex;
}