From 4d19ef362c47daa4a37f8461456d1740c7265753 Mon Sep 17 00:00:00 2001 From: RFTD Date: Wed, 10 Jul 2013 08:55:41 -0400 Subject: [PATCH 1/5] =?UTF-8?q?[*]=20Modifica=C3=A7=C3=B5es=20para=20usar?= =?UTF-8?q?=20atributos=20boleanos,=20inteiros=20e=20enumeradores=20no=20P?= =?UTF-8?q?rotocolBase.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NBug.Configurator/SubmitPanels/Web/Mail.cs | 36 +++++------- NBug/Core/Submission/ProtocolBase.cs | 21 ++++--- NBug/Core/Submission/Web/Mail.cs | 66 +++++++--------------- 3 files changed, 45 insertions(+), 78 deletions(-) diff --git a/NBug.Configurator/SubmitPanels/Web/Mail.cs b/NBug.Configurator/SubmitPanels/Web/Mail.cs index 85cb827..a8da290 100644 --- a/NBug.Configurator/SubmitPanels/Web/Mail.cs +++ b/NBug.Configurator/SubmitPanels/Web/Mail.cs @@ -8,13 +8,14 @@ namespace NBug.Configurator.SubmitPanels.Web { using System; using System.Windows.Forms; + using System.Net.Mail; public partial class Mail : UserControl, ISubmitPanel { public Mail() { InitializeComponent(); - this.portNumericUpDown.Maximum = decimal.MaxValue; + this.portNumericUpDown.Maximum = decimal.MaxValue; } public string ConnectionString @@ -24,7 +25,7 @@ public string ConnectionString // Check the mendatory fields if (this.toListBox.Items.Count == 0) { - MessageBox.Show("Mandatory field \"" + toLabel.Name + "\" cannot be left blank.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); + MessageBox.Show(String.Format("Mandatory field \"{0}\" cannot be left blank.", toLabel.Name), "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); return null; } @@ -36,7 +37,7 @@ public string ConnectionString CustomSubject = this.customSubjectTextBox.Text, CustomBody = this.customBodyTextBox.Text, SmtpServer = this.smtpServerTextBox.Text, - Priority = this.priorityComboBox.Text + Priority = (MailPriority)this.priorityComboBox.SelectedIndex }; foreach (var item in this.toListBox.Items) @@ -68,7 +69,7 @@ public string ConnectionString if (!this.defaultPortCheckBox.Checked) { - mail.Port = this.portNumericUpDown.Text; + mail.Port = (int)this.portNumericUpDown.Value; } @@ -77,22 +78,15 @@ public string ConnectionString // Make sure that we can use authentication even with emtpy username and password if (string.IsNullOrEmpty(this.usernameTextBox.Text)) { - mail.UseAuthentication = "true"; + mail.UseAuthentication = true; } mail.Username = this.usernameTextBox.Text; mail.Password = this.passwordTextBox.Text; } - if (this.useSslCheckBox.Checked) - { - mail.UseSsl = "true"; - } - - if (this.useAttachmentCheckBox.Checked) - { - mail.UseAttachment = "true"; - } + mail.UseSsl = this.useSslCheckBox.Checked; + mail.UseAttachment = this.useAttachmentCheckBox.Checked; return mail.ConnectionString; } @@ -104,22 +98,18 @@ public string ConnectionString this.fromTextBox.Text = mail.From; this.fromNameTextBox.Text = mail.FromName; this.smtpServerTextBox.Text = mail.SmtpServer; - this.useSslCheckBox.Checked = Convert.ToBoolean(mail.UseSsl); + this.useSslCheckBox.Checked = mail.UseSsl; this.priorityComboBox.SelectedItem = mail.Priority; - this.useAuthenticationCheckBox.Checked = Convert.ToBoolean(mail.UseAuthentication); + this.useAuthenticationCheckBox.Checked = mail.UseAuthentication; this.usernameTextBox.Text = mail.Username; this.passwordTextBox.Text = mail.Password; this.customSubjectTextBox.Text = mail.CustomSubject; this.customBodyTextBox.Text = mail.CustomBody; this.replyToTextBox.Text = mail.ReplyTo; - this.useAttachmentCheckBox.Checked = Convert.ToBoolean(mail.UseAttachment); - - if (!string.IsNullOrEmpty(mail.Port)) - { - this.portNumericUpDown.Value = Convert.ToInt32(mail.Port); - } + this.useAttachmentCheckBox.Checked = mail.UseAttachment; + this.portNumericUpDown.Value = mail.Port; - if (this.portNumericUpDown.Value == 25 || this.portNumericUpDown.Value == 465 || string.IsNullOrEmpty(mail.Port)) + if (this.portNumericUpDown.Value == 25 || this.portNumericUpDown.Value == 465 || mail.Port > 0) { this.defaultPortCheckBox.Checked = true; } diff --git a/NBug/Core/Submission/ProtocolBase.cs b/NBug/Core/Submission/ProtocolBase.cs index 852a017..b8446af 100644 --- a/NBug/Core/Submission/ProtocolBase.cs +++ b/NBug/Core/Submission/ProtocolBase.cs @@ -5,18 +5,16 @@ // -------------------------------------------------------------------------------------------------------------------- using NBug.Core.Util; +using System; namespace NBug.Core.Submission { using System.IO; using System.Linq; using System.Reflection; - using System.Xml.Linq; - using System.Xml.Serialization; using NBug.Core.Reporting.Info; using NBug.Core.Util.Serialization; - using NBug.Core.Util.Storage; public abstract class ProtocolBase : IProtocol { @@ -27,11 +25,18 @@ public abstract class ProtocolBase : IProtocol protected ProtocolBase(string connectionString) { var fields = ConnectionStringParser.Parse(connectionString); - var properties = this.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public); + var properties = GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public); foreach (var property in properties.Where(property => property.Name != "Type" && fields.ContainsKey(property.Name))) { - property.SetValue(this, fields[property.Name], null); + if(property.PropertyType == typeof(bool)) + property.SetValue(this, Convert.ToBoolean(fields[property.Name]), null); + else if (property.PropertyType == typeof(int)) + property.SetValue(this, Convert.ToInt32(fields[property.Name]), null); + else if (property.PropertyType.BaseType == typeof(Enum)) + property.SetValue(this, Convert.ToInt32(fields[property.Name]), null); + else + property.SetValue(this, fields[property.Name], null); } } @@ -47,8 +52,8 @@ public string ConnectionString { get { - var connectionString = "Type=" + this.GetType().Name + ";"; - var properties = this.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public | BindingFlags.SetProperty | BindingFlags.GetProperty) + var connectionString = String.Format("Type={0};", GetType().Name); + var properties = GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public | BindingFlags.SetProperty | BindingFlags.GetProperty) .Where(p => p.Name != "ConnectionString"); foreach (var property in properties) @@ -61,7 +66,7 @@ public string ConnectionString if (!string.IsNullOrEmpty(val)) { // Escape = and ; characters - connectionString += property.Name.Replace(";", @"\;").Replace("=", @"\=") + "=" + val.Replace(";", @"\;").Replace("=", @"\=") + ";"; + connectionString += String.Format("{0}={1};", property.Name.Replace(";", @"\;").Replace("=", @"\="), val.Replace(";", @"\;").Replace("=", @"\=")); } } } diff --git a/NBug/Core/Submission/Web/Mail.cs b/NBug/Core/Submission/Web/Mail.cs index af9f9a8..b9ffde9 100644 --- a/NBug/Core/Submission/Web/Mail.cs +++ b/NBug/Core/Submission/Web/Mail.cs @@ -17,7 +17,6 @@ namespace NBug.Core.Submission.Web using System.Net.Mail; using NBug.Core.Util.Logging; - using NBug.Core.Util.Storage; public class MailFactory : IProtocolFactory { @@ -41,6 +40,7 @@ public Mail(string connectionString) public Mail() { + Port = 25; } // Connection string format (single line) @@ -81,7 +81,7 @@ public Mail() public string ReplyTo { get; set; } - public string UseAttachment { get; set; } + public bool UseAttachment { get; set; } public string CustomSubject { get; set; } @@ -89,13 +89,13 @@ public Mail() public string SmtpServer { get; set; } - public string UseSsl { get; set; } + public bool UseSsl { get; set; } - public string Port { get; set; } + public int Port { get; set; } - public string Priority { get; set; } + public MailPriority Priority { get; set; } - public string UseAuthentication { get; set; } + public bool UseAuthentication { get; set; } public string Username { get; set; } @@ -112,31 +112,22 @@ public override bool Send(string fileName, Stream file, Report report, Serializa if (string.IsNullOrEmpty(this.ReplyTo)) { this.ReplyTo = this.From; - } - - if (string.IsNullOrEmpty(this.UseSsl)) - { - this.UseSsl = "false"; - } + } - if (string.IsNullOrEmpty(this.Port)) + if (this.Port <= 0) { - this.Port = this.UseSsl == "true" ? "465" : "25"; + this.Port = this.UseSsl ? 465 : 25; } - if (string.IsNullOrEmpty(this.UseAttachment)) + if (!this.UseAttachment) { - this.UseAttachment = "false"; + this.UseAttachment = false; } // Make sure that we can use authentication even with emtpy username and password if (!string.IsNullOrEmpty(this.Username)) { - this.UseAuthentication = "true"; - } - else if (string.IsNullOrEmpty(this.UseAuthentication)) - { - this.UseAuthentication = "false"; + this.UseAuthentication = true; } using (var smtpClient = new SmtpClient()) @@ -147,20 +138,15 @@ public override bool Send(string fileName, Stream file, Report report, Serializa smtpClient.Host = this.SmtpServer; } - if (!string.IsNullOrEmpty(this.Port)) - { - smtpClient.Port = Convert.ToInt32(this.Port); - } + + smtpClient.Port = this.Port; - if (this.UseAuthentication.ToLower() == "true") + if (this.UseAuthentication) { smtpClient.Credentials = new NetworkCredential(this.Username, this.Password); } - - if (this.UseSsl == "true") - { - smtpClient.EnableSsl = true; - } + + smtpClient.EnableSsl = this.UseSsl; if (!string.IsNullOrEmpty(this.Cc)) { @@ -172,27 +158,13 @@ public override bool Send(string fileName, Stream file, Report report, Serializa message.Bcc.Add(this.Bcc); } - if (!string.IsNullOrEmpty(this.Priority)) - { - switch (this.Priority.ToLower()) - { - case "high": - message.Priority = MailPriority.High; - break; - case "normal": - message.Priority = MailPriority.Normal; - break; - case "low": - message.Priority = MailPriority.Low; - break; - } - } + message.Priority = this.Priority; message.To.Add(this.To); message.ReplyToList.Add(this.ReplyTo); message.From = !string.IsNullOrEmpty(this.FromName) ? new MailAddress(this.From, this.FromName) : new MailAddress(this.From); - if (this.UseAttachment.ToLower() == "true") + if (this.UseAttachment) { // ToDo: Report file name should be attached to the report file object itself, file shouldn't be accessed directly! file.Position = 0; From b02ccd224032a16dfb4d297833a5bddb60a57c82 Mon Sep 17 00:00:00 2001 From: RFTD Date: Mon, 15 Jul 2013 17:13:30 -0400 Subject: [PATCH 2/5] Brazilian Portuguese [+] Adicionado um metodo de envio customizado. English [+] Add a custom submission method. --- NBug/Core/Submission/Custom/Custom.cs | 49 ++++++++++++++++++++++++ NBug/Events/CustomSubmissionEventArgs.cs | 27 +++++++++++++ NBug/Events/CustomUIEventArgs.cs | 2 +- NBug/NBug.csproj | 2 + NBug/Settings.cs | 16 ++++++++ 5 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 NBug/Core/Submission/Custom/Custom.cs create mode 100644 NBug/Events/CustomSubmissionEventArgs.cs diff --git a/NBug/Core/Submission/Custom/Custom.cs b/NBug/Core/Submission/Custom/Custom.cs new file mode 100644 index 0000000..1ddebac --- /dev/null +++ b/NBug/Core/Submission/Custom/Custom.cs @@ -0,0 +1,49 @@ +using System.Xml.Linq; +using System.Xml.Serialization; +using NBug.Core.Reporting.Info; +using NBug.Core.Util.Serialization; + +namespace NBug.Core.Submission.Custom +{ + using System.IO; + using System.Net; + using System.Net.Mail; + + using NBug.Core.Util.Logging; + + public class CustomFactory : IProtocolFactory + { + public IProtocol FromConnectionString(string connectionString) + { + return new Custom(connectionString); + } + + public string SupportedType + { + get { return "Custom"; } + } + } + + public class Custom : ProtocolBase + { + public Custom(string connectionString) + : base(connectionString) + { + } + + public Custom() + { + } + + public override bool Send(string fileName, Stream file, Report report, SerializableException exception) + { + if (Settings.CustomSubmissionHandle != null) + return false; + + var e = new CustomSubmissionEventArgs(fileName, file, report, exception); + Settings.CustomSubmissionHandle.DynamicInvoke(this, e); + return e.Result; + } + } +} + diff --git a/NBug/Events/CustomSubmissionEventArgs.cs b/NBug/Events/CustomSubmissionEventArgs.cs new file mode 100644 index 0000000..253a816 --- /dev/null +++ b/NBug/Events/CustomSubmissionEventArgs.cs @@ -0,0 +1,27 @@ +namespace NBug +{ + using System; + using System.IO; + using System.Collections.Generic; + using System.Linq; + using NBug.Core.Reporting.Info; + using NBug.Core.Util.Serialization; + + public class CustomSubmissionEventArgs : EventArgs + { + internal CustomSubmissionEventArgs(string fileName, Stream file, Report report, SerializableException exception) + { + FileName = fileName; + File = file; + Report = report; + Exception = exception; + Result = false; + } + + public string FileName { get; private set; } + public Stream File { get; private set; } + public Report Report { get; private set; } + public SerializableException Exception { get; private set; } + public bool Result { get; set; } + } +} diff --git a/NBug/Events/CustomUIEventArgs.cs b/NBug/Events/CustomUIEventArgs.cs index bab1a09..d58bd2a 100644 --- a/NBug/Events/CustomUIEventArgs.cs +++ b/NBug/Events/CustomUIEventArgs.cs @@ -23,4 +23,4 @@ internal CustomUIEventArgs(UIMode uiMode, SerializableException exception, Repor public SerializableException Exception { get; private set; } public UIDialogResult Result { get; set; } } -} +} \ No newline at end of file diff --git a/NBug/NBug.csproj b/NBug/NBug.csproj index ffe6db6..c40b685 100644 --- a/NBug/NBug.csproj +++ b/NBug/NBug.csproj @@ -70,6 +70,7 @@ Properties\GlobalAssemblyInfo.cs + @@ -95,6 +96,7 @@ + diff --git a/NBug/Settings.cs b/NBug/Settings.cs index 9ece3e2..6529553 100644 --- a/NBug/Settings.cs +++ b/NBug/Settings.cs @@ -347,6 +347,22 @@ public static event EventHandler CustomUIEvent } } + /// + /// Gets or sets an event for a CustomSubmission. + /// + internal static Delegate CustomSubmissionHandle; + public static event EventHandler CustomSubmissionEvent + { + add + { + CustomSubmissionHandle = Delegate.Combine(CustomSubmissionHandle, value); + } + remove + { + CustomSubmissionHandle = Delegate.Remove(CustomSubmissionHandle, value); + } + } + #endregion #region Internal Settings From c1995b6b1ccaef6342ba4fb773829c6fa26c951a Mon Sep 17 00:00:00 2001 From: RFTD Date: Tue, 16 Jul 2013 14:07:00 -0400 Subject: [PATCH 3/5] =?UTF-8?q?Portuguese=20[-]=20Corrigido=20erro=20com?= =?UTF-8?q?=20com=20espa=C3=A7o=20extras=20na=20string=20de=20conex=C3=A3o?= =?UTF-8?q?.=20[-]=20corrigido=20erro=20converter=20os=20enums.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit English [-] Fix espace error in the ConnectionString. [-] Fix error in enums. --- NBug.Configurator/SubmitPanels/Web/Mail.cs | 7 ++++--- NBug/Core/Submission/ProtocolBase.cs | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/NBug.Configurator/SubmitPanels/Web/Mail.cs b/NBug.Configurator/SubmitPanels/Web/Mail.cs index a8da290..d385514 100644 --- a/NBug.Configurator/SubmitPanels/Web/Mail.cs +++ b/NBug.Configurator/SubmitPanels/Web/Mail.cs @@ -15,7 +15,8 @@ public partial class Mail : UserControl, ISubmitPanel public Mail() { InitializeComponent(); - this.portNumericUpDown.Maximum = decimal.MaxValue; + this.portNumericUpDown.Maximum = decimal.MaxValue; + this.priorityComboBox.SelectedIndex = 1; } public string ConnectionString @@ -37,7 +38,7 @@ public string ConnectionString CustomSubject = this.customSubjectTextBox.Text, CustomBody = this.customBodyTextBox.Text, SmtpServer = this.smtpServerTextBox.Text, - Priority = (MailPriority)this.priorityComboBox.SelectedIndex + Priority = (MailPriority)Enum.Parse(typeof(MailPriority), this.priorityComboBox.SelectedItem.ToString()) }; foreach (var item in this.toListBox.Items) @@ -49,7 +50,7 @@ public string ConnectionString if (this.ccListBox.Items.Count != 0) { - foreach (var item in this.ccListBox.Items) + foreach (var item in ccListBox.Items) { mail.Cc += item + ","; } diff --git a/NBug/Core/Submission/ProtocolBase.cs b/NBug/Core/Submission/ProtocolBase.cs index b8446af..54bafcf 100644 --- a/NBug/Core/Submission/ProtocolBase.cs +++ b/NBug/Core/Submission/ProtocolBase.cs @@ -30,11 +30,11 @@ protected ProtocolBase(string connectionString) foreach (var property in properties.Where(property => property.Name != "Type" && fields.ContainsKey(property.Name))) { if(property.PropertyType == typeof(bool)) - property.SetValue(this, Convert.ToBoolean(fields[property.Name]), null); + property.SetValue(this, Convert.ToBoolean(fields[property.Name].Trim()), null); else if (property.PropertyType == typeof(int)) - property.SetValue(this, Convert.ToInt32(fields[property.Name]), null); + property.SetValue(this, Convert.ToInt32(fields[property.Name].Trim()), null); else if (property.PropertyType.BaseType == typeof(Enum)) - property.SetValue(this, Convert.ToInt32(fields[property.Name]), null); + property.SetValue(this, Enum.Parse(property.PropertyType ,fields[property.Name]), null); else property.SetValue(this, fields[property.Name], null); } From e37b5ca7a0b8d5fe1d694dfb8615f2e7c8f2e6c7 Mon Sep 17 00:00:00 2001 From: RFTD Date: Tue, 16 Jul 2013 14:07:00 -0400 Subject: [PATCH 4/5] =?UTF-8?q?Portuguese=20[-]=20Corrigido=20erro=20com?= =?UTF-8?q?=20com=20espa=C3=A7o=20extras=20na=20string=20de=20conex=C3=A3o?= =?UTF-8?q?.=20[-]=20corrigido=20erro=20converter=20os=20enums.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit English [-] Fix espace error in the ConnectionString. [-] Fix error in enums. --- NBug.Configurator/SubmitPanels/Web/Mail.cs | 31 +++++++++++----------- NBug/Core/Submission/ProtocolBase.cs | 6 ++--- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/NBug.Configurator/SubmitPanels/Web/Mail.cs b/NBug.Configurator/SubmitPanels/Web/Mail.cs index a8da290..bdd33be 100644 --- a/NBug.Configurator/SubmitPanels/Web/Mail.cs +++ b/NBug.Configurator/SubmitPanels/Web/Mail.cs @@ -15,7 +15,8 @@ public partial class Mail : UserControl, ISubmitPanel public Mail() { InitializeComponent(); - this.portNumericUpDown.Maximum = decimal.MaxValue; + this.portNumericUpDown.Maximum = decimal.MaxValue; + this.priorityComboBox.SelectedIndex = 1; } public string ConnectionString @@ -25,20 +26,20 @@ public string ConnectionString // Check the mendatory fields if (this.toListBox.Items.Count == 0) { - MessageBox.Show(String.Format("Mandatory field \"{0}\" cannot be left blank.", toLabel.Name), "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); + MessageBox.Show(String.Format("Mandatory field \"{0}\" cannot be left blank.", toLabel.Name), "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); return null; } var mail = new Core.Submission.Web.Mail - { - From = this.fromTextBox.Text, - FromName = this.fromNameTextBox.Text, - ReplyTo = this.replyToTextBox.Text, - CustomSubject = this.customSubjectTextBox.Text, - CustomBody = this.customBodyTextBox.Text, - SmtpServer = this.smtpServerTextBox.Text, - Priority = (MailPriority)this.priorityComboBox.SelectedIndex - }; + { + From = this.fromTextBox.Text, + FromName = this.fromNameTextBox.Text, + ReplyTo = this.replyToTextBox.Text, + CustomSubject = this.customSubjectTextBox.Text, + CustomBody = this.customBodyTextBox.Text, + SmtpServer = this.smtpServerTextBox.Text, + Priority = (MailPriority)Enum.Parse(typeof(MailPriority), this.priorityComboBox.SelectedItem.ToString()) + }; foreach (var item in this.toListBox.Items) { @@ -49,11 +50,11 @@ public string ConnectionString if (this.ccListBox.Items.Count != 0) { - foreach (var item in this.ccListBox.Items) + foreach (var item in ccListBox.Items) { mail.Cc += item + ","; } - + mail.Cc = mail.Cc.TrimEnd(new[] { ',' }); } @@ -84,8 +85,8 @@ public string ConnectionString mail.Username = this.usernameTextBox.Text; mail.Password = this.passwordTextBox.Text; } - - mail.UseSsl = this.useSslCheckBox.Checked; + + mail.UseSsl = this.useSslCheckBox.Checked; mail.UseAttachment = this.useAttachmentCheckBox.Checked; return mail.ConnectionString; diff --git a/NBug/Core/Submission/ProtocolBase.cs b/NBug/Core/Submission/ProtocolBase.cs index b8446af..54bafcf 100644 --- a/NBug/Core/Submission/ProtocolBase.cs +++ b/NBug/Core/Submission/ProtocolBase.cs @@ -30,11 +30,11 @@ protected ProtocolBase(string connectionString) foreach (var property in properties.Where(property => property.Name != "Type" && fields.ContainsKey(property.Name))) { if(property.PropertyType == typeof(bool)) - property.SetValue(this, Convert.ToBoolean(fields[property.Name]), null); + property.SetValue(this, Convert.ToBoolean(fields[property.Name].Trim()), null); else if (property.PropertyType == typeof(int)) - property.SetValue(this, Convert.ToInt32(fields[property.Name]), null); + property.SetValue(this, Convert.ToInt32(fields[property.Name].Trim()), null); else if (property.PropertyType.BaseType == typeof(Enum)) - property.SetValue(this, Convert.ToInt32(fields[property.Name]), null); + property.SetValue(this, Enum.Parse(property.PropertyType ,fields[property.Name]), null); else property.SetValue(this, fields[property.Name], null); } From 3aec3f6910f59a8ef4355d32abf0e89a97ba352e Mon Sep 17 00:00:00 2001 From: RFTD Date: Tue, 16 Jul 2013 20:47:17 -0400 Subject: [PATCH 5/5] Brazilian Portuquese NBug Configurator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [*] Renomeado a Normal form para CustomPreviewForm. [+] Adicionado a opção de remover um destinatario. [-] Corrigido erro ao carregar configuração que duplicava os destinatários, se houvesse um arquivo de configuração no mesmo diretório do executável. English NBug Configurator [*] Renamed Normal form to CustomPreviewForm. [+] Adi an remove option for destinations. [-] Fix bug when load a config, and have a config file in program path. --- ...igner.cs => CustomPreviewForm.Designer.cs} | 2 +- .../{Normal.cs => CustomPreviewForm.cs} | 4 +- .../{Normal.resx => CustomPreviewForm.resx} | 0 NBug.Configurator/MainForm.Designer.cs | 1775 ++++++++--------- NBug.Configurator/MainForm.cs | 52 +- NBug.Configurator/MainForm.resx | 2 +- NBug.Configurator/NBug.Configurator.csproj | 10 +- .../SubmitPanels/PanelLoader.Designer.cs | 113 +- NBug.Configurator/SubmitPanels/PanelLoader.cs | 28 +- NBug/Settings.cs | 2 +- 10 files changed, 1011 insertions(+), 977 deletions(-) rename NBug.Configurator/{Normal.Designer.cs => CustomPreviewForm.Designer.cs} (99%) rename NBug.Configurator/{Normal.cs => CustomPreviewForm.cs} (94%) rename NBug.Configurator/{Normal.resx => CustomPreviewForm.resx} (100%) diff --git a/NBug.Configurator/Normal.Designer.cs b/NBug.Configurator/CustomPreviewForm.Designer.cs similarity index 99% rename from NBug.Configurator/Normal.Designer.cs rename to NBug.Configurator/CustomPreviewForm.Designer.cs index 3a290cf..3c55f2e 100644 --- a/NBug.Configurator/Normal.Designer.cs +++ b/NBug.Configurator/CustomPreviewForm.Designer.cs @@ -1,6 +1,6 @@ namespace NBug.Configurator { - partial class Normal + partial class CustomPreviewForm { /// /// Required designer variable. diff --git a/NBug.Configurator/Normal.cs b/NBug.Configurator/CustomPreviewForm.cs similarity index 94% rename from NBug.Configurator/Normal.cs rename to NBug.Configurator/CustomPreviewForm.cs index 7bdefd5..93f7585 100644 --- a/NBug.Configurator/Normal.cs +++ b/NBug.Configurator/CustomPreviewForm.cs @@ -11,11 +11,11 @@ namespace NBug.Configurator using System; using System.Windows.Forms; - internal partial class Normal : Form + internal partial class CustomPreviewForm : Form { private UIDialogResult uiDialogResult; - internal Normal() + internal CustomPreviewForm() { InitializeComponent(); } diff --git a/NBug.Configurator/Normal.resx b/NBug.Configurator/CustomPreviewForm.resx similarity index 100% rename from NBug.Configurator/Normal.resx rename to NBug.Configurator/CustomPreviewForm.resx diff --git a/NBug.Configurator/MainForm.Designer.cs b/NBug.Configurator/MainForm.Designer.cs index 1de070d..c6eeec4 100644 --- a/NBug.Configurator/MainForm.Designer.cs +++ b/NBug.Configurator/MainForm.Designer.cs @@ -28,563 +28,548 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); - this.mainStatusStrip = new System.Windows.Forms.StatusStrip(); - this.status = new System.Windows.Forms.ToolStripStatusLabel(); - this.mainTabs = new System.Windows.Forms.TabControl(); - this.generalTabPage = new System.Windows.Forms.TabPage(); - this.nbugConfigurationGroupBox = new System.Windows.Forms.GroupBox(); - this.releaseModeCheckBox = new System.Windows.Forms.CheckBox(); - this.internalLoggerGroupBox = new System.Windows.Forms.GroupBox(); - this.networkTraceWarningLabel = new System.Windows.Forms.Label(); - this.writeNetworkTraceToFileCheckBox = new System.Windows.Forms.CheckBox(); - this.writeLogToDiskCheckBox = new System.Windows.Forms.CheckBox(); - this.reportSubmitterGroupBox = new System.Windows.Forms.GroupBox(); - this.encryptConnectionStringsCheckBox = new System.Windows.Forms.CheckBox(); - this.reportQueueGroupBox = new System.Windows.Forms.GroupBox(); - this.storagePathLabel = new System.Windows.Forms.Label(); - this.storagePathComboBox = new System.Windows.Forms.ComboBox(); - this.customPathLabel = new System.Windows.Forms.Label(); - this.customStoragePathTextBox = new System.Windows.Forms.TextBox(); - this.customPathTipLabel = new System.Windows.Forms.Label(); - this.reportingGroupBox = new System.Windows.Forms.GroupBox(); - this.miniDumpTypeLabel = new System.Windows.Forms.Label(); - this.miniDumpTypeComboBox = new System.Windows.Forms.ComboBox(); - this.sleepBeforeSendLabel = new System.Windows.Forms.Label(); - this.sleepBeforeSendNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.maxQueuedReportsLabel = new System.Windows.Forms.Label(); - this.maxQueuedReportsNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.sleepBeforeSendUnitLabel = new System.Windows.Forms.Label(); - this.stopReportingAfterLabel = new System.Windows.Forms.Label(); - this.stopReportingAfterUnitLabel = new System.Windows.Forms.Label(); - this.stopReportingAfterNumericUpDown = new System.Windows.Forms.NumericUpDown(); - this.userInterfaceGroupBox = new System.Windows.Forms.GroupBox(); - this.previewButton = new System.Windows.Forms.Button(); - this.uiModeLabel = new System.Windows.Forms.Label(); - this.uiModeComboBox = new System.Windows.Forms.ComboBox(); - this.uiProviderLabel = new System.Windows.Forms.Label(); - this.uiProviderComboBox = new System.Windows.Forms.ComboBox(); - this.advancedTabPage = new System.Windows.Forms.TabPage(); - this.exceptionHandlingGroupBox = new System.Windows.Forms.GroupBox(); - this.exitApplicationImmediatelyWarningLabel = new System.Windows.Forms.Label(); - this.handleProcessCorruptedStateExceptionsCheckBox = new System.Windows.Forms.CheckBox(); - this.exitApplicationImmediatelyCheckBox = new System.Windows.Forms.CheckBox(); - this.warningLabel = new System.Windows.Forms.Label(); - this.submit1TabPage = new System.Windows.Forms.TabPage(); - this.fileToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.externalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.embeddedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator(); - this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.importToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.testAppToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.projectHomeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.onlineDocumentationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.discussionForumToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.bugTrackerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); - this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.mainMenuStrip = new System.Windows.Forms.MenuStrip(); - this.destinationsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.addToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.saveButton = new System.Windows.Forms.Button(); - this.closeButton = new System.Windows.Forms.Button(); - this.mainToolTips = new System.Windows.Forms.ToolTip(this.components); - this.mainHelpProvider = new System.Windows.Forms.HelpProvider(); - this.runTestAppButton = new System.Windows.Forms.Button(); - this.settingsFileGroupBox = new System.Windows.Forms.GroupBox(); - this.fileTextBox = new System.Windows.Forms.TextBox(); - this.pathLabel = new System.Windows.Forms.Label(); - this.createButton = new System.Windows.Forms.Button(); - this.openButton = new System.Windows.Forms.Button(); - this.createFileDialog = new System.Windows.Forms.SaveFileDialog(); - this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); - this.addDestinationButton = new System.Windows.Forms.Button(); - this.panelLoader1 = new NBug.Configurator.SubmitPanels.PanelLoader(); - this.mainStatusStrip.SuspendLayout(); - this.mainTabs.SuspendLayout(); - this.generalTabPage.SuspendLayout(); - this.nbugConfigurationGroupBox.SuspendLayout(); - this.internalLoggerGroupBox.SuspendLayout(); - this.reportSubmitterGroupBox.SuspendLayout(); - this.reportQueueGroupBox.SuspendLayout(); - this.reportingGroupBox.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.sleepBeforeSendNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.maxQueuedReportsNumericUpDown)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.stopReportingAfterNumericUpDown)).BeginInit(); - this.userInterfaceGroupBox.SuspendLayout(); - this.advancedTabPage.SuspendLayout(); - this.exceptionHandlingGroupBox.SuspendLayout(); - this.submit1TabPage.SuspendLayout(); - this.mainMenuStrip.SuspendLayout(); - this.settingsFileGroupBox.SuspendLayout(); - this.SuspendLayout(); - // - // mainStatusStrip - // - this.mainStatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); + this.mainStatusStrip = new System.Windows.Forms.StatusStrip(); + this.status = new System.Windows.Forms.ToolStripStatusLabel(); + this.mainTabs = new System.Windows.Forms.TabControl(); + this.generalTabPage = new System.Windows.Forms.TabPage(); + this.nbugConfigurationGroupBox = new System.Windows.Forms.GroupBox(); + this.releaseModeCheckBox = new System.Windows.Forms.CheckBox(); + this.internalLoggerGroupBox = new System.Windows.Forms.GroupBox(); + this.networkTraceWarningLabel = new System.Windows.Forms.Label(); + this.writeNetworkTraceToFileCheckBox = new System.Windows.Forms.CheckBox(); + this.writeLogToDiskCheckBox = new System.Windows.Forms.CheckBox(); + this.reportSubmitterGroupBox = new System.Windows.Forms.GroupBox(); + this.encryptConnectionStringsCheckBox = new System.Windows.Forms.CheckBox(); + this.reportQueueGroupBox = new System.Windows.Forms.GroupBox(); + this.storagePathLabel = new System.Windows.Forms.Label(); + this.storagePathComboBox = new System.Windows.Forms.ComboBox(); + this.customPathLabel = new System.Windows.Forms.Label(); + this.customStoragePathTextBox = new System.Windows.Forms.TextBox(); + this.customPathTipLabel = new System.Windows.Forms.Label(); + this.reportingGroupBox = new System.Windows.Forms.GroupBox(); + this.miniDumpTypeLabel = new System.Windows.Forms.Label(); + this.miniDumpTypeComboBox = new System.Windows.Forms.ComboBox(); + this.sleepBeforeSendLabel = new System.Windows.Forms.Label(); + this.sleepBeforeSendNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.maxQueuedReportsLabel = new System.Windows.Forms.Label(); + this.maxQueuedReportsNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.sleepBeforeSendUnitLabel = new System.Windows.Forms.Label(); + this.stopReportingAfterLabel = new System.Windows.Forms.Label(); + this.stopReportingAfterUnitLabel = new System.Windows.Forms.Label(); + this.stopReportingAfterNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.userInterfaceGroupBox = new System.Windows.Forms.GroupBox(); + this.previewButton = new System.Windows.Forms.Button(); + this.uiModeLabel = new System.Windows.Forms.Label(); + this.uiModeComboBox = new System.Windows.Forms.ComboBox(); + this.uiProviderLabel = new System.Windows.Forms.Label(); + this.uiProviderComboBox = new System.Windows.Forms.ComboBox(); + this.advancedTabPage = new System.Windows.Forms.TabPage(); + this.exceptionHandlingGroupBox = new System.Windows.Forms.GroupBox(); + this.exitApplicationImmediatelyWarningLabel = new System.Windows.Forms.Label(); + this.handleProcessCorruptedStateExceptionsCheckBox = new System.Windows.Forms.CheckBox(); + this.exitApplicationImmediatelyCheckBox = new System.Windows.Forms.CheckBox(); + this.warningLabel = new System.Windows.Forms.Label(); + this.fileToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.externalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.embeddedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator(); + this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.importToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.testAppToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.projectHomeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.onlineDocumentationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.discussionForumToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.bugTrackerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); + this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.mainMenuStrip = new System.Windows.Forms.MenuStrip(); + this.destinationsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.addToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.saveButton = new System.Windows.Forms.Button(); + this.closeButton = new System.Windows.Forms.Button(); + this.mainToolTips = new System.Windows.Forms.ToolTip(this.components); + this.mainHelpProvider = new System.Windows.Forms.HelpProvider(); + this.runTestAppButton = new System.Windows.Forms.Button(); + this.settingsFileGroupBox = new System.Windows.Forms.GroupBox(); + this.fileTextBox = new System.Windows.Forms.TextBox(); + this.pathLabel = new System.Windows.Forms.Label(); + this.createButton = new System.Windows.Forms.Button(); + this.openButton = new System.Windows.Forms.Button(); + this.createFileDialog = new System.Windows.Forms.SaveFileDialog(); + this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); + this.addDestinationButton = new System.Windows.Forms.Button(); + this.mainStatusStrip.SuspendLayout(); + this.mainTabs.SuspendLayout(); + this.generalTabPage.SuspendLayout(); + this.nbugConfigurationGroupBox.SuspendLayout(); + this.internalLoggerGroupBox.SuspendLayout(); + this.reportSubmitterGroupBox.SuspendLayout(); + this.reportQueueGroupBox.SuspendLayout(); + this.reportingGroupBox.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.sleepBeforeSendNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.maxQueuedReportsNumericUpDown)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.stopReportingAfterNumericUpDown)).BeginInit(); + this.userInterfaceGroupBox.SuspendLayout(); + this.advancedTabPage.SuspendLayout(); + this.exceptionHandlingGroupBox.SuspendLayout(); + this.mainMenuStrip.SuspendLayout(); + this.settingsFileGroupBox.SuspendLayout(); + this.SuspendLayout(); + // + // mainStatusStrip + // + this.mainStatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.status}); - this.mainStatusStrip.Location = new System.Drawing.Point(0, 472); - this.mainStatusStrip.Name = "mainStatusStrip"; - this.mainStatusStrip.Size = new System.Drawing.Size(703, 22); - this.mainStatusStrip.TabIndex = 1; - // - // status - // - this.status.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.status.Name = "status"; - this.status.Size = new System.Drawing.Size(0, 17); - // - // mainTabs - // - this.mainTabs.Controls.Add(this.generalTabPage); - this.mainTabs.Controls.Add(this.advancedTabPage); - this.mainTabs.Controls.Add(this.submit1TabPage); - this.mainTabs.Enabled = false; - this.mainTabs.Location = new System.Drawing.Point(12, 105); - this.mainTabs.Name = "mainTabs"; - this.mainTabs.SelectedIndex = 0; - this.mainTabs.Size = new System.Drawing.Size(679, 326); - this.mainTabs.TabIndex = 2; - // - // generalTabPage - // - this.generalTabPage.Controls.Add(this.nbugConfigurationGroupBox); - this.generalTabPage.Controls.Add(this.internalLoggerGroupBox); - this.generalTabPage.Controls.Add(this.reportSubmitterGroupBox); - this.generalTabPage.Controls.Add(this.reportQueueGroupBox); - this.generalTabPage.Controls.Add(this.reportingGroupBox); - this.generalTabPage.Controls.Add(this.userInterfaceGroupBox); - this.generalTabPage.Location = new System.Drawing.Point(4, 22); - this.generalTabPage.Name = "generalTabPage"; - this.generalTabPage.Padding = new System.Windows.Forms.Padding(3); - this.generalTabPage.Size = new System.Drawing.Size(671, 300); - this.generalTabPage.TabIndex = 0; - this.generalTabPage.Text = "General"; - this.generalTabPage.UseVisualStyleBackColor = true; - // - // nbugConfigurationGroupBox - // - this.nbugConfigurationGroupBox.Controls.Add(this.releaseModeCheckBox); - this.nbugConfigurationGroupBox.Location = new System.Drawing.Point(473, 224); - this.nbugConfigurationGroupBox.Name = "nbugConfigurationGroupBox"; - this.nbugConfigurationGroupBox.Size = new System.Drawing.Size(140, 48); - this.nbugConfigurationGroupBox.TabIndex = 26; - this.nbugConfigurationGroupBox.TabStop = false; - this.nbugConfigurationGroupBox.Text = "NBug Configuration"; - // - // releaseModeCheckBox - // - this.releaseModeCheckBox.AutoSize = true; - this.releaseModeCheckBox.Location = new System.Drawing.Point(12, 19); - this.releaseModeCheckBox.Name = "releaseModeCheckBox"; - this.releaseModeCheckBox.Size = new System.Drawing.Size(95, 17); - this.releaseModeCheckBox.TabIndex = 21; - this.releaseModeCheckBox.Text = "Release Mode"; - this.mainToolTips.SetToolTip(this.releaseModeCheckBox, resources.GetString("releaseModeCheckBox.ToolTip")); - this.releaseModeCheckBox.UseVisualStyleBackColor = true; - // - // internalLoggerGroupBox - // - this.internalLoggerGroupBox.Controls.Add(this.networkTraceWarningLabel); - this.internalLoggerGroupBox.Controls.Add(this.writeNetworkTraceToFileCheckBox); - this.internalLoggerGroupBox.Controls.Add(this.writeLogToDiskCheckBox); - this.internalLoggerGroupBox.Location = new System.Drawing.Point(297, 131); - this.internalLoggerGroupBox.Name = "internalLoggerGroupBox"; - this.internalLoggerGroupBox.Size = new System.Drawing.Size(316, 85); - this.internalLoggerGroupBox.TabIndex = 26; - this.internalLoggerGroupBox.TabStop = false; - this.internalLoggerGroupBox.Text = "Internal Logger"; - // - // networkTraceWarningLabel - // - this.networkTraceWarningLabel.AutoSize = true; - this.networkTraceWarningLabel.Enabled = false; - this.networkTraceWarningLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.networkTraceWarningLabel.Location = new System.Drawing.Point(30, 62); - this.networkTraceWarningLabel.Name = "networkTraceWarningLabel"; - this.networkTraceWarningLabel.Size = new System.Drawing.Size(236, 12); - this.networkTraceWarningLabel.TabIndex = 23; - this.networkTraceWarningLabel.Text = "(Warning: This overrides element)"; - // - // writeNetworkTraceToFileCheckBox - // - this.writeNetworkTraceToFileCheckBox.AutoSize = true; - this.writeNetworkTraceToFileCheckBox.Enabled = false; - this.writeNetworkTraceToFileCheckBox.Location = new System.Drawing.Point(11, 42); - this.writeNetworkTraceToFileCheckBox.Name = "writeNetworkTraceToFileCheckBox"; - this.writeNetworkTraceToFileCheckBox.Size = new System.Drawing.Size(277, 17); - this.writeNetworkTraceToFileCheckBox.TabIndex = 22; - this.writeNetworkTraceToFileCheckBox.Text = "Write Network Trace Info to \"NBug.Network.log\" File"; - this.mainToolTips.SetToolTip(this.writeNetworkTraceToFileCheckBox, "Indicates whether to enable network tracing and write the network trace log to \"N" + + this.mainStatusStrip.Location = new System.Drawing.Point(0, 472); + this.mainStatusStrip.Name = "mainStatusStrip"; + this.mainStatusStrip.Size = new System.Drawing.Size(703, 22); + this.mainStatusStrip.TabIndex = 1; + // + // status + // + this.status.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.status.Name = "status"; + this.status.Size = new System.Drawing.Size(0, 17); + // + // mainTabs + // + this.mainTabs.Controls.Add(this.generalTabPage); + this.mainTabs.Controls.Add(this.advancedTabPage); + this.mainTabs.Enabled = false; + this.mainTabs.Location = new System.Drawing.Point(12, 105); + this.mainTabs.Name = "mainTabs"; + this.mainTabs.SelectedIndex = 0; + this.mainTabs.Size = new System.Drawing.Size(679, 326); + this.mainTabs.TabIndex = 2; + // + // generalTabPage + // + this.generalTabPage.Controls.Add(this.nbugConfigurationGroupBox); + this.generalTabPage.Controls.Add(this.internalLoggerGroupBox); + this.generalTabPage.Controls.Add(this.reportSubmitterGroupBox); + this.generalTabPage.Controls.Add(this.reportQueueGroupBox); + this.generalTabPage.Controls.Add(this.reportingGroupBox); + this.generalTabPage.Controls.Add(this.userInterfaceGroupBox); + this.generalTabPage.Location = new System.Drawing.Point(4, 22); + this.generalTabPage.Name = "generalTabPage"; + this.generalTabPage.Padding = new System.Windows.Forms.Padding(3); + this.generalTabPage.Size = new System.Drawing.Size(671, 300); + this.generalTabPage.TabIndex = 0; + this.generalTabPage.Text = "General"; + this.generalTabPage.UseVisualStyleBackColor = true; + // + // nbugConfigurationGroupBox + // + this.nbugConfigurationGroupBox.Controls.Add(this.releaseModeCheckBox); + this.nbugConfigurationGroupBox.Location = new System.Drawing.Point(473, 224); + this.nbugConfigurationGroupBox.Name = "nbugConfigurationGroupBox"; + this.nbugConfigurationGroupBox.Size = new System.Drawing.Size(140, 48); + this.nbugConfigurationGroupBox.TabIndex = 26; + this.nbugConfigurationGroupBox.TabStop = false; + this.nbugConfigurationGroupBox.Text = "NBug Configuration"; + // + // releaseModeCheckBox + // + this.releaseModeCheckBox.AutoSize = true; + this.releaseModeCheckBox.Location = new System.Drawing.Point(12, 19); + this.releaseModeCheckBox.Name = "releaseModeCheckBox"; + this.releaseModeCheckBox.Size = new System.Drawing.Size(95, 17); + this.releaseModeCheckBox.TabIndex = 21; + this.releaseModeCheckBox.Text = "Release Mode"; + this.mainToolTips.SetToolTip(this.releaseModeCheckBox, resources.GetString("releaseModeCheckBox.ToolTip")); + this.releaseModeCheckBox.UseVisualStyleBackColor = true; + // + // internalLoggerGroupBox + // + this.internalLoggerGroupBox.Controls.Add(this.networkTraceWarningLabel); + this.internalLoggerGroupBox.Controls.Add(this.writeNetworkTraceToFileCheckBox); + this.internalLoggerGroupBox.Controls.Add(this.writeLogToDiskCheckBox); + this.internalLoggerGroupBox.Location = new System.Drawing.Point(297, 131); + this.internalLoggerGroupBox.Name = "internalLoggerGroupBox"; + this.internalLoggerGroupBox.Size = new System.Drawing.Size(316, 85); + this.internalLoggerGroupBox.TabIndex = 26; + this.internalLoggerGroupBox.TabStop = false; + this.internalLoggerGroupBox.Text = "Internal Logger"; + // + // networkTraceWarningLabel + // + this.networkTraceWarningLabel.AutoSize = true; + this.networkTraceWarningLabel.Enabled = false; + this.networkTraceWarningLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.networkTraceWarningLabel.Location = new System.Drawing.Point(30, 62); + this.networkTraceWarningLabel.Name = "networkTraceWarningLabel"; + this.networkTraceWarningLabel.Size = new System.Drawing.Size(236, 12); + this.networkTraceWarningLabel.TabIndex = 23; + this.networkTraceWarningLabel.Text = "(Warning: This overrides element)"; + // + // writeNetworkTraceToFileCheckBox + // + this.writeNetworkTraceToFileCheckBox.AutoSize = true; + this.writeNetworkTraceToFileCheckBox.Enabled = false; + this.writeNetworkTraceToFileCheckBox.Location = new System.Drawing.Point(11, 42); + this.writeNetworkTraceToFileCheckBox.Name = "writeNetworkTraceToFileCheckBox"; + this.writeNetworkTraceToFileCheckBox.Size = new System.Drawing.Size(277, 17); + this.writeNetworkTraceToFileCheckBox.TabIndex = 22; + this.writeNetworkTraceToFileCheckBox.Text = "Write Network Trace Info to \"NBug.Network.log\" File"; + this.mainToolTips.SetToolTip(this.writeNetworkTraceToFileCheckBox, "Indicates whether to enable network tracing and write the network trace log to \"N" + "Bug.Network.log\" file.\r\nThis can only be enabled if appending settings to applic" + "ation \"app.config\" file."); - this.writeNetworkTraceToFileCheckBox.UseVisualStyleBackColor = true; - // - // writeLogToDiskCheckBox - // - this.writeLogToDiskCheckBox.AutoSize = true; - this.writeLogToDiskCheckBox.Location = new System.Drawing.Point(11, 19); - this.writeLogToDiskCheckBox.Name = "writeLogToDiskCheckBox"; - this.writeLogToDiskCheckBox.Size = new System.Drawing.Size(163, 17); - this.writeLogToDiskCheckBox.TabIndex = 21; - this.writeLogToDiskCheckBox.Text = "Write \"NBug.log\" File to Disk"; - this.mainToolTips.SetToolTip(this.writeLogToDiskCheckBox, resources.GetString("writeLogToDiskCheckBox.ToolTip")); - this.writeLogToDiskCheckBox.UseVisualStyleBackColor = true; - // - // reportSubmitterGroupBox - // - this.reportSubmitterGroupBox.Controls.Add(this.encryptConnectionStringsCheckBox); - this.reportSubmitterGroupBox.Location = new System.Drawing.Point(297, 224); - this.reportSubmitterGroupBox.Name = "reportSubmitterGroupBox"; - this.reportSubmitterGroupBox.Size = new System.Drawing.Size(170, 48); - this.reportSubmitterGroupBox.TabIndex = 25; - this.reportSubmitterGroupBox.TabStop = false; - this.reportSubmitterGroupBox.Text = "Report Submitter"; - // - // encryptConnectionStringsCheckBox - // - this.encryptConnectionStringsCheckBox.AutoSize = true; - this.encryptConnectionStringsCheckBox.Location = new System.Drawing.Point(11, 19); - this.encryptConnectionStringsCheckBox.Name = "encryptConnectionStringsCheckBox"; - this.encryptConnectionStringsCheckBox.Size = new System.Drawing.Size(154, 17); - this.encryptConnectionStringsCheckBox.TabIndex = 21; - this.encryptConnectionStringsCheckBox.Text = "Encrypt Connection Strings"; - this.mainToolTips.SetToolTip(this.encryptConnectionStringsCheckBox, resources.GetString("encryptConnectionStringsCheckBox.ToolTip")); - this.encryptConnectionStringsCheckBox.UseVisualStyleBackColor = true; - // - // reportQueueGroupBox - // - this.reportQueueGroupBox.Controls.Add(this.storagePathLabel); - this.reportQueueGroupBox.Controls.Add(this.storagePathComboBox); - this.reportQueueGroupBox.Controls.Add(this.customPathLabel); - this.reportQueueGroupBox.Controls.Add(this.customStoragePathTextBox); - this.reportQueueGroupBox.Controls.Add(this.customPathTipLabel); - this.reportQueueGroupBox.Location = new System.Drawing.Point(297, 13); - this.reportQueueGroupBox.Name = "reportQueueGroupBox"; - this.reportQueueGroupBox.Size = new System.Drawing.Size(316, 112); - this.reportQueueGroupBox.TabIndex = 24; - this.reportQueueGroupBox.TabStop = false; - this.reportQueueGroupBox.Text = "Report Queue"; - // - // storagePathLabel - // - this.storagePathLabel.AutoSize = true; - this.storagePathLabel.Location = new System.Drawing.Point(6, 25); - this.storagePathLabel.Name = "storagePathLabel"; - this.storagePathLabel.Size = new System.Drawing.Size(131, 13); - this.storagePathLabel.TabIndex = 12; - this.storagePathLabel.Text = "Report Files Storage Path:"; - // - // storagePathComboBox - // - this.storagePathComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.storagePathComboBox.FormattingEnabled = true; - this.storagePathComboBox.Location = new System.Drawing.Point(143, 22); - this.storagePathComboBox.Name = "storagePathComboBox"; - this.storagePathComboBox.Size = new System.Drawing.Size(153, 21); - this.storagePathComboBox.TabIndex = 13; - this.mainToolTips.SetToolTip(this.storagePathComboBox, "Gets or sets the bug report items storage path. After and unhandled exception occ" + + this.writeNetworkTraceToFileCheckBox.UseVisualStyleBackColor = true; + // + // writeLogToDiskCheckBox + // + this.writeLogToDiskCheckBox.AutoSize = true; + this.writeLogToDiskCheckBox.Location = new System.Drawing.Point(11, 19); + this.writeLogToDiskCheckBox.Name = "writeLogToDiskCheckBox"; + this.writeLogToDiskCheckBox.Size = new System.Drawing.Size(163, 17); + this.writeLogToDiskCheckBox.TabIndex = 21; + this.writeLogToDiskCheckBox.Text = "Write \"NBug.log\" File to Disk"; + this.mainToolTips.SetToolTip(this.writeLogToDiskCheckBox, resources.GetString("writeLogToDiskCheckBox.ToolTip")); + this.writeLogToDiskCheckBox.UseVisualStyleBackColor = true; + // + // reportSubmitterGroupBox + // + this.reportSubmitterGroupBox.Controls.Add(this.encryptConnectionStringsCheckBox); + this.reportSubmitterGroupBox.Location = new System.Drawing.Point(297, 224); + this.reportSubmitterGroupBox.Name = "reportSubmitterGroupBox"; + this.reportSubmitterGroupBox.Size = new System.Drawing.Size(170, 48); + this.reportSubmitterGroupBox.TabIndex = 25; + this.reportSubmitterGroupBox.TabStop = false; + this.reportSubmitterGroupBox.Text = "Report Submitter"; + // + // encryptConnectionStringsCheckBox + // + this.encryptConnectionStringsCheckBox.AutoSize = true; + this.encryptConnectionStringsCheckBox.Location = new System.Drawing.Point(11, 19); + this.encryptConnectionStringsCheckBox.Name = "encryptConnectionStringsCheckBox"; + this.encryptConnectionStringsCheckBox.Size = new System.Drawing.Size(154, 17); + this.encryptConnectionStringsCheckBox.TabIndex = 21; + this.encryptConnectionStringsCheckBox.Text = "Encrypt Connection Strings"; + this.mainToolTips.SetToolTip(this.encryptConnectionStringsCheckBox, resources.GetString("encryptConnectionStringsCheckBox.ToolTip")); + this.encryptConnectionStringsCheckBox.UseVisualStyleBackColor = true; + // + // reportQueueGroupBox + // + this.reportQueueGroupBox.Controls.Add(this.storagePathLabel); + this.reportQueueGroupBox.Controls.Add(this.storagePathComboBox); + this.reportQueueGroupBox.Controls.Add(this.customPathLabel); + this.reportQueueGroupBox.Controls.Add(this.customStoragePathTextBox); + this.reportQueueGroupBox.Controls.Add(this.customPathTipLabel); + this.reportQueueGroupBox.Location = new System.Drawing.Point(297, 13); + this.reportQueueGroupBox.Name = "reportQueueGroupBox"; + this.reportQueueGroupBox.Size = new System.Drawing.Size(316, 112); + this.reportQueueGroupBox.TabIndex = 24; + this.reportQueueGroupBox.TabStop = false; + this.reportQueueGroupBox.Text = "Report Queue"; + // + // storagePathLabel + // + this.storagePathLabel.AutoSize = true; + this.storagePathLabel.Location = new System.Drawing.Point(6, 25); + this.storagePathLabel.Name = "storagePathLabel"; + this.storagePathLabel.Size = new System.Drawing.Size(131, 13); + this.storagePathLabel.TabIndex = 12; + this.storagePathLabel.Text = "Report Files Storage Path:"; + // + // storagePathComboBox + // + this.storagePathComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.storagePathComboBox.FormattingEnabled = true; + this.storagePathComboBox.Location = new System.Drawing.Point(143, 22); + this.storagePathComboBox.Name = "storagePathComboBox"; + this.storagePathComboBox.Size = new System.Drawing.Size(153, 21); + this.storagePathComboBox.TabIndex = 13; + this.mainToolTips.SetToolTip(this.storagePathComboBox, "Gets or sets the bug report items storage path. After and unhandled exception occ" + "urs, the bug reports"); - this.storagePathComboBox.SelectedValueChanged += new System.EventHandler(this.StoragePathComboBox_SelectedValueChanged); - // - // customPathLabel - // - this.customPathLabel.AutoSize = true; - this.customPathLabel.Location = new System.Drawing.Point(6, 63); - this.customPathLabel.Name = "customPathLabel"; - this.customPathLabel.Size = new System.Drawing.Size(70, 13); - this.customPathLabel.TabIndex = 18; - this.customPathLabel.Text = "Custom Path:"; - // - // customStoragePathTextBox - // - this.customStoragePathTextBox.Enabled = false; - this.customStoragePathTextBox.Location = new System.Drawing.Point(82, 60); - this.customStoragePathTextBox.Name = "customStoragePathTextBox"; - this.customStoragePathTextBox.Size = new System.Drawing.Size(214, 20); - this.customStoragePathTextBox.TabIndex = 19; - this.mainToolTips.SetToolTip(this.customStoragePathTextBox, "Custom storage path. This maybe a full path or a relative one to the application\'" + + this.storagePathComboBox.SelectedValueChanged += new System.EventHandler(this.StoragePathComboBox_SelectedValueChanged); + // + // customPathLabel + // + this.customPathLabel.AutoSize = true; + this.customPathLabel.Location = new System.Drawing.Point(6, 63); + this.customPathLabel.Name = "customPathLabel"; + this.customPathLabel.Size = new System.Drawing.Size(70, 13); + this.customPathLabel.TabIndex = 18; + this.customPathLabel.Text = "Custom Path:"; + // + // customStoragePathTextBox + // + this.customStoragePathTextBox.Enabled = false; + this.customStoragePathTextBox.Location = new System.Drawing.Point(82, 60); + this.customStoragePathTextBox.Name = "customStoragePathTextBox"; + this.customStoragePathTextBox.Size = new System.Drawing.Size(214, 20); + this.customStoragePathTextBox.TabIndex = 19; + this.mainToolTips.SetToolTip(this.customStoragePathTextBox, "Custom storage path. This maybe a full path or a relative one to the application\'" + "s CWD."); - // - // customPathTipLabel - // - this.customPathTipLabel.AutoSize = true; - this.customPathTipLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.customPathTipLabel.Location = new System.Drawing.Point(95, 83); - this.customPathTipLabel.Name = "customPathTipLabel"; - this.customPathTipLabel.Size = new System.Drawing.Size(191, 12); - this.customPathTipLabel.TabIndex = 20; - this.customPathTipLabel.Text = "(uses System.IO.Path.GetFullPath() method)"; - // - // reportingGroupBox - // - this.reportingGroupBox.Controls.Add(this.miniDumpTypeLabel); - this.reportingGroupBox.Controls.Add(this.miniDumpTypeComboBox); - this.reportingGroupBox.Controls.Add(this.sleepBeforeSendLabel); - this.reportingGroupBox.Controls.Add(this.sleepBeforeSendNumericUpDown); - this.reportingGroupBox.Controls.Add(this.maxQueuedReportsLabel); - this.reportingGroupBox.Controls.Add(this.maxQueuedReportsNumericUpDown); - this.reportingGroupBox.Controls.Add(this.sleepBeforeSendUnitLabel); - this.reportingGroupBox.Controls.Add(this.stopReportingAfterLabel); - this.reportingGroupBox.Controls.Add(this.stopReportingAfterUnitLabel); - this.reportingGroupBox.Controls.Add(this.stopReportingAfterNumericUpDown); - this.reportingGroupBox.Location = new System.Drawing.Point(19, 108); - this.reportingGroupBox.Name = "reportingGroupBox"; - this.reportingGroupBox.Size = new System.Drawing.Size(246, 164); - this.reportingGroupBox.TabIndex = 23; - this.reportingGroupBox.TabStop = false; - this.reportingGroupBox.Text = "Reporting"; - // - // miniDumpTypeLabel - // - this.miniDumpTypeLabel.AutoSize = true; - this.miniDumpTypeLabel.Location = new System.Drawing.Point(6, 25); - this.miniDumpTypeLabel.Name = "miniDumpTypeLabel"; - this.miniDumpTypeLabel.Size = new System.Drawing.Size(84, 13); - this.miniDumpTypeLabel.TabIndex = 2; - this.miniDumpTypeLabel.Text = "MiniDump Type:"; - // - // miniDumpTypeComboBox - // - this.miniDumpTypeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.miniDumpTypeComboBox.FormattingEnabled = true; - this.miniDumpTypeComboBox.Location = new System.Drawing.Point(123, 22); - this.miniDumpTypeComboBox.Name = "miniDumpTypeComboBox"; - this.miniDumpTypeComboBox.Size = new System.Drawing.Size(109, 21); - this.miniDumpTypeComboBox.TabIndex = 3; - this.mainToolTips.SetToolTip(this.miniDumpTypeComboBox, "Defines memory dump type with a specific detail level.\r\nNone: No memory dump is g" + + // + // customPathTipLabel + // + this.customPathTipLabel.AutoSize = true; + this.customPathTipLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.customPathTipLabel.Location = new System.Drawing.Point(95, 83); + this.customPathTipLabel.Name = "customPathTipLabel"; + this.customPathTipLabel.Size = new System.Drawing.Size(191, 12); + this.customPathTipLabel.TabIndex = 20; + this.customPathTipLabel.Text = "(uses System.IO.Path.GetFullPath() method)"; + // + // reportingGroupBox + // + this.reportingGroupBox.Controls.Add(this.miniDumpTypeLabel); + this.reportingGroupBox.Controls.Add(this.miniDumpTypeComboBox); + this.reportingGroupBox.Controls.Add(this.sleepBeforeSendLabel); + this.reportingGroupBox.Controls.Add(this.sleepBeforeSendNumericUpDown); + this.reportingGroupBox.Controls.Add(this.maxQueuedReportsLabel); + this.reportingGroupBox.Controls.Add(this.maxQueuedReportsNumericUpDown); + this.reportingGroupBox.Controls.Add(this.sleepBeforeSendUnitLabel); + this.reportingGroupBox.Controls.Add(this.stopReportingAfterLabel); + this.reportingGroupBox.Controls.Add(this.stopReportingAfterUnitLabel); + this.reportingGroupBox.Controls.Add(this.stopReportingAfterNumericUpDown); + this.reportingGroupBox.Location = new System.Drawing.Point(19, 108); + this.reportingGroupBox.Name = "reportingGroupBox"; + this.reportingGroupBox.Size = new System.Drawing.Size(246, 164); + this.reportingGroupBox.TabIndex = 23; + this.reportingGroupBox.TabStop = false; + this.reportingGroupBox.Text = "Reporting"; + // + // miniDumpTypeLabel + // + this.miniDumpTypeLabel.AutoSize = true; + this.miniDumpTypeLabel.Location = new System.Drawing.Point(6, 25); + this.miniDumpTypeLabel.Name = "miniDumpTypeLabel"; + this.miniDumpTypeLabel.Size = new System.Drawing.Size(84, 13); + this.miniDumpTypeLabel.TabIndex = 2; + this.miniDumpTypeLabel.Text = "MiniDump Type:"; + // + // miniDumpTypeComboBox + // + this.miniDumpTypeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.miniDumpTypeComboBox.FormattingEnabled = true; + this.miniDumpTypeComboBox.Location = new System.Drawing.Point(123, 22); + this.miniDumpTypeComboBox.Name = "miniDumpTypeComboBox"; + this.miniDumpTypeComboBox.Size = new System.Drawing.Size(109, 21); + this.miniDumpTypeComboBox.TabIndex = 3; + this.mainToolTips.SetToolTip(this.miniDumpTypeComboBox, "Defines memory dump type with a specific detail level.\r\nNone: No memory dump is g" + "enerated.\r\nTiny: Dump size ~200KB compressed.\r\nNormal: Dump size ~20MB compresse" + "d.\r\nFull: Dump size ~100MB compressed."); - // - // sleepBeforeSendLabel - // - this.sleepBeforeSendLabel.AutoSize = true; - this.sleepBeforeSendLabel.Location = new System.Drawing.Point(6, 58); - this.sleepBeforeSendLabel.Name = "sleepBeforeSendLabel"; - this.sleepBeforeSendLabel.Size = new System.Drawing.Size(99, 13); - this.sleepBeforeSendLabel.TabIndex = 4; - this.sleepBeforeSendLabel.Text = "Sleep Before Send:"; - // - // sleepBeforeSendNumericUpDown - // - this.sleepBeforeSendNumericUpDown.Location = new System.Drawing.Point(123, 56); - this.sleepBeforeSendNumericUpDown.Name = "sleepBeforeSendNumericUpDown"; - this.sleepBeforeSendNumericUpDown.Size = new System.Drawing.Size(61, 20); - this.sleepBeforeSendNumericUpDown.TabIndex = 5; - this.mainToolTips.SetToolTip(this.sleepBeforeSendNumericUpDown, resources.GetString("sleepBeforeSendNumericUpDown.ToolTip")); - // - // maxQueuedReportsLabel - // - this.maxQueuedReportsLabel.AutoSize = true; - this.maxQueuedReportsLabel.Location = new System.Drawing.Point(6, 95); - this.maxQueuedReportsLabel.Name = "maxQueuedReportsLabel"; - this.maxQueuedReportsLabel.Size = new System.Drawing.Size(111, 13); - this.maxQueuedReportsLabel.TabIndex = 6; - this.maxQueuedReportsLabel.Text = "Max Queued Reports:"; - // - // maxQueuedReportsNumericUpDown - // - this.maxQueuedReportsNumericUpDown.Location = new System.Drawing.Point(123, 93); - this.maxQueuedReportsNumericUpDown.Name = "maxQueuedReportsNumericUpDown"; - this.maxQueuedReportsNumericUpDown.Size = new System.Drawing.Size(61, 20); - this.maxQueuedReportsNumericUpDown.TabIndex = 7; - this.mainToolTips.SetToolTip(this.maxQueuedReportsNumericUpDown, "The number of bug reports that can be queued for submission.\r\nAfter an exception " + + // + // sleepBeforeSendLabel + // + this.sleepBeforeSendLabel.AutoSize = true; + this.sleepBeforeSendLabel.Location = new System.Drawing.Point(6, 58); + this.sleepBeforeSendLabel.Name = "sleepBeforeSendLabel"; + this.sleepBeforeSendLabel.Size = new System.Drawing.Size(99, 13); + this.sleepBeforeSendLabel.TabIndex = 4; + this.sleepBeforeSendLabel.Text = "Sleep Before Send:"; + // + // sleepBeforeSendNumericUpDown + // + this.sleepBeforeSendNumericUpDown.Location = new System.Drawing.Point(123, 56); + this.sleepBeforeSendNumericUpDown.Name = "sleepBeforeSendNumericUpDown"; + this.sleepBeforeSendNumericUpDown.Size = new System.Drawing.Size(61, 20); + this.sleepBeforeSendNumericUpDown.TabIndex = 5; + this.mainToolTips.SetToolTip(this.sleepBeforeSendNumericUpDown, resources.GetString("sleepBeforeSendNumericUpDown.ToolTip")); + // + // maxQueuedReportsLabel + // + this.maxQueuedReportsLabel.AutoSize = true; + this.maxQueuedReportsLabel.Location = new System.Drawing.Point(6, 95); + this.maxQueuedReportsLabel.Name = "maxQueuedReportsLabel"; + this.maxQueuedReportsLabel.Size = new System.Drawing.Size(111, 13); + this.maxQueuedReportsLabel.TabIndex = 6; + this.maxQueuedReportsLabel.Text = "Max Queued Reports:"; + // + // maxQueuedReportsNumericUpDown + // + this.maxQueuedReportsNumericUpDown.Location = new System.Drawing.Point(123, 93); + this.maxQueuedReportsNumericUpDown.Name = "maxQueuedReportsNumericUpDown"; + this.maxQueuedReportsNumericUpDown.Size = new System.Drawing.Size(61, 20); + this.maxQueuedReportsNumericUpDown.TabIndex = 7; + this.mainToolTips.SetToolTip(this.maxQueuedReportsNumericUpDown, "The number of bug reports that can be queued for submission.\r\nAfter an exception " + "occurs, a bug report is queued to be send at the next application restart."); - // - // sleepBeforeSendUnitLabel - // - this.sleepBeforeSendUnitLabel.AutoSize = true; - this.sleepBeforeSendUnitLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.sleepBeforeSendUnitLabel.Location = new System.Drawing.Point(188, 59); - this.sleepBeforeSendUnitLabel.Name = "sleepBeforeSendUnitLabel"; - this.sleepBeforeSendUnitLabel.Size = new System.Drawing.Size(46, 12); - this.sleepBeforeSendUnitLabel.TabIndex = 8; - this.sleepBeforeSendUnitLabel.Text = "(seconds)"; - // - // stopReportingAfterLabel - // - this.stopReportingAfterLabel.AutoSize = true; - this.stopReportingAfterLabel.Location = new System.Drawing.Point(6, 132); - this.stopReportingAfterLabel.Name = "stopReportingAfterLabel"; - this.stopReportingAfterLabel.Size = new System.Drawing.Size(106, 13); - this.stopReportingAfterLabel.TabIndex = 9; - this.stopReportingAfterLabel.Text = "Stop Reporting After:"; - // - // stopReportingAfterUnitLabel - // - this.stopReportingAfterUnitLabel.AutoSize = true; - this.stopReportingAfterUnitLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.stopReportingAfterUnitLabel.Location = new System.Drawing.Point(188, 133); - this.stopReportingAfterUnitLabel.Name = "stopReportingAfterUnitLabel"; - this.stopReportingAfterUnitLabel.Size = new System.Drawing.Size(31, 12); - this.stopReportingAfterUnitLabel.TabIndex = 11; - this.stopReportingAfterUnitLabel.Text = "(days)"; - // - // stopReportingAfterNumericUpDown - // - this.stopReportingAfterNumericUpDown.Location = new System.Drawing.Point(123, 130); - this.stopReportingAfterNumericUpDown.Name = "stopReportingAfterNumericUpDown"; - this.stopReportingAfterNumericUpDown.Size = new System.Drawing.Size(61, 20); - this.stopReportingAfterNumericUpDown.TabIndex = 10; - this.mainToolTips.SetToolTip(this.stopReportingAfterNumericUpDown, "The number of days that NBug will be collecting bug reports for the application.\r" + + // + // sleepBeforeSendUnitLabel + // + this.sleepBeforeSendUnitLabel.AutoSize = true; + this.sleepBeforeSendUnitLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.sleepBeforeSendUnitLabel.Location = new System.Drawing.Point(188, 59); + this.sleepBeforeSendUnitLabel.Name = "sleepBeforeSendUnitLabel"; + this.sleepBeforeSendUnitLabel.Size = new System.Drawing.Size(46, 12); + this.sleepBeforeSendUnitLabel.TabIndex = 8; + this.sleepBeforeSendUnitLabel.Text = "(seconds)"; + // + // stopReportingAfterLabel + // + this.stopReportingAfterLabel.AutoSize = true; + this.stopReportingAfterLabel.Location = new System.Drawing.Point(6, 132); + this.stopReportingAfterLabel.Name = "stopReportingAfterLabel"; + this.stopReportingAfterLabel.Size = new System.Drawing.Size(106, 13); + this.stopReportingAfterLabel.TabIndex = 9; + this.stopReportingAfterLabel.Text = "Stop Reporting After:"; + // + // stopReportingAfterUnitLabel + // + this.stopReportingAfterUnitLabel.AutoSize = true; + this.stopReportingAfterUnitLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.stopReportingAfterUnitLabel.Location = new System.Drawing.Point(188, 133); + this.stopReportingAfterUnitLabel.Name = "stopReportingAfterUnitLabel"; + this.stopReportingAfterUnitLabel.Size = new System.Drawing.Size(31, 12); + this.stopReportingAfterUnitLabel.TabIndex = 11; + this.stopReportingAfterUnitLabel.Text = "(days)"; + // + // stopReportingAfterNumericUpDown + // + this.stopReportingAfterNumericUpDown.Location = new System.Drawing.Point(123, 130); + this.stopReportingAfterNumericUpDown.Name = "stopReportingAfterNumericUpDown"; + this.stopReportingAfterNumericUpDown.Size = new System.Drawing.Size(61, 20); + this.stopReportingAfterNumericUpDown.TabIndex = 10; + this.mainToolTips.SetToolTip(this.stopReportingAfterNumericUpDown, "The number of days that NBug will be collecting bug reports for the application.\r" + "\nThis prevents generating bug reports for obselete versions of applications afte" + "r given number of days."); - // - // userInterfaceGroupBox - // - this.userInterfaceGroupBox.Controls.Add(this.previewButton); - this.userInterfaceGroupBox.Controls.Add(this.uiModeLabel); - this.userInterfaceGroupBox.Controls.Add(this.uiModeComboBox); - this.userInterfaceGroupBox.Controls.Add(this.uiProviderLabel); - this.userInterfaceGroupBox.Controls.Add(this.uiProviderComboBox); - this.userInterfaceGroupBox.Location = new System.Drawing.Point(19, 13); - this.userInterfaceGroupBox.Name = "userInterfaceGroupBox"; - this.userInterfaceGroupBox.Size = new System.Drawing.Size(246, 89); - this.userInterfaceGroupBox.TabIndex = 22; - this.userInterfaceGroupBox.TabStop = false; - this.userInterfaceGroupBox.Text = "User Interface"; - // - // previewButton - // - this.previewButton.Enabled = false; - this.previewButton.Location = new System.Drawing.Point(179, 54); - this.previewButton.Name = "previewButton"; - this.previewButton.Size = new System.Drawing.Size(53, 21); - this.previewButton.TabIndex = 4; - this.previewButton.Text = "Preview"; - this.previewButton.UseVisualStyleBackColor = true; - this.previewButton.Click += new System.EventHandler(this.PreviewButton_Click); - // - // uiModeLabel - // - this.uiModeLabel.AutoSize = true; - this.uiModeLabel.Location = new System.Drawing.Point(6, 24); - this.uiModeLabel.Name = "uiModeLabel"; - this.uiModeLabel.Size = new System.Drawing.Size(48, 13); - this.uiModeLabel.TabIndex = 0; - this.uiModeLabel.Text = "UIMode:"; - // - // uiModeComboBox - // - this.uiModeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.uiModeComboBox.FormattingEnabled = true; - this.uiModeComboBox.Location = new System.Drawing.Point(81, 21); - this.uiModeComboBox.Name = "uiModeComboBox"; - this.uiModeComboBox.Size = new System.Drawing.Size(151, 21); - this.uiModeComboBox.TabIndex = 1; - this.mainToolTips.SetToolTip(this.uiModeComboBox, resources.GetString("uiModeComboBox.ToolTip")); - this.uiModeComboBox.SelectedIndexChanged += new System.EventHandler(this.UIModeComboBox_SelectedIndexChanged); - // - // uiProviderLabel - // - this.uiProviderLabel.AutoSize = true; - this.uiProviderLabel.Location = new System.Drawing.Point(6, 57); - this.uiProviderLabel.Name = "uiProviderLabel"; - this.uiProviderLabel.Size = new System.Drawing.Size(63, 13); - this.uiProviderLabel.TabIndex = 2; - this.uiProviderLabel.Text = "UI Provider:"; - // - // uiProviderComboBox - // - this.uiProviderComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.uiProviderComboBox.FormattingEnabled = true; - this.uiProviderComboBox.Location = new System.Drawing.Point(81, 54); - this.uiProviderComboBox.Name = "uiProviderComboBox"; - this.uiProviderComboBox.Size = new System.Drawing.Size(92, 21); - this.uiProviderComboBox.TabIndex = 3; - this.mainToolTips.SetToolTip(this.uiProviderComboBox, resources.GetString("uiProviderComboBox.ToolTip")); - this.uiProviderComboBox.SelectedIndexChanged += new System.EventHandler(this.UIProviderComboBox_SelectedIndexChanged); - // - // advancedTabPage - // - this.advancedTabPage.Controls.Add(this.exceptionHandlingGroupBox); - this.advancedTabPage.Controls.Add(this.warningLabel); - this.advancedTabPage.Location = new System.Drawing.Point(4, 22); - this.advancedTabPage.Name = "advancedTabPage"; - this.advancedTabPage.Padding = new System.Windows.Forms.Padding(3); - this.advancedTabPage.Size = new System.Drawing.Size(671, 300); - this.advancedTabPage.TabIndex = 6; - this.advancedTabPage.Text = "Advanced"; - this.advancedTabPage.UseVisualStyleBackColor = true; - // - // exceptionHandlingGroupBox - // - this.exceptionHandlingGroupBox.Controls.Add(this.exitApplicationImmediatelyWarningLabel); - this.exceptionHandlingGroupBox.Controls.Add(this.handleProcessCorruptedStateExceptionsCheckBox); - this.exceptionHandlingGroupBox.Controls.Add(this.exitApplicationImmediatelyCheckBox); - this.exceptionHandlingGroupBox.Location = new System.Drawing.Point(19, 70); - this.exceptionHandlingGroupBox.Name = "exceptionHandlingGroupBox"; - this.exceptionHandlingGroupBox.Size = new System.Drawing.Size(255, 90); - this.exceptionHandlingGroupBox.TabIndex = 27; - this.exceptionHandlingGroupBox.TabStop = false; - this.exceptionHandlingGroupBox.Text = "Exception Handling"; - // - // exitApplicationImmediatelyWarningLabel - // - this.exitApplicationImmediatelyWarningLabel.AutoSize = true; - this.exitApplicationImmediatelyWarningLabel.Enabled = false; - this.exitApplicationImmediatelyWarningLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.exitApplicationImmediatelyWarningLabel.Location = new System.Drawing.Point(29, 37); - this.exitApplicationImmediatelyWarningLabel.Name = "exitApplicationImmediatelyWarningLabel"; - this.exitApplicationImmediatelyWarningLabel.Size = new System.Drawing.Size(171, 12); - this.exitApplicationImmediatelyWarningLabel.TabIndex = 23; - this.exitApplicationImmediatelyWarningLabel.Text = "(this is only valid when UIMode = None;)"; - // - // handleProcessCorruptedStateExceptionsCheckBox - // - this.handleProcessCorruptedStateExceptionsCheckBox.AutoSize = true; - this.handleProcessCorruptedStateExceptionsCheckBox.Location = new System.Drawing.Point(11, 59); - this.handleProcessCorruptedStateExceptionsCheckBox.Name = "handleProcessCorruptedStateExceptionsCheckBox"; - this.handleProcessCorruptedStateExceptionsCheckBox.Size = new System.Drawing.Size(233, 17); - this.handleProcessCorruptedStateExceptionsCheckBox.TabIndex = 22; - this.handleProcessCorruptedStateExceptionsCheckBox.Text = "Handle Process Corrupted State Exceptions"; - this.mainToolTips.SetToolTip(this.handleProcessCorruptedStateExceptionsCheckBox, resources.GetString("handleProcessCorruptedStateExceptionsCheckBox.ToolTip")); - this.handleProcessCorruptedStateExceptionsCheckBox.UseVisualStyleBackColor = true; - // - // exitApplicationImmediatelyCheckBox - // - this.exitApplicationImmediatelyCheckBox.AutoSize = true; - this.exitApplicationImmediatelyCheckBox.Enabled = false; - this.exitApplicationImmediatelyCheckBox.Location = new System.Drawing.Point(11, 19); - this.exitApplicationImmediatelyCheckBox.Name = "exitApplicationImmediatelyCheckBox"; - this.exitApplicationImmediatelyCheckBox.Size = new System.Drawing.Size(156, 17); - this.exitApplicationImmediatelyCheckBox.TabIndex = 21; - this.exitApplicationImmediatelyCheckBox.Text = "Exit Application Immediately"; - this.mainToolTips.SetToolTip(this.exitApplicationImmediatelyCheckBox, resources.GetString("exitApplicationImmediatelyCheckBox.ToolTip")); - this.exitApplicationImmediatelyCheckBox.UseVisualStyleBackColor = true; - // - // warningLabel - // - this.warningLabel.Location = new System.Drawing.Point(19, 17); - this.warningLabel.Name = "warningLabel"; - this.warningLabel.Size = new System.Drawing.Size(630, 41); - this.warningLabel.TabIndex = 0; - this.warningLabel.Text = resources.GetString("warningLabel.Text"); - // - // submit1TabPage - // - this.submit1TabPage.Controls.Add(this.panelLoader1); - this.submit1TabPage.Location = new System.Drawing.Point(4, 22); - this.submit1TabPage.Name = "submit1TabPage"; - this.submit1TabPage.Padding = new System.Windows.Forms.Padding(3); - this.submit1TabPage.Size = new System.Drawing.Size(671, 300); - this.submit1TabPage.TabIndex = 1; - this.submit1TabPage.Text = "Submit #1"; - this.submit1TabPage.UseVisualStyleBackColor = true; - // - // fileToolStripMenuItem1 - // - this.fileToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + // + // userInterfaceGroupBox + // + this.userInterfaceGroupBox.Controls.Add(this.previewButton); + this.userInterfaceGroupBox.Controls.Add(this.uiModeLabel); + this.userInterfaceGroupBox.Controls.Add(this.uiModeComboBox); + this.userInterfaceGroupBox.Controls.Add(this.uiProviderLabel); + this.userInterfaceGroupBox.Controls.Add(this.uiProviderComboBox); + this.userInterfaceGroupBox.Location = new System.Drawing.Point(19, 13); + this.userInterfaceGroupBox.Name = "userInterfaceGroupBox"; + this.userInterfaceGroupBox.Size = new System.Drawing.Size(246, 89); + this.userInterfaceGroupBox.TabIndex = 22; + this.userInterfaceGroupBox.TabStop = false; + this.userInterfaceGroupBox.Text = "User Interface"; + // + // previewButton + // + this.previewButton.Enabled = false; + this.previewButton.Location = new System.Drawing.Point(179, 54); + this.previewButton.Name = "previewButton"; + this.previewButton.Size = new System.Drawing.Size(53, 21); + this.previewButton.TabIndex = 4; + this.previewButton.Text = "Preview"; + this.previewButton.UseVisualStyleBackColor = true; + this.previewButton.Click += new System.EventHandler(this.PreviewButton_Click); + // + // uiModeLabel + // + this.uiModeLabel.AutoSize = true; + this.uiModeLabel.Location = new System.Drawing.Point(6, 24); + this.uiModeLabel.Name = "uiModeLabel"; + this.uiModeLabel.Size = new System.Drawing.Size(48, 13); + this.uiModeLabel.TabIndex = 0; + this.uiModeLabel.Text = "UIMode:"; + // + // uiModeComboBox + // + this.uiModeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.uiModeComboBox.FormattingEnabled = true; + this.uiModeComboBox.Location = new System.Drawing.Point(81, 21); + this.uiModeComboBox.Name = "uiModeComboBox"; + this.uiModeComboBox.Size = new System.Drawing.Size(151, 21); + this.uiModeComboBox.TabIndex = 1; + this.mainToolTips.SetToolTip(this.uiModeComboBox, resources.GetString("uiModeComboBox.ToolTip")); + this.uiModeComboBox.SelectedIndexChanged += new System.EventHandler(this.UIModeComboBox_SelectedIndexChanged); + // + // uiProviderLabel + // + this.uiProviderLabel.AutoSize = true; + this.uiProviderLabel.Location = new System.Drawing.Point(6, 57); + this.uiProviderLabel.Name = "uiProviderLabel"; + this.uiProviderLabel.Size = new System.Drawing.Size(63, 13); + this.uiProviderLabel.TabIndex = 2; + this.uiProviderLabel.Text = "UI Provider:"; + // + // uiProviderComboBox + // + this.uiProviderComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.uiProviderComboBox.FormattingEnabled = true; + this.uiProviderComboBox.Location = new System.Drawing.Point(81, 54); + this.uiProviderComboBox.Name = "uiProviderComboBox"; + this.uiProviderComboBox.Size = new System.Drawing.Size(92, 21); + this.uiProviderComboBox.TabIndex = 3; + this.mainToolTips.SetToolTip(this.uiProviderComboBox, resources.GetString("uiProviderComboBox.ToolTip")); + this.uiProviderComboBox.SelectedIndexChanged += new System.EventHandler(this.UIProviderComboBox_SelectedIndexChanged); + // + // advancedTabPage + // + this.advancedTabPage.Controls.Add(this.exceptionHandlingGroupBox); + this.advancedTabPage.Controls.Add(this.warningLabel); + this.advancedTabPage.Location = new System.Drawing.Point(4, 22); + this.advancedTabPage.Name = "advancedTabPage"; + this.advancedTabPage.Padding = new System.Windows.Forms.Padding(3); + this.advancedTabPage.Size = new System.Drawing.Size(671, 300); + this.advancedTabPage.TabIndex = 6; + this.advancedTabPage.Text = "Advanced"; + this.advancedTabPage.UseVisualStyleBackColor = true; + // + // exceptionHandlingGroupBox + // + this.exceptionHandlingGroupBox.Controls.Add(this.exitApplicationImmediatelyWarningLabel); + this.exceptionHandlingGroupBox.Controls.Add(this.handleProcessCorruptedStateExceptionsCheckBox); + this.exceptionHandlingGroupBox.Controls.Add(this.exitApplicationImmediatelyCheckBox); + this.exceptionHandlingGroupBox.Location = new System.Drawing.Point(19, 70); + this.exceptionHandlingGroupBox.Name = "exceptionHandlingGroupBox"; + this.exceptionHandlingGroupBox.Size = new System.Drawing.Size(255, 90); + this.exceptionHandlingGroupBox.TabIndex = 27; + this.exceptionHandlingGroupBox.TabStop = false; + this.exceptionHandlingGroupBox.Text = "Exception Handling"; + // + // exitApplicationImmediatelyWarningLabel + // + this.exitApplicationImmediatelyWarningLabel.AutoSize = true; + this.exitApplicationImmediatelyWarningLabel.Enabled = false; + this.exitApplicationImmediatelyWarningLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.exitApplicationImmediatelyWarningLabel.Location = new System.Drawing.Point(29, 37); + this.exitApplicationImmediatelyWarningLabel.Name = "exitApplicationImmediatelyWarningLabel"; + this.exitApplicationImmediatelyWarningLabel.Size = new System.Drawing.Size(171, 12); + this.exitApplicationImmediatelyWarningLabel.TabIndex = 23; + this.exitApplicationImmediatelyWarningLabel.Text = "(this is only valid when UIMode = None;)"; + // + // handleProcessCorruptedStateExceptionsCheckBox + // + this.handleProcessCorruptedStateExceptionsCheckBox.AutoSize = true; + this.handleProcessCorruptedStateExceptionsCheckBox.Location = new System.Drawing.Point(11, 59); + this.handleProcessCorruptedStateExceptionsCheckBox.Name = "handleProcessCorruptedStateExceptionsCheckBox"; + this.handleProcessCorruptedStateExceptionsCheckBox.Size = new System.Drawing.Size(233, 17); + this.handleProcessCorruptedStateExceptionsCheckBox.TabIndex = 22; + this.handleProcessCorruptedStateExceptionsCheckBox.Text = "Handle Process Corrupted State Exceptions"; + this.mainToolTips.SetToolTip(this.handleProcessCorruptedStateExceptionsCheckBox, resources.GetString("handleProcessCorruptedStateExceptionsCheckBox.ToolTip")); + this.handleProcessCorruptedStateExceptionsCheckBox.UseVisualStyleBackColor = true; + // + // exitApplicationImmediatelyCheckBox + // + this.exitApplicationImmediatelyCheckBox.AutoSize = true; + this.exitApplicationImmediatelyCheckBox.Enabled = false; + this.exitApplicationImmediatelyCheckBox.Location = new System.Drawing.Point(11, 19); + this.exitApplicationImmediatelyCheckBox.Name = "exitApplicationImmediatelyCheckBox"; + this.exitApplicationImmediatelyCheckBox.Size = new System.Drawing.Size(156, 17); + this.exitApplicationImmediatelyCheckBox.TabIndex = 21; + this.exitApplicationImmediatelyCheckBox.Text = "Exit Application Immediately"; + this.mainToolTips.SetToolTip(this.exitApplicationImmediatelyCheckBox, resources.GetString("exitApplicationImmediatelyCheckBox.ToolTip")); + this.exitApplicationImmediatelyCheckBox.UseVisualStyleBackColor = true; + // + // warningLabel + // + this.warningLabel.Location = new System.Drawing.Point(19, 17); + this.warningLabel.Name = "warningLabel"; + this.warningLabel.Size = new System.Drawing.Size(630, 41); + this.warningLabel.TabIndex = 0; + this.warningLabel.Text = resources.GetString("warningLabel.Text"); + // + // fileToolStripMenuItem1 + // + this.fileToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.newToolStripMenuItem, this.openToolStripMenuItem, this.toolStripSeparator, @@ -594,371 +579,359 @@ private void InitializeComponent() this.importToolStripMenuItem, this.toolStripSeparator2, this.exitToolStripMenuItem}); - this.fileToolStripMenuItem1.Name = "fileToolStripMenuItem1"; - this.fileToolStripMenuItem1.Size = new System.Drawing.Size(37, 20); - this.fileToolStripMenuItem1.Text = "&File"; - // - // newToolStripMenuItem - // - this.newToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.fileToolStripMenuItem1.Name = "fileToolStripMenuItem1"; + this.fileToolStripMenuItem1.Size = new System.Drawing.Size(37, 20); + this.fileToolStripMenuItem1.Text = "&File"; + // + // newToolStripMenuItem + // + this.newToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.externalToolStripMenuItem, this.embeddedToolStripMenuItem}); - this.newToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripMenuItem.Image"))); - this.newToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; - this.newToolStripMenuItem.Name = "newToolStripMenuItem"; - this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); - this.newToolStripMenuItem.Size = new System.Drawing.Size(146, 22); - this.newToolStripMenuItem.Text = "&New"; - // - // externalToolStripMenuItem - // - this.externalToolStripMenuItem.Name = "externalToolStripMenuItem"; - this.externalToolStripMenuItem.Size = new System.Drawing.Size(199, 22); - this.externalToolStripMenuItem.Text = "External (NBug.config)"; - this.externalToolStripMenuItem.Click += new System.EventHandler(this.ExternalToolStripMenuItem_Click); - // - // embeddedToolStripMenuItem - // - this.embeddedToolStripMenuItem.Name = "embeddedToolStripMenuItem"; - this.embeddedToolStripMenuItem.Size = new System.Drawing.Size(199, 22); - this.embeddedToolStripMenuItem.Text = "Embedded (app.config)"; - this.embeddedToolStripMenuItem.Click += new System.EventHandler(this.EmbeddedToolStripMenuItem_Click); - // - // openToolStripMenuItem - // - this.openToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripMenuItem.Image"))); - this.openToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; - this.openToolStripMenuItem.Name = "openToolStripMenuItem"; - this.openToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); - this.openToolStripMenuItem.Size = new System.Drawing.Size(146, 22); - this.openToolStripMenuItem.Text = "&Open"; - this.openToolStripMenuItem.Click += new System.EventHandler(this.OpenButton_Click); - // - // toolStripSeparator - // - this.toolStripSeparator.Name = "toolStripSeparator"; - this.toolStripSeparator.Size = new System.Drawing.Size(143, 6); - // - // saveToolStripMenuItem - // - this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image"))); - this.saveToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; - this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; - this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); - this.saveToolStripMenuItem.Size = new System.Drawing.Size(146, 22); - this.saveToolStripMenuItem.Text = "&Save"; - this.saveToolStripMenuItem.Click += new System.EventHandler(this.SaveButton_Click); - // - // saveAsToolStripMenuItem - // - this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem"; - this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(146, 22); - this.saveAsToolStripMenuItem.Text = "Save &As"; - this.saveAsToolStripMenuItem.Visible = false; - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(143, 6); - this.toolStripSeparator1.Visible = false; - // - // importToolStripMenuItem - // - this.importToolStripMenuItem.Name = "importToolStripMenuItem"; - this.importToolStripMenuItem.Size = new System.Drawing.Size(146, 22); - this.importToolStripMenuItem.Text = "&Import"; - this.importToolStripMenuItem.Visible = false; - // - // toolStripSeparator2 - // - this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(143, 6); - // - // exitToolStripMenuItem - // - this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; - this.exitToolStripMenuItem.Size = new System.Drawing.Size(146, 22); - this.exitToolStripMenuItem.Text = "E&xit"; - this.exitToolStripMenuItem.Click += new System.EventHandler(this.CloseButton_Click); - // - // toolsToolStripMenuItem - // - this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.newToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripMenuItem.Image"))); + this.newToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; + this.newToolStripMenuItem.Name = "newToolStripMenuItem"; + this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); + this.newToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.newToolStripMenuItem.Text = "&New"; + // + // externalToolStripMenuItem + // + this.externalToolStripMenuItem.Name = "externalToolStripMenuItem"; + this.externalToolStripMenuItem.Size = new System.Drawing.Size(199, 22); + this.externalToolStripMenuItem.Text = "External (NBug.config)"; + this.externalToolStripMenuItem.Click += new System.EventHandler(this.ExternalToolStripMenuItem_Click); + // + // embeddedToolStripMenuItem + // + this.embeddedToolStripMenuItem.Name = "embeddedToolStripMenuItem"; + this.embeddedToolStripMenuItem.Size = new System.Drawing.Size(199, 22); + this.embeddedToolStripMenuItem.Text = "Embedded (app.config)"; + this.embeddedToolStripMenuItem.Click += new System.EventHandler(this.EmbeddedToolStripMenuItem_Click); + // + // openToolStripMenuItem + // + this.openToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripMenuItem.Image"))); + this.openToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; + this.openToolStripMenuItem.Name = "openToolStripMenuItem"; + this.openToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); + this.openToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.openToolStripMenuItem.Text = "&Open"; + this.openToolStripMenuItem.Click += new System.EventHandler(this.OpenButton_Click); + // + // toolStripSeparator + // + this.toolStripSeparator.Name = "toolStripSeparator"; + this.toolStripSeparator.Size = new System.Drawing.Size(149, 6); + // + // saveToolStripMenuItem + // + this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image"))); + this.saveToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; + this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; + this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); + this.saveToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.saveToolStripMenuItem.Text = "&Save"; + this.saveToolStripMenuItem.Click += new System.EventHandler(this.SaveButton_Click); + // + // saveAsToolStripMenuItem + // + this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem"; + this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.saveAsToolStripMenuItem.Text = "Save &As"; + this.saveAsToolStripMenuItem.Visible = false; + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(149, 6); + this.toolStripSeparator1.Visible = false; + // + // importToolStripMenuItem + // + this.importToolStripMenuItem.Name = "importToolStripMenuItem"; + this.importToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.importToolStripMenuItem.Text = "&Import"; + this.importToolStripMenuItem.Visible = false; + // + // toolStripSeparator2 + // + this.toolStripSeparator2.Name = "toolStripSeparator2"; + this.toolStripSeparator2.Size = new System.Drawing.Size(149, 6); + // + // exitToolStripMenuItem + // + this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; + this.exitToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.exitToolStripMenuItem.Text = "E&xit"; + this.exitToolStripMenuItem.Click += new System.EventHandler(this.CloseButton_Click); + // + // toolsToolStripMenuItem + // + this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.testAppToolStripMenuItem}); - this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem"; - this.toolsToolStripMenuItem.Size = new System.Drawing.Size(48, 20); - this.toolsToolStripMenuItem.Text = "&Tools"; - // - // testAppToolStripMenuItem - // - this.testAppToolStripMenuItem.Image = global::NBug.Configurator.Properties.Resources.run; - this.testAppToolStripMenuItem.Name = "testAppToolStripMenuItem"; - this.testAppToolStripMenuItem.Size = new System.Drawing.Size(185, 22); - this.testAppToolStripMenuItem.Text = "Save && Run &Test App"; - this.testAppToolStripMenuItem.Click += new System.EventHandler(this.RunTestAppButton_Click); - // - // helpToolStripMenuItem - // - this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem"; + this.toolsToolStripMenuItem.Size = new System.Drawing.Size(48, 20); + this.toolsToolStripMenuItem.Text = "&Tools"; + // + // testAppToolStripMenuItem + // + this.testAppToolStripMenuItem.Image = global::NBug.Configurator.Properties.Resources.run; + this.testAppToolStripMenuItem.Name = "testAppToolStripMenuItem"; + this.testAppToolStripMenuItem.Size = new System.Drawing.Size(185, 22); + this.testAppToolStripMenuItem.Text = "Save && Run &Test App"; + this.testAppToolStripMenuItem.Click += new System.EventHandler(this.RunTestAppButton_Click); + // + // helpToolStripMenuItem + // + this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.projectHomeToolStripMenuItem, this.onlineDocumentationToolStripMenuItem, this.discussionForumToolStripMenuItem, this.bugTrackerToolStripMenuItem, this.toolStripSeparator5, this.aboutToolStripMenuItem}); - this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; - this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); - this.helpToolStripMenuItem.Text = "&Help"; - // - // projectHomeToolStripMenuItem - // - this.projectHomeToolStripMenuItem.Name = "projectHomeToolStripMenuItem"; - this.projectHomeToolStripMenuItem.Size = new System.Drawing.Size(195, 22); - this.projectHomeToolStripMenuItem.Tag = "http://www.nbusy.com/projects/nbug"; - this.projectHomeToolStripMenuItem.Text = "Project &Home"; - this.projectHomeToolStripMenuItem.Click += new System.EventHandler(this.ProjectHomeToolStripMenuItem_Click); - // - // onlineDocumentationToolStripMenuItem - // - this.onlineDocumentationToolStripMenuItem.Image = global::NBug.Configurator.Properties.Resources.help; - this.onlineDocumentationToolStripMenuItem.Name = "onlineDocumentationToolStripMenuItem"; - this.onlineDocumentationToolStripMenuItem.Size = new System.Drawing.Size(195, 22); - this.onlineDocumentationToolStripMenuItem.Tag = "http://www.nbusy.com/projects/nbug/documentation"; - this.onlineDocumentationToolStripMenuItem.Text = "Online &Documentation"; - this.onlineDocumentationToolStripMenuItem.Click += new System.EventHandler(this.OnlineDocumentationToolStripMenuItem_Click); - // - // discussionForumToolStripMenuItem - // - this.discussionForumToolStripMenuItem.Name = "discussionForumToolStripMenuItem"; - this.discussionForumToolStripMenuItem.Size = new System.Drawing.Size(195, 22); - this.discussionForumToolStripMenuItem.Tag = "http://www.nbusy.com/forum/f11/"; - this.discussionForumToolStripMenuItem.Text = "Discussion &Forum"; - this.discussionForumToolStripMenuItem.Click += new System.EventHandler(this.DiscussionForumToolStripMenuItem_Click); - // - // bugTrackerToolStripMenuItem - // - this.bugTrackerToolStripMenuItem.Name = "bugTrackerToolStripMenuItem"; - this.bugTrackerToolStripMenuItem.Size = new System.Drawing.Size(195, 22); - this.bugTrackerToolStripMenuItem.Tag = "http://www.nbusy.com/tracker/projects/nbug"; - this.bugTrackerToolStripMenuItem.Text = "&Bug Tracker"; - this.bugTrackerToolStripMenuItem.Click += new System.EventHandler(this.BugTrackerToolStripMenuItem_Click); - // - // toolStripSeparator5 - // - this.toolStripSeparator5.Name = "toolStripSeparator5"; - this.toolStripSeparator5.Size = new System.Drawing.Size(192, 6); - // - // aboutToolStripMenuItem - // - this.aboutToolStripMenuItem.Image = global::NBug.Configurator.Properties.Resources.Icon_16; - this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; - this.aboutToolStripMenuItem.Size = new System.Drawing.Size(195, 22); - this.aboutToolStripMenuItem.Text = "&About NBug"; - this.aboutToolStripMenuItem.Click += new System.EventHandler(this.AboutToolStripMenuItem_Click); - // - // mainMenuStrip - // - this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; + this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); + this.helpToolStripMenuItem.Text = "&Help"; + // + // projectHomeToolStripMenuItem + // + this.projectHomeToolStripMenuItem.Name = "projectHomeToolStripMenuItem"; + this.projectHomeToolStripMenuItem.Size = new System.Drawing.Size(195, 22); + this.projectHomeToolStripMenuItem.Tag = "http://www.nbusy.com/projects/nbug"; + this.projectHomeToolStripMenuItem.Text = "Project &Home"; + this.projectHomeToolStripMenuItem.Click += new System.EventHandler(this.ProjectHomeToolStripMenuItem_Click); + // + // onlineDocumentationToolStripMenuItem + // + this.onlineDocumentationToolStripMenuItem.Image = global::NBug.Configurator.Properties.Resources.help; + this.onlineDocumentationToolStripMenuItem.Name = "onlineDocumentationToolStripMenuItem"; + this.onlineDocumentationToolStripMenuItem.Size = new System.Drawing.Size(195, 22); + this.onlineDocumentationToolStripMenuItem.Tag = "http://www.nbusy.com/projects/nbug/documentation"; + this.onlineDocumentationToolStripMenuItem.Text = "Online &Documentation"; + this.onlineDocumentationToolStripMenuItem.Click += new System.EventHandler(this.OnlineDocumentationToolStripMenuItem_Click); + // + // discussionForumToolStripMenuItem + // + this.discussionForumToolStripMenuItem.Name = "discussionForumToolStripMenuItem"; + this.discussionForumToolStripMenuItem.Size = new System.Drawing.Size(195, 22); + this.discussionForumToolStripMenuItem.Tag = "http://www.nbusy.com/forum/f11/"; + this.discussionForumToolStripMenuItem.Text = "Discussion &Forum"; + this.discussionForumToolStripMenuItem.Click += new System.EventHandler(this.DiscussionForumToolStripMenuItem_Click); + // + // bugTrackerToolStripMenuItem + // + this.bugTrackerToolStripMenuItem.Name = "bugTrackerToolStripMenuItem"; + this.bugTrackerToolStripMenuItem.Size = new System.Drawing.Size(195, 22); + this.bugTrackerToolStripMenuItem.Tag = "http://www.nbusy.com/tracker/projects/nbug"; + this.bugTrackerToolStripMenuItem.Text = "&Bug Tracker"; + this.bugTrackerToolStripMenuItem.Click += new System.EventHandler(this.BugTrackerToolStripMenuItem_Click); + // + // toolStripSeparator5 + // + this.toolStripSeparator5.Name = "toolStripSeparator5"; + this.toolStripSeparator5.Size = new System.Drawing.Size(192, 6); + // + // aboutToolStripMenuItem + // + this.aboutToolStripMenuItem.Image = global::NBug.Configurator.Properties.Resources.Icon_16; + this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; + this.aboutToolStripMenuItem.Size = new System.Drawing.Size(195, 22); + this.aboutToolStripMenuItem.Text = "&About NBug"; + this.aboutToolStripMenuItem.Click += new System.EventHandler(this.AboutToolStripMenuItem_Click); + // + // mainMenuStrip + // + this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem1, this.toolsToolStripMenuItem, this.destinationsToolStripMenuItem, this.helpToolStripMenuItem}); - this.mainMenuStrip.Location = new System.Drawing.Point(0, 0); - this.mainMenuStrip.Name = "mainMenuStrip"; - this.mainMenuStrip.Size = new System.Drawing.Size(703, 24); - this.mainMenuStrip.TabIndex = 0; - // - // destinationsToolStripMenuItem - // - this.destinationsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.mainMenuStrip.Location = new System.Drawing.Point(0, 0); + this.mainMenuStrip.Name = "mainMenuStrip"; + this.mainMenuStrip.Size = new System.Drawing.Size(703, 24); + this.mainMenuStrip.TabIndex = 0; + // + // destinationsToolStripMenuItem + // + this.destinationsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.addToolStripMenuItem}); - this.destinationsToolStripMenuItem.Name = "destinationsToolStripMenuItem"; - this.destinationsToolStripMenuItem.Size = new System.Drawing.Size(84, 20); - this.destinationsToolStripMenuItem.Text = "&Destinations"; - // - // addToolStripMenuItem - // - this.addToolStripMenuItem.Name = "addToolStripMenuItem"; - this.addToolStripMenuItem.Size = new System.Drawing.Size(152, 22); - this.addToolStripMenuItem.Text = "&Add"; - this.addToolStripMenuItem.Click += new System.EventHandler(this.AddDestinationButton_Click); - // - // saveButton - // - this.saveButton.Enabled = false; - this.saveButton.Image = global::NBug.Configurator.Properties.Resources.save; - this.saveButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.saveButton.Location = new System.Drawing.Point(517, 439); - this.saveButton.Name = "saveButton"; - this.saveButton.Size = new System.Drawing.Size(89, 23); - this.saveButton.TabIndex = 3; - this.saveButton.Text = "&Save"; - this.saveButton.UseVisualStyleBackColor = true; - this.saveButton.Click += new System.EventHandler(this.SaveButton_Click); - // - // closeButton - // - this.closeButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.closeButton.Location = new System.Drawing.Point(616, 439); - this.closeButton.Name = "closeButton"; - this.closeButton.Size = new System.Drawing.Size(75, 23); - this.closeButton.TabIndex = 5; - this.closeButton.Text = "&Close"; - this.closeButton.UseVisualStyleBackColor = true; - this.closeButton.Click += new System.EventHandler(this.CloseButton_Click); - // - // mainToolTips - // - this.mainToolTips.AutoPopDelay = 20000; - this.mainToolTips.InitialDelay = 500; - this.mainToolTips.ReshowDelay = 100; - // - // runTestAppButton - // - this.runTestAppButton.Enabled = false; - this.runTestAppButton.Image = global::NBug.Configurator.Properties.Resources.run; - this.runTestAppButton.ImageAlign = System.Drawing.ContentAlignment.BottomLeft; - this.runTestAppButton.Location = new System.Drawing.Point(360, 439); - this.runTestAppButton.Name = "runTestAppButton"; - this.runTestAppButton.Size = new System.Drawing.Size(136, 23); - this.runTestAppButton.TabIndex = 6; - this.runTestAppButton.Text = "Save && Run &Test App"; - this.runTestAppButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - this.runTestAppButton.UseVisualStyleBackColor = true; - this.runTestAppButton.Click += new System.EventHandler(this.RunTestAppButton_Click); - // - // settingsFileGroupBox - // - this.settingsFileGroupBox.Controls.Add(this.fileTextBox); - this.settingsFileGroupBox.Controls.Add(this.pathLabel); - this.settingsFileGroupBox.Controls.Add(this.createButton); - this.settingsFileGroupBox.Controls.Add(this.openButton); - this.settingsFileGroupBox.Location = new System.Drawing.Point(12, 33); - this.settingsFileGroupBox.Name = "settingsFileGroupBox"; - this.settingsFileGroupBox.Size = new System.Drawing.Size(679, 57); - this.settingsFileGroupBox.TabIndex = 22; - this.settingsFileGroupBox.TabStop = false; - this.settingsFileGroupBox.Text = "Settings File"; - // - // fileTextBox - // - this.fileTextBox.Location = new System.Drawing.Point(39, 21); - this.fileTextBox.Name = "fileTextBox"; - this.fileTextBox.ReadOnly = true; - this.fileTextBox.Size = new System.Drawing.Size(494, 20); - this.fileTextBox.TabIndex = 3; - // - // pathLabel - // - this.pathLabel.AutoSize = true; - this.pathLabel.Location = new System.Drawing.Point(6, 24); - this.pathLabel.Name = "pathLabel"; - this.pathLabel.Size = new System.Drawing.Size(32, 13); - this.pathLabel.TabIndex = 2; - this.pathLabel.Text = "Path:"; - // - // createButton - // - this.createButton.Location = new System.Drawing.Point(608, 20); - this.createButton.Name = "createButton"; - this.createButton.Size = new System.Drawing.Size(65, 23); - this.createButton.TabIndex = 1; - this.createButton.Text = "Create"; - this.createButton.UseVisualStyleBackColor = true; - this.createButton.Click += new System.EventHandler(this.CreateButton_Click); - // - // openButton - // - this.openButton.Location = new System.Drawing.Point(542, 20); - this.openButton.Name = "openButton"; - this.openButton.Size = new System.Drawing.Size(60, 23); - this.openButton.TabIndex = 0; - this.openButton.Text = "Open"; - this.openButton.UseVisualStyleBackColor = true; - this.openButton.Click += new System.EventHandler(this.OpenButton_Click); - // - // createFileDialog - // - this.createFileDialog.FileName = "NBug"; - this.createFileDialog.Filter = "Configuration File (.config)|*.config"; - this.createFileDialog.Title = "Create New Configuration File"; - // - // openFileDialog - // - this.openFileDialog.FileName = "NBug"; - this.openFileDialog.Filter = "Configuration File (.config)|*.config"; - // - // addDestinationButton - // - this.addDestinationButton.Enabled = false; - this.addDestinationButton.Location = new System.Drawing.Point(12, 439); - this.addDestinationButton.Name = "addDestinationButton"; - this.addDestinationButton.Size = new System.Drawing.Size(98, 23); - this.addDestinationButton.TabIndex = 23; - this.addDestinationButton.Text = "Add destination"; - this.addDestinationButton.UseVisualStyleBackColor = true; - this.addDestinationButton.Click += new System.EventHandler(this.AddDestinationButton_Click); - // - // panelLoader1 - // - this.panelLoader1.AutoScroll = true; - this.panelLoader1.AutoValidate = System.Windows.Forms.AutoValidate.EnablePreventFocusChange; - this.panelLoader1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelLoader1.Location = new System.Drawing.Point(3, 3); - this.panelLoader1.Name = "panelLoader1"; - this.panelLoader1.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0); - this.panelLoader1.Size = new System.Drawing.Size(665, 294); - this.panelLoader1.TabIndex = 0; - // - // MainForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(703, 494); - this.Controls.Add(this.addDestinationButton); - this.Controls.Add(this.settingsFileGroupBox); - this.Controls.Add(this.runTestAppButton); - this.Controls.Add(this.closeButton); - this.Controls.Add(this.saveButton); - this.Controls.Add(this.mainTabs); - this.Controls.Add(this.mainStatusStrip); - this.Controls.Add(this.mainMenuStrip); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MaximizeBox = false; - this.Name = "MainForm"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "NBug - Configurator"; - this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); - this.mainStatusStrip.ResumeLayout(false); - this.mainStatusStrip.PerformLayout(); - this.mainTabs.ResumeLayout(false); - this.generalTabPage.ResumeLayout(false); - this.nbugConfigurationGroupBox.ResumeLayout(false); - this.nbugConfigurationGroupBox.PerformLayout(); - this.internalLoggerGroupBox.ResumeLayout(false); - this.internalLoggerGroupBox.PerformLayout(); - this.reportSubmitterGroupBox.ResumeLayout(false); - this.reportSubmitterGroupBox.PerformLayout(); - this.reportQueueGroupBox.ResumeLayout(false); - this.reportQueueGroupBox.PerformLayout(); - this.reportingGroupBox.ResumeLayout(false); - this.reportingGroupBox.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.sleepBeforeSendNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.maxQueuedReportsNumericUpDown)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.stopReportingAfterNumericUpDown)).EndInit(); - this.userInterfaceGroupBox.ResumeLayout(false); - this.userInterfaceGroupBox.PerformLayout(); - this.advancedTabPage.ResumeLayout(false); - this.exceptionHandlingGroupBox.ResumeLayout(false); - this.exceptionHandlingGroupBox.PerformLayout(); - this.submit1TabPage.ResumeLayout(false); - this.mainMenuStrip.ResumeLayout(false); - this.mainMenuStrip.PerformLayout(); - this.settingsFileGroupBox.ResumeLayout(false); - this.settingsFileGroupBox.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); + this.destinationsToolStripMenuItem.Name = "destinationsToolStripMenuItem"; + this.destinationsToolStripMenuItem.Size = new System.Drawing.Size(84, 20); + this.destinationsToolStripMenuItem.Text = "&Destinations"; + // + // addToolStripMenuItem + // + this.addToolStripMenuItem.Name = "addToolStripMenuItem"; + this.addToolStripMenuItem.Size = new System.Drawing.Size(96, 22); + this.addToolStripMenuItem.Text = "&Add"; + this.addToolStripMenuItem.Click += new System.EventHandler(this.AddDestinationButton_Click); + // + // saveButton + // + this.saveButton.Enabled = false; + this.saveButton.Image = global::NBug.Configurator.Properties.Resources.save; + this.saveButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.saveButton.Location = new System.Drawing.Point(517, 439); + this.saveButton.Name = "saveButton"; + this.saveButton.Size = new System.Drawing.Size(89, 23); + this.saveButton.TabIndex = 3; + this.saveButton.Text = "&Save"; + this.saveButton.UseVisualStyleBackColor = true; + this.saveButton.Click += new System.EventHandler(this.SaveButton_Click); + // + // closeButton + // + this.closeButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.closeButton.Location = new System.Drawing.Point(616, 439); + this.closeButton.Name = "closeButton"; + this.closeButton.Size = new System.Drawing.Size(75, 23); + this.closeButton.TabIndex = 5; + this.closeButton.Text = "&Close"; + this.closeButton.UseVisualStyleBackColor = true; + this.closeButton.Click += new System.EventHandler(this.CloseButton_Click); + // + // mainToolTips + // + this.mainToolTips.AutoPopDelay = 20000; + this.mainToolTips.InitialDelay = 500; + this.mainToolTips.ReshowDelay = 100; + // + // runTestAppButton + // + this.runTestAppButton.Enabled = false; + this.runTestAppButton.Image = global::NBug.Configurator.Properties.Resources.run; + this.runTestAppButton.ImageAlign = System.Drawing.ContentAlignment.BottomLeft; + this.runTestAppButton.Location = new System.Drawing.Point(360, 439); + this.runTestAppButton.Name = "runTestAppButton"; + this.runTestAppButton.Size = new System.Drawing.Size(136, 23); + this.runTestAppButton.TabIndex = 6; + this.runTestAppButton.Text = "Save && Run &Test App"; + this.runTestAppButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.runTestAppButton.UseVisualStyleBackColor = true; + this.runTestAppButton.Click += new System.EventHandler(this.RunTestAppButton_Click); + // + // settingsFileGroupBox + // + this.settingsFileGroupBox.Controls.Add(this.fileTextBox); + this.settingsFileGroupBox.Controls.Add(this.pathLabel); + this.settingsFileGroupBox.Controls.Add(this.createButton); + this.settingsFileGroupBox.Controls.Add(this.openButton); + this.settingsFileGroupBox.Location = new System.Drawing.Point(12, 33); + this.settingsFileGroupBox.Name = "settingsFileGroupBox"; + this.settingsFileGroupBox.Size = new System.Drawing.Size(679, 57); + this.settingsFileGroupBox.TabIndex = 22; + this.settingsFileGroupBox.TabStop = false; + this.settingsFileGroupBox.Text = "Settings File"; + // + // fileTextBox + // + this.fileTextBox.Location = new System.Drawing.Point(39, 21); + this.fileTextBox.Name = "fileTextBox"; + this.fileTextBox.ReadOnly = true; + this.fileTextBox.Size = new System.Drawing.Size(494, 20); + this.fileTextBox.TabIndex = 3; + // + // pathLabel + // + this.pathLabel.AutoSize = true; + this.pathLabel.Location = new System.Drawing.Point(6, 24); + this.pathLabel.Name = "pathLabel"; + this.pathLabel.Size = new System.Drawing.Size(32, 13); + this.pathLabel.TabIndex = 2; + this.pathLabel.Text = "Path:"; + // + // createButton + // + this.createButton.Location = new System.Drawing.Point(608, 20); + this.createButton.Name = "createButton"; + this.createButton.Size = new System.Drawing.Size(65, 23); + this.createButton.TabIndex = 1; + this.createButton.Text = "Create"; + this.createButton.UseVisualStyleBackColor = true; + this.createButton.Click += new System.EventHandler(this.CreateButton_Click); + // + // openButton + // + this.openButton.Location = new System.Drawing.Point(542, 20); + this.openButton.Name = "openButton"; + this.openButton.Size = new System.Drawing.Size(60, 23); + this.openButton.TabIndex = 0; + this.openButton.Text = "Open"; + this.openButton.UseVisualStyleBackColor = true; + this.openButton.Click += new System.EventHandler(this.OpenButton_Click); + // + // createFileDialog + // + this.createFileDialog.FileName = "NBug"; + this.createFileDialog.Filter = "Configuration File (.config)|*.config"; + this.createFileDialog.Title = "Create New Configuration File"; + // + // openFileDialog + // + this.openFileDialog.FileName = "NBug"; + this.openFileDialog.Filter = "Configuration File (.config)|*.config"; + // + // addDestinationButton + // + this.addDestinationButton.Enabled = false; + this.addDestinationButton.Location = new System.Drawing.Point(12, 439); + this.addDestinationButton.Name = "addDestinationButton"; + this.addDestinationButton.Size = new System.Drawing.Size(98, 23); + this.addDestinationButton.TabIndex = 23; + this.addDestinationButton.Text = "Add destination"; + this.addDestinationButton.UseVisualStyleBackColor = true; + this.addDestinationButton.Click += new System.EventHandler(this.AddDestinationButton_Click); + // + // MainForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(703, 494); + this.Controls.Add(this.addDestinationButton); + this.Controls.Add(this.settingsFileGroupBox); + this.Controls.Add(this.runTestAppButton); + this.Controls.Add(this.closeButton); + this.Controls.Add(this.saveButton); + this.Controls.Add(this.mainTabs); + this.Controls.Add(this.mainStatusStrip); + this.Controls.Add(this.mainMenuStrip); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximizeBox = false; + this.Name = "MainForm"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "NBug - Configurator"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); + this.mainStatusStrip.ResumeLayout(false); + this.mainStatusStrip.PerformLayout(); + this.mainTabs.ResumeLayout(false); + this.generalTabPage.ResumeLayout(false); + this.nbugConfigurationGroupBox.ResumeLayout(false); + this.nbugConfigurationGroupBox.PerformLayout(); + this.internalLoggerGroupBox.ResumeLayout(false); + this.internalLoggerGroupBox.PerformLayout(); + this.reportSubmitterGroupBox.ResumeLayout(false); + this.reportSubmitterGroupBox.PerformLayout(); + this.reportQueueGroupBox.ResumeLayout(false); + this.reportQueueGroupBox.PerformLayout(); + this.reportingGroupBox.ResumeLayout(false); + this.reportingGroupBox.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.sleepBeforeSendNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.maxQueuedReportsNumericUpDown)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.stopReportingAfterNumericUpDown)).EndInit(); + this.userInterfaceGroupBox.ResumeLayout(false); + this.userInterfaceGroupBox.PerformLayout(); + this.advancedTabPage.ResumeLayout(false); + this.exceptionHandlingGroupBox.ResumeLayout(false); + this.exceptionHandlingGroupBox.PerformLayout(); + this.mainMenuStrip.ResumeLayout(false); + this.mainMenuStrip.PerformLayout(); + this.settingsFileGroupBox.ResumeLayout(false); + this.settingsFileGroupBox.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); } @@ -966,8 +939,7 @@ private void InitializeComponent() private System.Windows.Forms.StatusStrip mainStatusStrip; private System.Windows.Forms.TabControl mainTabs; - private System.Windows.Forms.TabPage generalTabPage; - private System.Windows.Forms.TabPage submit1TabPage; + private System.Windows.Forms.TabPage generalTabPage; private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem1; private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem; @@ -1018,8 +990,7 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem embeddedToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem importToolStripMenuItem; private System.Windows.Forms.SaveFileDialog createFileDialog; - private System.Windows.Forms.OpenFileDialog openFileDialog; - private SubmitPanels.PanelLoader panelLoader1; + private System.Windows.Forms.OpenFileDialog openFileDialog; private System.Windows.Forms.ToolStripStatusLabel status; private System.Windows.Forms.CheckBox encryptConnectionStringsCheckBox; private System.Windows.Forms.GroupBox reportingGroupBox; diff --git a/NBug.Configurator/MainForm.cs b/NBug.Configurator/MainForm.cs index 8aa37d3..dd920b2 100644 --- a/NBug.Configurator/MainForm.cs +++ b/NBug.Configurator/MainForm.cs @@ -8,6 +8,8 @@ namespace NBug.Configurator { using NBug.Configurator.SubmitPanels; using NBug.Enums; + using NBug.Core.Util; + using NBug.Core.Submission; /* Dear maintainer: * @@ -27,7 +29,7 @@ namespace NBug.Configurator public partial class MainForm : Form { - private ICollection panelLoaders = new Collection(); + private readonly ICollection panelLoaders = new Collection(); private FileStream settingsFile; @@ -38,12 +40,12 @@ public MainForm() NBug.Settings.CustomUIEvent += Settings_CustomUIEvent; this.openFileDialog.InitialDirectory = Environment.CurrentDirectory; this.createFileDialog.InitialDirectory = Environment.CurrentDirectory; - panelLoaders.Add(this.panelLoader1); + NBug.Settings.Destinations.Clear(); } private void Settings_CustomUIEvent(object sender, CustomUIEventArgs e) { - var Form = new Normal(); + var Form = new CustomPreviewForm(); e.Result = Form.ShowDialog(e.Report); } @@ -147,11 +149,14 @@ private void LoadSettingsFile(bool createNew) { mainTabs.TabPages.RemoveAt(2); } + panelLoaders.Clear(); + // Read connection strings - foreach (var destination in Settings.Destinations.Take(5)) + foreach (var destination in Settings.Destinations) { var loader = new PanelLoader(); + loader.RemoveDestination += loader_RemoveDestination; loader.LoadPanel(destination.ConnectionString); panelLoaders.Add(loader); var tabPage = new TabPage(string.Format("Submit #{0}", panelLoaders.Count)); @@ -195,6 +200,7 @@ private void SaveButton_Click(object sender, EventArgs e) Settings.StoragePath = this.storagePathComboBox.Text == "Custom" ? this.customStoragePathTextBox.Text : this.storagePathComboBox.Text; Settings.Destinations.Clear(); + // Save connection strings foreach (var connectionString in panelLoaders .Where(p => p.Controls.Count == 2) @@ -408,10 +414,48 @@ private void UIProviderComboBox_SelectedIndexChanged(object sender, EventArgs e) private void AddDestinationButton_Click(object sender, EventArgs e) { var loader = new PanelLoader(); + loader.RemoveDestination += loader_RemoveDestination; panelLoaders.Add(loader); var tabPage = new TabPage(string.Format("Submit #{0}", panelLoaders.Count)); tabPage.Controls.Add(loader); mainTabs.TabPages.Add(tabPage); } + + void loader_RemoveDestination(object sender, EventArgs e) + { + var loader = sender as PanelLoader; + var idx = 2; + idx += (panelLoaders.ToList()).IndexOf(loader); + + if (!string.IsNullOrEmpty(loader.connString)) + { + var protocol = ConnectionStringParser.Parse(loader.connString)["Type"]; + IProtocol dest = null; + + if (protocol == typeof(Core.Submission.Web.Mail).Name || protocol.ToLower() == "email" || protocol.ToLower() == "e-mail") + { + dest = new Core.Submission.Web.Mail(loader.connString); + } + else if (protocol == typeof(Core.Submission.Tracker.Redmine).Name) + { + dest = new Core.Submission.Tracker.Redmine(loader.connString); + } + else if (protocol == typeof(Core.Submission.Web.Ftp).Name) + { + dest = new Core.Submission.Tracker.Redmine(loader.connString); + } + else if (protocol == typeof(Core.Submission.Web.Http).Name) + { + dest = new Core.Submission.Tracker.Redmine(loader.connString); + } + + if (dest != null) + Settings.Destinations.Remove(dest); + } + + panelLoaders.Remove(loader); + mainTabs.TabPages.RemoveAt(idx); + return; + } } } \ No newline at end of file diff --git a/NBug.Configurator/MainForm.resx b/NBug.Configurator/MainForm.resx index 1db187b..bcc6c2a 100644 --- a/NBug.Configurator/MainForm.resx +++ b/NBug.Configurator/MainForm.resx @@ -253,4 +253,4 @@ just to log and submit exceptions but not interfering with the application execu AADwDwAA8A8AAA== - + \ No newline at end of file diff --git a/NBug.Configurator/NBug.Configurator.csproj b/NBug.Configurator/NBug.Configurator.csproj index 02d46a8..ef1519d 100644 --- a/NBug.Configurator/NBug.Configurator.csproj +++ b/NBug.Configurator/NBug.Configurator.csproj @@ -107,11 +107,11 @@ MainForm.cs - + Form - - Normal.cs + + CustomPreviewForm.cs Form @@ -158,8 +158,8 @@ MainForm.cs - - Normal.cs + + CustomPreviewForm.cs PreviewForm.cs diff --git a/NBug.Configurator/SubmitPanels/PanelLoader.Designer.cs b/NBug.Configurator/SubmitPanels/PanelLoader.Designer.cs index 8da7ee4..f53e67a 100644 --- a/NBug.Configurator/SubmitPanels/PanelLoader.Designer.cs +++ b/NBug.Configurator/SubmitPanels/PanelLoader.Designer.cs @@ -28,61 +28,73 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - this.selectorPanel = new System.Windows.Forms.Panel(); - this.submitComboBox = new System.Windows.Forms.ComboBox(); - this.submitLabel = new System.Windows.Forms.Label(); - this.selectorPanel.SuspendLayout(); - this.SuspendLayout(); - // - // selectorPanel - // - this.selectorPanel.Controls.Add(this.submitComboBox); - this.selectorPanel.Controls.Add(this.submitLabel); - this.selectorPanel.Dock = System.Windows.Forms.DockStyle.Top; - this.selectorPanel.Location = new System.Drawing.Point(10, 0); - this.selectorPanel.Name = "selectorPanel"; - this.selectorPanel.Size = new System.Drawing.Size(650, 45); - this.selectorPanel.TabIndex = 2; - // - // submitComboBox - // - this.submitComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.submitComboBox.FormattingEnabled = true; - this.submitComboBox.Items.AddRange(new object[] { + this.selectorPanel = new System.Windows.Forms.Panel(); + this.submitComboBox = new System.Windows.Forms.ComboBox(); + this.submitLabel = new System.Windows.Forms.Label(); + this.btnRemove = new System.Windows.Forms.Button(); + this.selectorPanel.SuspendLayout(); + this.SuspendLayout(); + // + // selectorPanel + // + this.selectorPanel.Controls.Add(this.btnRemove); + this.selectorPanel.Controls.Add(this.submitComboBox); + this.selectorPanel.Controls.Add(this.submitLabel); + this.selectorPanel.Dock = System.Windows.Forms.DockStyle.Top; + this.selectorPanel.Location = new System.Drawing.Point(10, 0); + this.selectorPanel.Name = "selectorPanel"; + this.selectorPanel.Size = new System.Drawing.Size(650, 45); + this.selectorPanel.TabIndex = 2; + // + // submitComboBox + // + this.submitComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.submitComboBox.FormattingEnabled = true; + this.submitComboBox.Items.AddRange(new object[] { "None", "E-Mail", "Redmine Issue Tracker", "FTP", "HTTP"}); - this.submitComboBox.Location = new System.Drawing.Point(72, 9); - this.submitComboBox.Name = "submitComboBox"; - this.submitComboBox.Size = new System.Drawing.Size(166, 21); - this.submitComboBox.TabIndex = 3; - this.submitComboBox.SelectedIndexChanged += new System.EventHandler(this.SubmitComboBox_SelectedIndexChanged); - // - // submitLabel - // - this.submitLabel.AutoSize = true; - this.submitLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.submitLabel.Location = new System.Drawing.Point(-2, 12); - this.submitLabel.Name = "submitLabel"; - this.submitLabel.Size = new System.Drawing.Size(68, 13); - this.submitLabel.TabIndex = 2; - this.submitLabel.Text = "Submit To:"; - // - // PanelLoader - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.AutoScroll = true; - this.AutoValidate = System.Windows.Forms.AutoValidate.EnablePreventFocusChange; - this.Controls.Add(this.selectorPanel); - this.Name = "PanelLoader"; - this.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0); - this.Size = new System.Drawing.Size(660, 294); - this.selectorPanel.ResumeLayout(false); - this.selectorPanel.PerformLayout(); - this.ResumeLayout(false); + this.submitComboBox.Location = new System.Drawing.Point(72, 9); + this.submitComboBox.Name = "submitComboBox"; + this.submitComboBox.Size = new System.Drawing.Size(166, 21); + this.submitComboBox.TabIndex = 3; + this.submitComboBox.SelectedIndexChanged += new System.EventHandler(this.SubmitComboBox_SelectedIndexChanged); + // + // submitLabel + // + this.submitLabel.AutoSize = true; + this.submitLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.submitLabel.Location = new System.Drawing.Point(-2, 12); + this.submitLabel.Name = "submitLabel"; + this.submitLabel.Size = new System.Drawing.Size(68, 13); + this.submitLabel.TabIndex = 2; + this.submitLabel.Text = "Submit To:"; + // + // btnRemove + // + this.btnRemove.Location = new System.Drawing.Point(244, 7); + this.btnRemove.Name = "btnRemove"; + this.btnRemove.Size = new System.Drawing.Size(75, 23); + this.btnRemove.TabIndex = 4; + this.btnRemove.Text = "Remove"; + this.btnRemove.UseVisualStyleBackColor = true; + this.btnRemove.Click += new System.EventHandler(this.btnRemove_Click); + // + // PanelLoader + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScroll = true; + this.AutoValidate = System.Windows.Forms.AutoValidate.EnablePreventFocusChange; + this.Controls.Add(this.selectorPanel); + this.Name = "PanelLoader"; + this.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0); + this.Size = new System.Drawing.Size(660, 294); + this.selectorPanel.ResumeLayout(false); + this.selectorPanel.PerformLayout(); + this.ResumeLayout(false); } @@ -91,6 +103,7 @@ private void InitializeComponent() private System.Windows.Forms.Panel selectorPanel; private System.Windows.Forms.ComboBox submitComboBox; private System.Windows.Forms.Label submitLabel; + private System.Windows.Forms.Button btnRemove; diff --git a/NBug.Configurator/SubmitPanels/PanelLoader.cs b/NBug.Configurator/SubmitPanels/PanelLoader.cs index a541b18..ac08221 100644 --- a/NBug.Configurator/SubmitPanels/PanelLoader.cs +++ b/NBug.Configurator/SubmitPanels/PanelLoader.cs @@ -12,9 +12,10 @@ namespace NBug.Configurator.SubmitPanels using System.Windows.Forms; public partial class PanelLoader : UserControl - { - private string connString; + { private string settingsLoadedProtocolType; + public string connString; + public event EventHandler RemoveDestination; public PanelLoader() { @@ -24,35 +25,35 @@ public PanelLoader() public void LoadPanel(string connectionString) { - this.connString = connectionString; + connString = connectionString; var protocol = ConnectionStringParser.Parse(connectionString)["Type"]; - if (protocol == typeof(Core.Submission.Web.Mail).Name || protocol.ToString().ToLower() == "email" || protocol.ToString().ToLower() == "e-mail") + if (protocol == typeof(Core.Submission.Web.Mail).Name || protocol.ToLower() == "email" || protocol.ToLower() == "e-mail") { - this.submitComboBox.SelectedItem = "E-Mail"; + submitComboBox.SelectedItem = "E-Mail"; } else if (protocol == typeof(Core.Submission.Tracker.Redmine).Name) { - this.submitComboBox.SelectedItem = "Redmine Issue Tracker"; + submitComboBox.SelectedItem = "Redmine Issue Tracker"; } else if (protocol == typeof(Core.Submission.Web.Ftp).Name) { - this.submitComboBox.SelectedItem = "FTP"; + submitComboBox.SelectedItem = "FTP"; } else if (protocol == typeof(Core.Submission.Web.Http).Name) { - this.submitComboBox.SelectedItem = "HTTP"; + submitComboBox.SelectedItem = "HTTP"; } else { MessageBox.Show("Undefined protocol type was selected. This is an internal error, please notify the developers."); } - this.settingsLoadedProtocolType = this.submitComboBox.Text; + settingsLoadedProtocolType = submitComboBox.Text; - if (this.Controls.Count == 2) + if (Controls.Count == 2) { - ((ISubmitPanel)this.Controls[0]).ConnectionString = connectionString; + ((ISubmitPanel)Controls[0]).ConnectionString = connectionString; } } @@ -98,5 +99,10 @@ private void SubmitComboBox_SelectedIndexChanged(object sender, EventArgs e) } } } + + private void btnRemove_Click(object sender, EventArgs e) + { + RemoveDestination.DynamicInvoke(this, new EventArgs()); + } } } \ No newline at end of file diff --git a/NBug/Settings.cs b/NBug/Settings.cs index 99f5026..5a44f70 100644 --- a/NBug/Settings.cs +++ b/NBug/Settings.cs @@ -535,7 +535,7 @@ where element.Attribute("name") != null && element.Element("value") != null } else { - Logger.Error("There is a problem with the 'applicationSettings' section of the configuration file. The property read from the file '" + property + "' is undefined. This is probably a refactoring problem, or a malformed config file."); + Logger.Error(String.Format("There is a problem with the 'applicationSettings' section of the configuration file. The property read from the file '{0}' is undefined. This is probably a refactoring problem, or a malformed config file.", property)); } }