Dialogs/Button.cs
Incorrect end of line character(s) found. Open
Open
/// <summary>A dialog button with text. Can represent a push button or a command link.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <param name="note">The command link supplemental instruction.</param>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
=> (Text, Note, _nativeText) = (text, note, new(note is null ? text : $"{text}\n{note}"));
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public static CommonButton No => CloneButtonPrototype(nameof(No));
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets a new <i>OK</i> button.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <value>
- 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
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public static CommonButton Close => CloneButtonPrototype(nameof(Close));
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets a new <i>Continue</i> button.</summary>
- 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
private static CommonButton CloneButtonPrototype(string prototypeName) => CommonButton.Values[prototypeName].CloneDeep();
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public sealed class Button : ButtonBase, IEquatable<Button?>, ITextControl, IDisposable
- Exclude checks
Incorrect end of line character(s) found. Open
Open
{
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public static CommonButton Abort => CloneButtonPrototype(nameof(Abort));
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// causes the dialog window to respond to typical cancel actions (Alt-F4 and Escape) and have a close
- 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
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// doesn't have a supplemental insruction, <see langword="null"/>.
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public string? Note { get; }
- Exclude checks
Incorrect end of line character(s) found. Open
Open
StrPtrUni ITextControl.NativeText => _nativeText;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
using System.Diagnostics;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
private readonly SafeLPWSTR _nativeText = SafeLPWSTR.Null;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// </remarks>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public static CommonButton Continue => CloneButtonPrototype(nameof(Continue));
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets a new <i>Yes</i> button.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// </value>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public override bool Equals(object? obj) => Equals(obj as Button);
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public bool Equals(Button? other) => other is not null && _nativeText.Equals(other._nativeText);
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets a new <i>Abort</i> button.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets a new <i>No</i> button.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets the command link supplemental instruction.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <inheritdoc/>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
_nativeText.Dispose();
- Exclude checks
Incorrect end of line character(s) found. Open
Open
[DebuggerDisplay($"{{{nameof(_nativeText)}}}")]
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets a new <i>Close</i> button.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
GC.SuppressFinalize(this);
- 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
public override int GetHashCode() => _nativeText.GetHashCode();
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <remarks>This class cannot be inherited and implements <see cref="IDisposable"/>.</remarks>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <remarks>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// The supplemental instruction of this command link. If this button is not a command link or it
- 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 Vanara.InteropServices;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets a new <i>Help</i> button.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets a new <i>Ignore</i> button.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets a new <i>Retry</i> button.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <inheritdoc/>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// button on its title bar.
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// This button is non-committing and raises the <see cref="Page.HelpRequested"/> event when clicked.
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public static CommonButton Ignore => CloneButtonPrototype(nameof(Ignore));
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <param name="text">The push button or command link text.</param>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public static CommonButton OK => CloneButtonPrototype(nameof(OK));
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets the push button or command link text.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public string Text { get; }
- 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
public Button(string text, string? note = null)
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets a new <i>Cancel</i> button.</summary>
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public static CommonButton Cancel => CloneButtonPrototype(nameof(Cancel));
- 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
public static CommonButton Help => CloneButtonPrototype(nameof(Help));
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public static CommonButton TryAgain => CloneButtonPrototype(nameof(TryAgain));
- 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
namespace Scover.Dialogs;
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// Similarly to <see cref="Page.IsCancelable"/>, adding this button to <see cref="Page.Buttons"/>
- 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
public static CommonButton Retry => CloneButtonPrototype(nameof(Retry));
- Exclude checks
Incorrect end of line character(s) found. Open
Open
/// <summary>Gets a new <i>Try Again</i> button.</summary>
- 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
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public static CommonButton Yes => CloneButtonPrototype(nameof(Yes));
- Exclude checks
Incorrect end of line character(s) found. Open
Open
public void Dispose()
- Exclude checks
Incorrect end of line character(s) found. Open
Open
{
- Exclude checks