5cover/Dialogs

View on GitHub
Dialogs/Button.cs

Summary

Maintainability
A
0 mins
Test Coverage

Incorrect end of line character(s) found.
Open

/// <summary>A dialog button with text. Can represent a push button or a command link.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <param name="note">The command link supplemental instruction.</param>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

        => (Text, Note, _nativeText) = (text, note, new(note is null ? text : $"{text}\n{note}"));
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public static CommonButton No => CloneButtonPrototype(nameof(No));
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Gets a new <i>OK</i> button.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <value>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open

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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open

    public static CommonButton Close => CloneButtonPrototype(nameof(Close));
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Gets a new <i>Continue</i> button.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open

    private static CommonButton CloneButtonPrototype(string prototypeName) => CommonButton.Values[prototypeName].CloneDeep();
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

public sealed class Button : ButtonBase, IEquatable<Button?>, ITextControl, IDisposable
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

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

Incorrect end of line character(s) found.
Open

    public static CommonButton Abort => CloneButtonPrototype(nameof(Abort));
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// causes the dialog window to respond to typical cancel actions (Alt-F4 and Escape) and have a close
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open

    /// doesn't have a supplemental insruction, <see langword="null"/>.
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public string? Note { get; }
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    StrPtrUni ITextControl.NativeText => _nativeText;
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

using System.Diagnostics;
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    private readonly SafeLPWSTR _nativeText = SafeLPWSTR.Null;
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

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

Incorrect end of line character(s) found.
Open

    public static CommonButton Continue => CloneButtonPrototype(nameof(Continue));
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Gets a new <i>Yes</i> button.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// </value>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public override bool Equals(object? obj) => Equals(obj as Button);
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public bool Equals(Button? other) => other is not null && _nativeText.Equals(other._nativeText);
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open

    /// <summary>Gets a new <i>Abort</i> button.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Gets a new <i>No</i> button.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open

    /// <summary>Gets the command link supplemental instruction.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

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

Incorrect end of line character(s) found.
Open

        _nativeText.Dispose();
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

[DebuggerDisplay($"{{{nameof(_nativeText)}}}")]
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Gets a new <i>Close</i> button.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

        GC.SuppressFinalize(this);
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

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

Incorrect end of line character(s) found.
Open

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

Incorrect end of line character(s) found.
Open

    public override int GetHashCode() => _nativeText.GetHashCode();
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

/// <remarks>This class cannot be inherited and implements <see cref="IDisposable"/>.</remarks>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

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

Incorrect end of line character(s) found.
Open

    /// The supplemental instruction of this command link. If this button is not a command link or it
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open

using Vanara.InteropServices;
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Gets a new <i>Help</i> button.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Gets a new <i>Ignore</i> button.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Gets a new <i>Retry</i> button.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

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

Incorrect end of line character(s) found.
Open

    /// button on its title bar.
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// This button is non-committing and raises the <see cref="Page.HelpRequested"/> event when clicked.
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public static CommonButton Ignore => CloneButtonPrototype(nameof(Ignore));
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <param name="text">The push button or command link text.</param>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public static CommonButton OK => CloneButtonPrototype(nameof(OK));
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Gets the push button or command link text.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public string Text { get; }
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open

    public Button(string text, string? note = null)
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Gets a new <i>Cancel</i> button.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public static CommonButton Cancel => CloneButtonPrototype(nameof(Cancel));
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open

    public static CommonButton Help => CloneButtonPrototype(nameof(Help));
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public static CommonButton TryAgain => CloneButtonPrototype(nameof(TryAgain));
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open

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

Incorrect end of line character(s) found.
Open

    /// Similarly to <see cref="Page.IsCancelable"/>, adding this button to <see cref="Page.Buttons"/>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open

    public static CommonButton Retry => CloneButtonPrototype(nameof(Retry));
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    /// <summary>Gets a new <i>Try Again</i> button.</summary>
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open


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

Incorrect end of line character(s) found.
Open

    public static CommonButton Yes => CloneButtonPrototype(nameof(Yes));
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

    public void Dispose()
Severity: Minor
Found in Dialogs/Button.cs by editorconfig

Incorrect end of line character(s) found.
Open

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

There are no issues that match your filters.

Category
Status