2020-05-27 00:51:48 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.ComponentModel;
|
2021-08-26 14:22:54 +02:00
|
|
|
|
using System.Runtime.Versioning;
|
2017-10-21 04:37:01 +02:00
|
|
|
|
|
|
|
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
2020-05-27 00:51:48 +02:00
|
|
|
|
/// Controls the behavior of OpenExternal.
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// </summary>
|
2017-10-21 04:37:01 +02:00
|
|
|
|
public class OpenExternalOptions
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2020-05-27 00:51:48 +02:00
|
|
|
|
/// <see langword="true"/> to bring the opened application to the foreground. The default is <see langword="true"/>.
|
2017-10-21 04:37:01 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DefaultValue(true)]
|
2021-08-26 14:22:54 +02:00
|
|
|
|
[SupportedOSPlatform("macos")]
|
2017-10-21 04:37:01 +02:00
|
|
|
|
public bool Activate { get; set; } = true;
|
2020-05-27 00:51:48 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The working directory.
|
|
|
|
|
|
/// </summary>
|
2021-08-26 14:22:54 +02:00
|
|
|
|
[SupportedOSPlatform("windows")]
|
2020-05-27 00:51:48 +02:00
|
|
|
|
public string WorkingDirectory { get; set; }
|
2017-10-21 04:37:01 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|