Skip to content

Commit

Permalink
Merge pull request #121 from Krypton-Suite/alpha-827-ExposeIPaletteII
Browse files Browse the repository at this point in the history
- Remove confusing usage of `PaletteModeManager` and `PaletteMode`
  • Loading branch information
PWagner1 authored Dec 24, 2022
2 parents 3fc274c + 5b3b2bd commit 74cfb29
Show file tree
Hide file tree
Showing 99 changed files with 388 additions and 390 deletions.
40 changes: 20 additions & 20 deletions Source/Krypton Docking Examples/Standard Docking/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,61 +234,61 @@ private void buttonShowAll_Click(object sender, EventArgs e)

private void button2010Blue_Click(object sender, EventArgs e)
{
kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2010Blue;
kryptonManager.GlobalPaletteMode = PaletteMode.Office2010Blue;
UpdatePaletteButtons();
}

private void button2010Silver_Click(object sender, EventArgs e)
{
kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2010Silver;
kryptonManager.GlobalPaletteMode = PaletteMode.Office2010Silver;
UpdatePaletteButtons();
}

private void button2010Black_Click(object sender, EventArgs e)
{
kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2010Black;
kryptonManager.GlobalPaletteMode = PaletteMode.Office2010Black;
UpdatePaletteButtons();
}

private void button2007Blue_Click(object sender, EventArgs e)
{
kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2007Blue;
kryptonManager.GlobalPaletteMode = PaletteMode.Office2007Blue;
UpdatePaletteButtons();
}

private void button2007Silver_Click(object sender, EventArgs e)
{
kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2007Silver;
kryptonManager.GlobalPaletteMode = PaletteMode.Office2007Silver;
UpdatePaletteButtons();
}

private void button2007Black_Click(object sender, EventArgs e)
{
kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2007Black;
kryptonManager.GlobalPaletteMode = PaletteMode.Office2007Black;
UpdatePaletteButtons();
}

private void buttonSparkleBlue_Click(object sender, EventArgs e)
{
kryptonManager.GlobalPaletteMode = PaletteModeManager.SparkleBlue;
kryptonManager.GlobalPaletteMode = PaletteMode.SparkleBlue;
UpdatePaletteButtons();
}

private void buttonSparkleOrange_Click(object sender, EventArgs e)
{
kryptonManager.GlobalPaletteMode = PaletteModeManager.SparkleOrange;
kryptonManager.GlobalPaletteMode = PaletteMode.SparkleOrange;
UpdatePaletteButtons();
}

private void buttonSparklePurple_Click(object sender, EventArgs e)
{
kryptonManager.GlobalPaletteMode = PaletteModeManager.SparklePurple;
kryptonManager.GlobalPaletteMode = PaletteMode.SparklePurple;
UpdatePaletteButtons();
}

private void buttonSystem_Click(object sender, EventArgs e)
{
kryptonManager.GlobalPaletteMode = PaletteModeManager.ProfessionalSystem;
kryptonManager.GlobalPaletteMode = PaletteMode.ProfessionalSystem;
UpdatePaletteButtons();
}

