Skip to content

Commit

Permalink
Fixed compile time issue in debug mode. Fixed messagebox on failure t…
Browse files Browse the repository at this point in the history
…o iconify
  • Loading branch information
Jonno12345 committed Mar 6, 2018
1 parent d1f8549 commit ea7dbc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,8 @@ protected override void OnPaint(PaintEventArgs e)
new SolidBrush(Color.Red), 0, 0);
e.Graphics.DrawString(PannablePictureBoxImage.X + ", " + PannablePictureBoxImage.Y, DefaultFont,
new SolidBrush(Color.Red), 0, 20);
e.Graphics.DrawString(pctBox.Width + ", " + pctBox.Height, DefaultFont, new SolidBrush(Color.Red), 0, 40);
e.Graphics.DrawString(MinWidth + "_" + MaxWidth + ", " + MinHeight + "_" + MaxHeight, DefaultFont,
e.Graphics.DrawString(Width + ", " + Height, DefaultFont, new SolidBrush(Color.Red), 0, 40);
e.Graphics.DrawString(_minWidth + "_" + _maxWidth + ", " + _minHeight + "_" + _maxHeight, DefaultFont,
new SolidBrush(Color.Red), 0, 60);
#endif
}
Expand Down
4 changes: 2 additions & 2 deletions TileIconifier/Forms/Main/FrmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ private void btnIconify_Click(object sender, EventArgs e)
catch (Exception ex)
{
FormUtils.ShowMessage(this,
"Failure iconifying shortcut",
"A failure has occurred creating the new tile. Use the Custom Shortcut Manager (or click 'Quick Build Custom Shortcut') instead.\r\n\r\nFailure reason: " + ex.Message , MessageBoxButtons.OK, MessageBoxIcon.Error);

"A failure has occurred creating the new tile (possible access issues if the software is an antivirus, firewall or system application). Use the Custom Shortcut Manager (or click 'Quick Build Custom Shortcut' in the bottom left corner) instead.\r\n\r\nFailure reason: " + ex.Message , "Failure iconifying shortcut", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
UpdateShortcut();

Expand Down

0 comments on commit ea7dbc7

Please sign in to comment.