Mercurial > servermonitor
diff ServerMonitor/Forms/SettingsForm.Designer.cs @ 29:f6235dc0a8ec
Add ability to play a sound on check failure.
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Fri, 14 Jun 2019 21:01:55 -0400 |
parents | 75ca86e0862c |
children |
line wrap: on
line diff
--- a/ServerMonitor/Forms/SettingsForm.Designer.cs Sun Jun 02 17:55:38 2019 -0400 +++ b/ServerMonitor/Forms/SettingsForm.Designer.cs Fri Jun 14 21:01:55 2019 -0400 @@ -29,6 +29,12 @@ private void InitializeComponent() { this.SeverityOptionsGroupBox = new System.Windows.Forms.GroupBox(); + this.InformationSoundComboBox = new System.Windows.Forms.ComboBox(); + this.WarningSoundComboBox = new System.Windows.Forms.ComboBox(); + this.InformationSoundLabel = new System.Windows.Forms.Label(); + this.WarningSoundLabel = new System.Windows.Forms.Label(); + this.ErrorSoundLabel = new System.Windows.Forms.Label(); + this.ErrorSoundComboBox = new System.Windows.Forms.ComboBox(); this.ErrorComboBox = new System.Windows.Forms.ComboBox(); this.WarningComboBox = new System.Windows.Forms.ComboBox(); this.InformationComboBox = new System.Windows.Forms.ComboBox(); @@ -38,7 +44,7 @@ this.WarningIcon = new System.Windows.Forms.PictureBox(); this.ErrorLabel = new System.Windows.Forms.Label(); this.ErrorIcon = new System.Windows.Forms.PictureBox(); - this.label1 = new System.Windows.Forms.Label(); + this.OptionsLabel = new System.Windows.Forms.Label(); this.OkButton = new System.Windows.Forms.Button(); this.CancelSettingsButton = new System.Windows.Forms.Button(); this.KeepLogDaysInput = new System.Windows.Forms.NumericUpDown(); @@ -57,6 +63,12 @@ // this.SeverityOptionsGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); + this.SeverityOptionsGroupBox.Controls.Add(this.InformationSoundComboBox); + this.SeverityOptionsGroupBox.Controls.Add(this.WarningSoundComboBox); + this.SeverityOptionsGroupBox.Controls.Add(this.InformationSoundLabel); + this.SeverityOptionsGroupBox.Controls.Add(this.WarningSoundLabel); + this.SeverityOptionsGroupBox.Controls.Add(this.ErrorSoundLabel); + this.SeverityOptionsGroupBox.Controls.Add(this.ErrorSoundComboBox); this.SeverityOptionsGroupBox.Controls.Add(this.ErrorComboBox); this.SeverityOptionsGroupBox.Controls.Add(this.WarningComboBox); this.SeverityOptionsGroupBox.Controls.Add(this.InformationComboBox); @@ -68,11 +80,71 @@ this.SeverityOptionsGroupBox.Controls.Add(this.ErrorIcon); this.SeverityOptionsGroupBox.Location = new System.Drawing.Point(12, 109); this.SeverityOptionsGroupBox.Name = "SeverityOptionsGroupBox"; - this.SeverityOptionsGroupBox.Size = new System.Drawing.Size(337, 104); + this.SeverityOptionsGroupBox.Size = new System.Drawing.Size(435, 104); this.SeverityOptionsGroupBox.TabIndex = 8; this.SeverityOptionsGroupBox.TabStop = false; this.SeverityOptionsGroupBox.Text = "Severity settings"; // + // InformationSoundComboBox + // + this.InformationSoundComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.InformationSoundComboBox.FormattingEnabled = true; + this.InformationSoundComboBox.Location = new System.Drawing.Point(299, 71); + this.InformationSoundComboBox.Name = "InformationSoundComboBox"; + this.InformationSoundComboBox.Size = new System.Drawing.Size(130, 21); + this.InformationSoundComboBox.TabIndex = 58; + this.InformationSoundComboBox.SelectedIndexChanged += new System.EventHandler(this.SoundComboBox_SelectedIndexChanged); + this.InformationSoundComboBox.Format += new System.Windows.Forms.ListControlConvertEventHandler(this.SoundComboBox_Format); + // + // WarningSoundComboBox + // + this.WarningSoundComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.WarningSoundComboBox.FormattingEnabled = true; + this.WarningSoundComboBox.Location = new System.Drawing.Point(299, 44); + this.WarningSoundComboBox.Name = "WarningSoundComboBox"; + this.WarningSoundComboBox.Size = new System.Drawing.Size(130, 21); + this.WarningSoundComboBox.TabIndex = 57; + this.WarningSoundComboBox.SelectedIndexChanged += new System.EventHandler(this.SoundComboBox_SelectedIndexChanged); + this.WarningSoundComboBox.Format += new System.Windows.Forms.ListControlConvertEventHandler(this.SoundComboBox_Format); + // + // InformationSoundLabel + // + this.InformationSoundLabel.AutoSize = true; + this.InformationSoundLabel.Location = new System.Drawing.Point(252, 74); + this.InformationSoundLabel.Name = "InformationSoundLabel"; + this.InformationSoundLabel.Size = new System.Drawing.Size(41, 13); + this.InformationSoundLabel.TabIndex = 56; + this.InformationSoundLabel.Text = "Sound:"; + // + // WarningSoundLabel + // + this.WarningSoundLabel.AutoSize = true; + this.WarningSoundLabel.Location = new System.Drawing.Point(252, 47); + this.WarningSoundLabel.Name = "WarningSoundLabel"; + this.WarningSoundLabel.Size = new System.Drawing.Size(41, 13); + this.WarningSoundLabel.TabIndex = 55; + this.WarningSoundLabel.Text = "Sound:"; + // + // ErrorSoundLabel + // + this.ErrorSoundLabel.AutoSize = true; + this.ErrorSoundLabel.Location = new System.Drawing.Point(252, 20); + this.ErrorSoundLabel.Name = "ErrorSoundLabel"; + this.ErrorSoundLabel.Size = new System.Drawing.Size(41, 13); + this.ErrorSoundLabel.TabIndex = 54; + this.ErrorSoundLabel.Text = "Sound:"; + // + // ErrorSoundComboBox + // + this.ErrorSoundComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.ErrorSoundComboBox.FormattingEnabled = true; + this.ErrorSoundComboBox.Location = new System.Drawing.Point(299, 17); + this.ErrorSoundComboBox.Name = "ErrorSoundComboBox"; + this.ErrorSoundComboBox.Size = new System.Drawing.Size(130, 21); + this.ErrorSoundComboBox.TabIndex = 53; + this.ErrorSoundComboBox.SelectedIndexChanged += new System.EventHandler(this.SoundComboBox_SelectedIndexChanged); + this.ErrorSoundComboBox.Format += new System.Windows.Forms.ListControlConvertEventHandler(this.SoundComboBox_Format); + // // ErrorComboBox // this.ErrorComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; @@ -157,20 +229,20 @@ this.ErrorIcon.TabIndex = 0; this.ErrorIcon.TabStop = false; // - // label1 + // OptionsLabel // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.Location = new System.Drawing.Point(9, 9); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(50, 13); - this.label1.TabIndex = 1; - this.label1.Text = "Options"; + this.OptionsLabel.AutoSize = true; + this.OptionsLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.OptionsLabel.Location = new System.Drawing.Point(9, 9); + this.OptionsLabel.Name = "OptionsLabel"; + this.OptionsLabel.Size = new System.Drawing.Size(50, 13); + this.OptionsLabel.TabIndex = 1; + this.OptionsLabel.Text = "Options"; // // OkButton // this.OkButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.OkButton.Location = new System.Drawing.Point(193, 224); + this.OkButton.Location = new System.Drawing.Point(291, 224); this.OkButton.Name = "OkButton"; this.OkButton.Size = new System.Drawing.Size(75, 23); this.OkButton.TabIndex = 50; @@ -182,7 +254,7 @@ // this.CancelSettingsButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.CancelSettingsButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.CancelSettingsButton.Location = new System.Drawing.Point(274, 224); + this.CancelSettingsButton.Location = new System.Drawing.Point(372, 224); this.CancelSettingsButton.Name = "CancelSettingsButton"; this.CancelSettingsButton.Size = new System.Drawing.Size(75, 23); this.CancelSettingsButton.TabIndex = 51; @@ -246,7 +318,7 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.CancelSettingsButton; - this.ClientSize = new System.Drawing.Size(361, 259); + this.ClientSize = new System.Drawing.Size(459, 259); this.Controls.Add(this.KeepRunningCheckBox); this.Controls.Add(this.AutorunCheckBox); this.Controls.Add(this.DaysLabel); @@ -254,7 +326,7 @@ this.Controls.Add(this.KeepLogDaysInput); this.Controls.Add(this.CancelSettingsButton); this.Controls.Add(this.OkButton); - this.Controls.Add(this.label1); + this.Controls.Add(this.OptionsLabel); this.Controls.Add(this.SeverityOptionsGroupBox); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; @@ -276,7 +348,7 @@ private System.Windows.Forms.GroupBox SeverityOptionsGroupBox; private System.Windows.Forms.PictureBox ErrorIcon; - private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label OptionsLabel; private System.Windows.Forms.Label InformationLabel; private System.Windows.Forms.PictureBox InformationIcon; private System.Windows.Forms.Label WarningLabel; @@ -292,5 +364,11 @@ private System.Windows.Forms.Label DaysLabel; private System.Windows.Forms.CheckBox AutorunCheckBox; private System.Windows.Forms.CheckBox KeepRunningCheckBox; + private System.Windows.Forms.Label ErrorSoundLabel; + private System.Windows.Forms.ComboBox ErrorSoundComboBox; + private System.Windows.Forms.Label WarningSoundLabel; + private System.Windows.Forms.Label InformationSoundLabel; + private System.Windows.Forms.ComboBox InformationSoundComboBox; + private System.Windows.Forms.ComboBox WarningSoundComboBox; } } \ No newline at end of file