Expand All @@ -301,16 +301,16 @@ private void kryptonDockableWorkspace_WorkspaceCellAdding(object sender, Workspa

private void UpdatePaletteButtons()
{
button2010Blue.Checked = (kryptonManager.GlobalPaletteMode == PaletteModeManager.Office2010Blue);
button2010Silver.Checked = (kryptonManager.GlobalPaletteMode == PaletteModeManager.Office2010Silver);
button2010Black.Checked = (kryptonManager.GlobalPaletteMode == PaletteModeManager.Office2010Black);
button2007Blue.Checked = (kryptonManager.GlobalPaletteMode == PaletteModeManager.Office2007Blue);
button2007Silver.Checked = (kryptonManager.GlobalPaletteMode == PaletteModeManager.Office2007Silver);
button2007Black.Checked = (kryptonManager.GlobalPaletteMode == PaletteModeManager.Office2007Black);
buttonSparkleBlue.Checked = (kryptonManager.GlobalPaletteMode == PaletteModeManager.SparkleBlue);
buttonSparkleOrange.Checked = (kryptonManager.GlobalPaletteMode == PaletteModeManager.SparkleOrange);
buttonSparklePurple.Checked = (kryptonManager.GlobalPaletteMode == PaletteModeManager.SparklePurple);
buttonSystem.Checked = (kryptonManager.GlobalPaletteMode == PaletteModeManager.ProfessionalSystem);
button2010Blue.Checked = (kryptonManager.GlobalPaletteMode == PaletteMode.Office2010Blue);
button2010Silver.Checked = (kryptonManager.GlobalPaletteMode == PaletteMode.Office2010Silver);
button2010Black.Checked = (kryptonManager.GlobalPaletteMode == PaletteMode.Office2010Black);
button2007Blue.Checked = (kryptonManager.GlobalPaletteMode == PaletteMode.Office2007Blue);
button2007Silver.Checked = (kryptonManager.GlobalPaletteMode == PaletteMode.Office2007Silver);
button2007Black.Checked = (kryptonManager.GlobalPaletteMode == PaletteMode.Office2007Black);
buttonSparkleBlue.Checked = (kryptonManager.GlobalPaletteMode == PaletteMode.SparkleBlue);
buttonSparkleOrange.Checked = (kryptonManager.GlobalPaletteMode == PaletteMode.SparkleOrange);
buttonSparklePurple.Checked = (kryptonManager.GlobalPaletteMode == PaletteMode.SparklePurple);
buttonSystem.Checked = (kryptonManager.GlobalPaletteMode == PaletteMode.ProfessionalSystem);
}

private void ribbonAppButtonExit_Click(object sender, EventArgs e) => Close();
Expand Down

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

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

18 changes: 9 additions & 9 deletions Source/Krypton Navigator Examples/Expanding Pages/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,31 +80,31 @@ private void kryptonPalettes_CheckedButtonChanged(object sender, EventArgs e)
switch (kryptonPalettes.CheckedIndex)
{
case 0:
kryptonManager1.GlobalPaletteMode = PaletteModeManager.Office2007Blue;
kryptonManager1.GlobalPaletteMode = PaletteMode.Office2007Blue;
break;
case 1:
kryptonManager1.GlobalPaletteMode = PaletteModeManager.Office2007Silver;
kryptonManager1.GlobalPaletteMode = PaletteMode.Office2007Silver;
break;
case 2:
kryptonManager1.GlobalPaletteMode = PaletteModeManager.Office2007Black;
kryptonManager1.GlobalPaletteMode = PaletteMode.Office2007Black;
break;
case 3:
kryptonManager1.GlobalPaletteMode = PaletteModeManager.ProfessionalSystem;
kryptonManager1.GlobalPaletteMode = PaletteMode.ProfessionalSystem;
break;
case 4:
kryptonManager1.GlobalPaletteMode = PaletteModeManager.ProfessionalOffice2003;
kryptonManager1.GlobalPaletteMode = PaletteMode.ProfessionalOffice2003;
break;
case 5:
kryptonManager1.GlobalPaletteMode = PaletteModeManager.SparkleBlue;
kryptonManager1.GlobalPaletteMode = PaletteMode.SparkleBlue;
break;
case 6:
kryptonManager1.GlobalPaletteMode = PaletteModeManager.Office2010Black;
kryptonManager1.GlobalPaletteMode = PaletteMode.Office2010Black;
break;
case 7:
kryptonManager1.GlobalPaletteMode = PaletteModeManager.Office2010Silver;
kryptonManager1.GlobalPaletteMode = PaletteMode.Office2010Silver;
break;
case 8:
kryptonManager1.GlobalPaletteMode = PaletteModeManager.Office2010Blue;
kryptonManager1.GlobalPaletteMode = PaletteMode.Office2010Blue;
break;

}
Expand Down

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

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

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

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

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

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

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

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

18 changes: 9 additions & 9 deletions Source/Krypton Navigator Examples/Outlook Mockup/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,55 +184,55 @@ private void radioNotes_CheckedChanged(object sender, EventArgs e)
private void radioOffice2010Blue_CheckedChanged(object sender, EventArgs e)
{
if (radioOffice2010Blue.Checked)
kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2010Blue;
kryptonManager.GlobalPaletteMode = PaletteMode.Office2010Blue;
}

private void radioOffice2010Silver_CheckedChanged(object sender, EventArgs e)
{
if (radioOffice2010Silver.Checked)
kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2010Silver;
kryptonManager.GlobalPaletteMode = PaletteMode.Office2010Silver;
}

private void radioOffice2010Black_CheckedChanged(object sender, EventArgs e)
{
if (radioOffice2010Black.Checked)
kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2010Black;
kryptonManager.GlobalPaletteMode = PaletteMode.Office2010Black;
}

private void radioOffice2007Blue_CheckedChanged(object sender, EventArgs e)
{
if (radioOffice2007Blue.Checked)
kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2007Blue;
kryptonManager.GlobalPaletteMode = PaletteMode.Office2007Blue;
}

private void radioOffice2007Silver_CheckedChanged(object sender, EventArgs e)
{
if (radioOffice2007Silver.Checked)
kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2007Silver;
kryptonManager.GlobalPaletteMode = PaletteMode.Office2007Silver;
}

private void radioOffice2007Black_CheckedChanged(object sender, EventArgs e)
{
if (radioOffice2007Black.Checked)
kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2007Black;
kryptonManager.GlobalPaletteMode = PaletteMode.Office2007Black;
}

private void radioOffice2003_CheckedChanged(object sender, EventArgs e)
{
if (radioOffice2003.Checked)
kryptonManager.GlobalPaletteMode = PaletteModeManager.ProfessionalOffice2003;
kryptonManager.GlobalPaletteMode = PaletteMode.ProfessionalOffice2003;
}

private void radioSystem_CheckedChanged(object sender, EventArgs e)
{
if (radioSystem.Checked)
kryptonManager.GlobalPaletteMode = PaletteModeManager.ProfessionalSystem;
kryptonManager.GlobalPaletteMode = PaletteMode.ProfessionalSystem;
}

private void radioSparkle_CheckedChanged(object sender, EventArgs e)
{
if (radioSparkle.Checked)
kryptonManager.GlobalPaletteMode = PaletteModeManager.SparkleBlue;
kryptonManager.GlobalPaletteMode = PaletteMode.SparkleBlue;
}
}
}

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

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

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

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

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

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

Loading

0 comments on commit 74cfb29

Please sign in to comment.