Dialogs/ButtonBase.cs
Incorrect end of line character(s) found. Open
Open
namespace Scover.Dialogs;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks
Incorrect end of line character(s) found. Open
Open
RequestUpdate(UpdateIsEnabled);
- Exclude checks
Incorrect end of line character(s) found. Open
Open
}
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public bool RequiresElevation
- Exclude checks
Incorrect end of line character(s) found. Open
Open
_requiresElevation = value;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public void Click() => RequestUpdate(info => info.Dialog.SendMessage(TDM_CLICK_BUTTON, info.ControlId));
- Exclude checks
Incorrect end of line character(s) found. Open
Open
CancelEventArgs e = new();
- Exclude checks
Incorrect end of line character(s) found. Open
Open
using Vanara.PInvoke;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
{
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// Set the <see cref="CancelEventArgs.Cancel"/> property of the event arguments to <see
- Exclude checks
Incorrect end of line character(s) found. Open
Open
get => _isEnabled;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
}
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <inheritdoc/>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public abstract class ButtonBase : DialogControl<IdControlUpdateInfo>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <remarks>Default value is <see langword="true"/>.</remarks>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
get => _requiresElevation;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
});
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <remarks>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
}
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <term>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// </item>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// </summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <remarks>Default value is <see langword="false"/>.</remarks>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <term><see cref="TDN_BUTTON_CLICKED"/></term>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// </term>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
if (notif.Id is TDN_BUTTON_CLICKED)
- Exclude checks
Incorrect end of line character(s) found. Open
Open
Clicked?.Invoke(this, e);
- Exclude checks
Incorrect end of line character(s) found. Open
Open
{
- Exclude checks
Incorrect end of line character(s) found. Open
Open
{
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks
Incorrect end of line character(s) found. Open
Open
private void UpdateElevation(IdControlUpdateInfo info) => info.Dialog.SendMessage(TDM_SET_BUTTON_ELEVATION_REQUIRED_STATE, info.ControlId, _requiresElevation);
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// langword="true"/> to prevent the button from closing its containing page.
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public event TypeEventHandler<ButtonBase, CancelEventArgs>? Clicked;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets or sets whether this button is enabled.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public bool IsEnabled
- Exclude checks
Incorrect end of line character(s) found. Open
Open
set
- Exclude checks
Incorrect end of line character(s) found. Open
Open
set
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <list type="table">
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Event raised when this button is clicked.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Simulates a click on this button.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <see cref="HRESULT.S_FALSE"/> if <see cref="CancelEventArgs.Cancel"/> was <see langword="true"/>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
{
- Exclude checks
Incorrect end of line character(s) found. Open
Open
if (e.Cancel)
- Exclude checks
Incorrect end of line character(s) found. Open
Open
private bool _isEnabled = true;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
}
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// Gets or sets whether an User Account Control (UAC) shield icon should be displayed near the button.
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <term>Raises <see cref="Clicked"/></term>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
{
- Exclude checks
Incorrect end of line character(s) found. Open
Open
private void UpdateIsEnabled(IdControlUpdateInfo info) => info.Dialog.SendMessage(TDM_ENABLE_BUTTON, info.ControlId, _isEnabled);
- Exclude checks
Incorrect end of line character(s) found. Open
Open
private bool _requiresElevation;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
{
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <remarks>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <inheritdoc path="//remarks//listheader"/><inheritdoc path="//remarks//item"/>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <inheritdoc/>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
protected override void InitializeState() => RequestUpdate(info =>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
{
- Exclude checks
Incorrect end of line character(s) found. Open
Open
RequestUpdate(UpdateElevation);
- Exclude checks
Incorrect end of line character(s) found. Open
Open
internal override HRESULT HandleNotification(Notification notif)
- Exclude checks
Incorrect end of line character(s) found. Open
Open
}
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// </list>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
_ = base.HandleNotification(notif);
- Exclude checks
Incorrect end of line character(s) found. Open
Open
UpdateElevation(info);
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <item>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
{
- Exclude checks
Incorrect end of line character(s) found. Open
Open
return default;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
}
- Exclude checks
Incorrect end of line character(s) found. Open
Open
UpdateIsEnabled(info);
- Exclude checks
Incorrect end of line character(s) found. Open
Open
{
- Exclude checks
Incorrect end of line character(s) found. Open
Open
}
- Exclude checks
Incorrect end of line character(s) found. Open
Open
using System.ComponentModel;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>A dialog button control.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// </remarks>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// </remarks>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks
Incorrect end of line character(s) found. Open
Open
_isEnabled = value;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
return HRESULT.S_FALSE;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks