Skip to content

Commit

Permalink
Merge pull request #122 from Krypton-Suite/alpha-kmbox
Browse files Browse the repository at this point in the history
* Fix KryptonMessageBox fallout
  • Loading branch information
Smurf-IV authored Dec 24, 2022
2 parents 74cfb29 + e55452d commit b7a5b06
Show file tree
Hide file tree
Showing 15 changed files with 388 additions and 126 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,4 @@ MigrationBackup/
/Source/WixInstaller/WixInstaller.net50/BasePath50.wxs
/Source/WixInstaller/WixInstaller.net48/BasePath48.wxs
/Source/WixInstaller/WixInstaller.net60/BasePath60.wxs
Source/Krypton Toolkit Examples/Temp.txt
30 changes: 21 additions & 9 deletions Source/Krypton Explorer/Form1.Designer.cs

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

16 changes: 8 additions & 8 deletions Source/Krypton Explorer/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ private void LaunchApplication(string exampleName)
}
catch (Exception ex)
{
KryptonMessageBox.Show(this, ex.Message, @"Explorer", MessageBoxButtons.OK,
KryptonMessageBox.Show(this, ex.Message, @"Explorer", KryptonMessageBoxButtons.OK,
KryptonMessageBoxIcon.Error);
}
finally
Expand All @@ -448,12 +448,12 @@ private void LaunchPaletteDesignerApplication()
{
KryptonMessageBox.Show(
"The Palette Designer is not currently installed. Please download the latest installation package from:\nhttps://github.com/Krypton-Suite/Theme-Palettes/releases",
@"Application Not Installed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Information);
@"Application Not Installed", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Information);
}
}
catch (Exception e)
{
KryptonMessageBox.Show(this, e.Message, @"Explorer", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error);
KryptonMessageBox.Show(this, e.Message, @"Explorer", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Error);
}
finally
{
Expand All @@ -475,12 +475,12 @@ private void LaunchPaletteUpgradeToolApplication()
{
KryptonMessageBox.Show(
"The Palette Upgrade Tool is not currently installed. Please download the latest installation package from:\nhttps://github.com/Krypton-Suite/Theme-Palettes/releases",
@"Application Not Installed", MessageBoxButtons.OK, KryptonMessageBoxIcon.Information);
@"Application Not Installed", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Information);
}
}
catch (Exception e)
{
KryptonMessageBox.Show(this, e.Message, @"Explorer", MessageBoxButtons.OK, KryptonMessageBoxIcon.Error);
KryptonMessageBox.Show(this, e.Message, @"Explorer", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Error);
}
finally
{
Expand Down Expand Up @@ -556,7 +556,7 @@ private void DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
{
DialogResult result = KryptonMessageBox.Show(@"Download completed. Install now?",
@"Download Successful",
MessageBoxButtons.YesNo, KryptonMessageBoxIcon.Information);
KryptonMessageBoxButtons.YesNo, KryptonMessageBoxIcon.Information);

if (result == DialogResult.Yes)
{
Expand Down Expand Up @@ -603,7 +603,7 @@ private void bgwDownloadDocumentation_ProgressChanged(object sender, ProgressCha
private void bgwDownloadDocumentation_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
DialogResult result = KryptonMessageBox.Show(@"Download completed. Install now?", @"Download Successful",
MessageBoxButtons.YesNo, KryptonMessageBoxIcon.Information);
KryptonMessageBoxButtons.YesNo, KryptonMessageBoxIcon.Information);

if (result == DialogResult.Yes)
{
Expand Down Expand Up @@ -637,7 +637,7 @@ private void kbtnLaunchHelp_Click(object sender, EventArgs e)
}
catch (Exception exc)
{
KryptonMessageBox.Show($@"Error: {exc}", @"Unexpected Error", MessageBoxButtons.OK,
KryptonMessageBox.Show($@"Error: {exc}", @"Unexpected Error", KryptonMessageBoxButtons.OK,
KryptonMessageBoxIcon.Error);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KryptonListView Examples 20
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Krypton Theme Selector 2022", "Krypton Theme Selector\Krypton Theme Selector 2022.csproj", "{D0610E53-93C4-41AE-9787-E537ECC86307}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KryptonStringCollectionEditor Examples 2022", "KryptonStringCollectionEditor Examples 2022\KryptonStringCollectionEditor Examples 2022.csproj", "{6D13D844-0181-44BB-B9E7-1FD1D175F574}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KryptonStringCollectionEditor Examples 2022", "KryptonStringCollectionEditor Examples 2022\KryptonStringCollectionEditor Examples 2022.csproj", "{6D13D844-0181-44BB-B9E7-1FD1D175F574}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Loading

0 comments on commit b7a5b06

Please sign in to comment.