/// <summary>Initializes a new instance of the <see cref="FileInUseHandler"/> class.</summary> /// <param name="filePath">The file path.</param> /// <param name="parent">The parent.</param> /// <param name="usageType">Type of the usage.</param> public FileInUseHandler(string filePath, HWND parent = default, FileUsageType usageType = FileUsageType.Generic) { ActivationWindow = parent; FileUsageType = usageType; FilePath = filePath; appName = DefAppName; }
/// <summary>Initializes a new instance of the <see cref="FileInUseHandler"/> class.</summary> /// <param name="filePath">The file path.</param> /// <param name="parent">The parent.</param> /// <param name="usageType">Type of the usage.</param> public FileInUseHandler(string filePath, IWin32Window parent = null, FileUsageType usageType = FileUsageType.Generic) { ActivationWindow = parent; FileUsageType = usageType; FilePath = filePath; }