From eb06df0f6b6a5212ce88a300ba9a28c4e5baae8d Mon Sep 17 00:00:00 2001 From: RKrom Date: Wed, 10 Oct 2012 14:26:18 +0000 Subject: [PATCH] Removed designmode messages, this was just bothering the development. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2132 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotPlugin/Controls/GreenshotForm.cs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/GreenshotPlugin/Controls/GreenshotForm.cs b/GreenshotPlugin/Controls/GreenshotForm.cs index 5f9e12cb0..a5192b093 100644 --- a/GreenshotPlugin/Controls/GreenshotForm.cs +++ b/GreenshotPlugin/Controls/GreenshotForm.cs @@ -88,7 +88,6 @@ namespace GreenshotPlugin.Controls { Language.AddLanguageFilePath(Path.Combine(assemblyDirectory, @"..\..\..\Languages\")); } } catch (Exception ex) { - MessageBox.Show(ex.ToString(), "Greenshot designer exception!"); } } } @@ -104,7 +103,6 @@ namespace GreenshotPlugin.Controls { try { ApplyLanguage(); } catch (Exception ex) { - MessageBox.Show(ex.ToString()); } } } @@ -240,9 +238,6 @@ namespace GreenshotPlugin.Controls { if (!string.IsNullOrEmpty(languageKey)) { if (!Language.TryGetString(languageKey, out langString)) { LOG.WarnFormat("Wrong language key '{0}' configured for control '{1}'", languageKey, applyTo.Name); - if (DesignMode) { - MessageBox.Show(string.Format("Wrong language key '{0}' configured for control '{1}'", languageKey, applyTo.Name)); - } return; } applyTo.Text = langString; @@ -252,9 +247,7 @@ namespace GreenshotPlugin.Controls { applyTo.Text = langString; return; } - if (this.DesignMode) { - MessageBox.Show(string.Format("Greenshot control without language key: {0}", applyTo.Name)); - } else { + if (!this.DesignMode) { LOG.DebugFormat("Greenshot control without language key: {0}", applyTo.Name); } } @@ -366,9 +359,6 @@ namespace GreenshotPlugin.Controls { if (!string.IsNullOrEmpty(languageKey)) { if (!Language.TryGetString(languageKey, out langString)) { LOG.WarnFormat("Wrong language key '{0}' configured for control '{1}'", languageKey, applyTo.Name); - if (DesignMode) { - MessageBox.Show(string.Format("Wrong language key '{0}' configured for control '{1}'", languageKey, applyTo.Name)); - } return; } applyTo.Text = langString; @@ -378,9 +368,7 @@ namespace GreenshotPlugin.Controls { applyTo.Text = langString; return; } - if (this.DesignMode) { - MessageBox.Show(string.Format("Greenshot control without language key: {0}", applyTo.Name)); - } else { + if (!this.DesignMode) { LOG.DebugFormat("Greenshot control without language key: {0}", applyTo.Name); } }