Skip to content

Commit

Permalink
* Strings
Browse files Browse the repository at this point in the history
  • Loading branch information
PWagner1 committed Feb 13, 2023
1 parent 306a0cf commit 928b48d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,21 +412,21 @@ public bool GlobalAllowFormChrome
[Category(@"Visuals")]
[Description(@"")]
[DefaultValue(null)]
public KryptonCustomPaletteManager? CustomPaletteManager
{
get => _customPaletteManager;
set => _customPaletteManager = value;
public KryptonCustomPaletteManager? CustomPaletteManager
{
get => _customPaletteManager;
set => _customPaletteManager = value;
}

/// <summary>Specify a custom palette outside the existing palettes.</summary>
/// <value>A custom palette.</value>
[Category(@"Visuals")]
[Description(@"Specify a custom palette outside the existing palettes.")]
[DefaultValue(null)]
public PaletteBase? CustomPalette
{
get => _customPalette;
set => _customPalette = value;
public PaletteBase? CustomPalette
{
get => _customPalette;
set => _customPalette = value;
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public class GlobalStrings : GlobalId
private const string DEFAULT_PASTE = @"Pas&te"; // Accelerator key - T
private const string DEFAULT_SELECT_ALL = @"Sel&ect All"; // Accelerator key - E
private const string DEFAULT_CLEAR_CLIPBOARD = @"Clear Clipboa&rd"; // Accelerator key - R
private const string DEFAULT_YES_TO_ALL = @"Yes &to All"; // Accelerator key - T
private const string DEFAULT_NO_TO_ALL = @"No t&o All"; // Accelerator key - O
private const string DEFAULT_OK_TO_ALL = @"O&k to All"; // Accelerator key - K

// Note: The following may not be needed...
/*private const string DEFAULT_MORE_DETAILS = "M&ore Details...";
Expand Down Expand Up @@ -108,7 +111,10 @@ public GlobalStrings()
Copy.Equals(DEFAULT_COPY) &&
Paste.Equals(DEFAULT_PASTE) &&
SelectAll.Equals(DEFAULT_SELECT_ALL) &&
ClearClipboard.Equals(DEFAULT_CLEAR_CLIPBOARD);
ClearClipboard.Equals(DEFAULT_CLEAR_CLIPBOARD) &&
YesToAll.Equals(DEFAULT_YES_TO_ALL) &&
NoToAll.Equals(DEFAULT_NO_TO_ALL) &&
OkToAll.Equals(DEFAULT_OK_TO_ALL);
// Note: The following may not be needed...
/*MoreDetails.Equals(DEFAULT_MORE_DETAILS) &&
LessDetails.Equals(DEFAULT_LESS_DETAILS);*/
Expand Down Expand Up @@ -148,6 +154,9 @@ public void Reset()
Paste = DEFAULT_PASTE;
SelectAll = DEFAULT_SELECT_ALL;
ClearClipboard = DEFAULT_CLEAR_CLIPBOARD;
YesToAll = DEFAULT_YES_TO_ALL;
NoToAll = DEFAULT_NO_TO_ALL;
OkToAll = DEFAULT_OK_TO_ALL;

// Note: The following may not be needed...
/*MoreDetails = DEFAULT_MORE_DETAILS;
Expand Down Expand Up @@ -386,6 +395,33 @@ public void Reset()
[DefaultValue(DEFAULT_CLEAR_CLIPBOARD)]
public string ClearClipboard { get; set; }

/// <summary>
/// Gets and sets the Yes to All string used in custom situations.
/// </summary>
[Localizable(true)]
[Category(@"Visuals")]
[Description(@"Yes to All string used for custom situations.")]
[DefaultValue(DEFAULT_YES_TO_ALL)]
public string YesToAll { get; set; }

/// <summary>
/// Gets and sets the No to All string used in custom situations.
/// </summary>
[Localizable(true)]
[Category(@"Visuals")]
[Description(@"No to All string used for custom situations.")]
[DefaultValue(DEFAULT_NO_TO_ALL)]
public string NoToAll { get; set; }

/// <summary>
/// Gets and sets the Ok to All string used in custom situations.
/// </summary>
[Localizable(true)]
[Category(@"Visuals")]
[Description(@"Ok to All string used for custom situations.")]
[DefaultValue(DEFAULT_OK_TO_ALL)]
public string OkToAll { get; set; }

// Note: The following may not be needed...

/*/// <summary>Gets or sets the more details string used in expandable footers.</summary>
Expand Down

0 comments on commit 928b48d

Please sign in to comment.