5cover/Dialogs

View on GitHub
Dialogs/ButtonBase.cs

Summary

Maintainability
A
0 mins
Test Coverage

Incorrect end of line character(s) found.
Open

namespace Scover.Dialogs;
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open


Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

            RequestUpdate(UpdateIsEnabled);
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    }
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public bool RequiresElevation
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

            _requiresElevation = value;
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public void Click() => RequestUpdate(info => info.Dialog.SendMessage(TDM_CLICK_BUTTON, info.ControlId));
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

            CancelEventArgs e = new();
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

using Vanara.PInvoke;
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

{
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// Set the <see cref="CancelEventArgs.Cancel"/> property of the event arguments to <see
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        get => _isEnabled;
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

            }
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <inheritdoc/>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open


Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

public abstract class ButtonBase : DialogControl<IdControlUpdateInfo>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open


Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <remarks>Default value is <see langword="true"/>.</remarks>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        get => _requiresElevation;
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    });
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <remarks>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    }
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <term>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// </item>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open


Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open


Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// </summary>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <remarks>Default value is <see langword="false"/>.</remarks>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <term><see cref="TDN_BUTTON_CLICKED"/></term>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// </term>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        if (notif.Id is TDN_BUTTON_CLICKED)
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

            Clicked?.Invoke(this, e);
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        {
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    {
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open


Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    private void UpdateElevation(IdControlUpdateInfo info) => info.Dialog.SendMessage(TDM_SET_BUTTON_ELEVATION_REQUIRED_STATE, info.ControlId, _requiresElevation);
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// langword="true"/> to prevent the button from closing its containing page.
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public event TypeEventHandler<ButtonBase, CancelEventArgs>? Clicked;
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Gets or sets whether this button is enabled.</summary>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public bool IsEnabled
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        set
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        set
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <list type="table">
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Event raised when this button is clicked.</summary>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Simulates a click on this button.</summary>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <see cref="HRESULT.S_FALSE"/> if <see cref="CancelEventArgs.Cancel"/> was <see langword="true"/>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        {
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

            if (e.Cancel)
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    private bool _isEnabled = true;
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        }
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open


Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// Gets or sets whether an User Account Control (UAC) shield icon should be displayed near the button.
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <term>Raises <see cref="Clicked"/></term>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    {
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    private void UpdateIsEnabled(IdControlUpdateInfo info) => info.Dialog.SendMessage(TDM_ENABLE_BUTTON, info.ControlId, _isEnabled);
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    private bool _requiresElevation;
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    {
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <remarks>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <inheritdoc path="//remarks//listheader"/><inheritdoc path="//remarks//item"/>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <inheritdoc/>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    protected override void InitializeState() => RequestUpdate(info =>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        {
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

            RequestUpdate(UpdateElevation);
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    internal override HRESULT HandleNotification(Notification notif)
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        }
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open


Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// </list>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        _ = base.HandleNotification(notif);
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        UpdateElevation(info);
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open


Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <item>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    {
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        return default;
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    }
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        UpdateIsEnabled(info);
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

            {
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

        }
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

using System.ComponentModel;
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open


Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

/// <summary>A dialog button control.</summary>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// </remarks>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// </remarks>
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open


Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

            _isEnabled = value;
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open

                return HRESULT.S_FALSE;
Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

Incorrect end of line character(s) found.
Open


Severity: Minor
Found in Dialogs/ButtonBase.cs by editorconfig

There are no issues that match your filters.

Category
Status