Skip to content

Commit

Permalink
- Separate out the buttons to another pagecontrol
Browse files Browse the repository at this point in the history
- Add DropDown indicators to the buttons

#74
  • Loading branch information
Smurf-IV committed Dec 2, 2024
1 parent 75cb09a commit 9cd4a53
Show file tree
Hide file tree
Showing 16 changed files with 2,536 additions and 2,047 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Applications/Source/Palette Designer/FormChromeRibbon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public KryptonCustomPaletteBase OverridePalette
{
set
{
LocalCustomPalette = value;
Palette = value;
kryptonPanel1.Palette = value;
kryptonRibbon1.LocalCustomPalette = value;
kryptonRibbon1.Palette = value;
}
}
#endregion
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions Applications/Source/Palette Designer/FormPaletteUpgradeTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ private void kbtnUpgrade_Click(object sender, EventArgs e)

writer.Close();

object[] text = new object[] { "Input file: ", krtbInput.Text, "\nOutput file: ", krtbOutput.Text, "\n\nUpgrade from version '", InputVersionNumber, "' to version '", 19.ToString(), "' has succeeded." };
object[] text = ["Input file: ", krtbInput.Text, "\nOutput file: ", krtbOutput.Text, "\n\nUpgrade from version '", InputVersionNumber, "' to version '", 19.ToString(), "' has succeeded."
];

KryptonMessageBox.Show(this, string.Concat(text), "Upgrade Success", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Information);

Expand Down Expand Up @@ -280,7 +281,8 @@ private void kcmdBrowseForOriginalFile_Execute(object sender, EventArgs e)
break;
case < MINIMUM_PALETTE_FILE_VERSION:
{
string[] fileName = new string[] { "File '", openFileDialog.FileName, "' contains palette format version '", paletteFileVersionNumber.ToString(), "'.\nPalette upgrade tool can only upgrade version '", MINIMUM_PALETTE_FILE_VERSION.ToString(), "' and upwards." };
string[] fileName = ["File '", openFileDialog.FileName, "' contains palette format version '", paletteFileVersionNumber.ToString(), "'.\nPalette upgrade tool can only upgrade version '", MINIMUM_PALETTE_FILE_VERSION.ToString(), "' and upwards."
];

KryptonMessageBox.Show(this,
string.Concat(fileName),
Expand Down Expand Up @@ -310,7 +312,8 @@ private void kcmdBrowseForOriginalFile_Execute(object sender, EventArgs e)

KryptonRichTextBox richTextBox = krtbOutput;

string[] strArrays = new string[] { directoryName, str, "_v", (MAXIMUM_PALETTE_FILE_VERSION + 1).ToString(), fileInfo.Extension };
string[] strArrays = [directoryName, str, "_v", (MAXIMUM_PALETTE_FILE_VERSION + 1).ToString(), fileInfo.Extension
];

richTextBox.Text = string.Concat(strArrays);
}
Expand All @@ -319,7 +322,8 @@ private void kcmdBrowseForOriginalFile_Execute(object sender, EventArgs e)
}
default:
{
string[] fileName1 = new string[] { "File '", openFileDialog.FileName, "' contains palette format version '", paletteFileVersionNumber.ToString(), "'.\nPalette upgrade tool can only upgrade version '", 17.ToString(), "' and below." };
string[] fileName1 = ["File '", openFileDialog.FileName, "' contains palette format version '", paletteFileVersionNumber.ToString(), "'.\nPalette upgrade tool can only upgrade version '", 17.ToString(), "' and below."
];

KryptonMessageBox.Show(this,
string.Concat(fileName1),
Expand Down
Loading

0 comments on commit 9cd4a53

Please sign in to comment.