From 31fdf41b3e108484f67306d3a907064d965a7c86 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 14 Mar 2023 19:09:31 +0000 Subject: [PATCH] B2023-032 There was duplicate code in this file that set two events to run the repair tools which cause them to run twice This check-in removes the commented out code --- .../frmBatchRefresh.Designer.cs | 233 ------------------ 1 file changed, 233 deletions(-) diff --git a/PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs b/PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs index 3a5499a1..ee346ceb 100644 --- a/PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs +++ b/PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs @@ -90,22 +90,6 @@ this.labelX6 = new DevComponents.DotNetBar.LabelX(); this.warningBox1 = new DevComponents.DotNetBar.Controls.WarningBox(); this.btnFixLinks = new DevComponents.DotNetBar.ButtonX(); - //this.sideNavPanel2 = new DevComponents.DotNetBar.Controls.SideNavPanel(); - //this.swRefreshTblsForSrch = new DevComponents.DotNetBar.Controls.SwitchButton(); - //this.lblRefreshTblForSrch = new DevComponents.DotNetBar.LabelX(); - //this.warningBox4 = new DevComponents.DotNetBar.Controls.WarningBox(); - //this.warningBox2 = new DevComponents.DotNetBar.Controls.WarningBox(); - //this.swRmObsoleteROData = new DevComponents.DotNetBar.Controls.SwitchButton(); - //this.swRefreshWordAttmts = new DevComponents.DotNetBar.Controls.SwitchButton(); - //this.swStandardHypenChars = new DevComponents.DotNetBar.Controls.SwitchButton(); - //this.labelX4 = new DevComponents.DotNetBar.LabelX(); - //this.labelX5 = new DevComponents.DotNetBar.LabelX(); - //this.labelX9 = new DevComponents.DotNetBar.LabelX(); - //this.swRmOrphanDataRecs = new DevComponents.DotNetBar.Controls.SwitchButton(); - //this.labelX10 = new DevComponents.DotNetBar.LabelX(); - //this.labelX8 = new DevComponents.DotNetBar.LabelX(); - //this.line2 = new DevComponents.DotNetBar.Controls.Line(); - //this.btnRunRepair = new DevComponents.DotNetBar.ButtonX(); this.sideNavPanel4 = new DevComponents.DotNetBar.Controls.SideNavPanel(); this.btn_ShowUsers = new DevComponents.DotNetBar.ButtonX(); this.sideNavItem1 = new DevComponents.DotNetBar.Controls.SideNavItem(); @@ -137,7 +121,6 @@ this.sideNavPanel2.SuspendLayout(); this.sideNavPanel1.SuspendLayout(); this.sideNavPanel3.SuspendLayout(); - //this.sideNavPanel2.SuspendLayout(); this.sideNavPanel4.SuspendLayout(); this.panelEx4.SuspendLayout(); this.SuspendLayout(); @@ -495,30 +478,6 @@ this.sideNav1.Size = new System.Drawing.Size(385, 526); this.sideNav1.TabIndex = 3; this.sideNav1.Text = "sideNav1"; - //// - //// sideNavPanel2 - //// - //this.sideNavPanel2.Controls.Add(this.swRefreshTblsForSrch); - //this.sideNavPanel2.Controls.Add(this.lblRefreshTblForSrch); - //this.sideNavPanel2.Controls.Add(this.warningBox4); - //this.sideNavPanel2.Controls.Add(this.warningBox2); - //this.sideNavPanel2.Controls.Add(this.swRmObsoleteROData); - //this.sideNavPanel2.Controls.Add(this.swRefreshWordAttmts); - //this.sideNavPanel2.Controls.Add(this.swStandardHypenChars); - //this.sideNavPanel2.Controls.Add(this.labelX4); - //this.sideNavPanel2.Controls.Add(this.labelX5); - //this.sideNavPanel2.Controls.Add(this.labelX9); - //this.sideNavPanel2.Controls.Add(this.swRmOrphanDataRecs); - //this.sideNavPanel2.Controls.Add(this.labelX10); - //this.sideNavPanel2.Controls.Add(this.labelX8); - //this.sideNavPanel2.Controls.Add(this.line2); - //this.sideNavPanel2.Controls.Add(this.btnRunRepair); - //this.sideNavPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - //this.sideNavPanel2.Location = new System.Drawing.Point(80, 31); - //this.sideNavPanel2.Name = "sideNavPanel2"; - //this.sideNavPanel2.Size = new System.Drawing.Size(300, 494); - //this.sideNavPanel2.TabIndex = 6; - //this.sideNavPanel2.Visible = false; // // swRefreshTblsForSrch // @@ -1124,198 +1083,6 @@ this.superTooltip1.SetSuperTooltip(this.lblRefreshTblForSrch, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Word Attachments", "", resources.GetString("lblRefreshTblForSrch.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(300, 200))); this.lblRefreshTblForSrch.TabIndex = 31; this.lblRefreshTblForSrch.Text = "Refresh Tables For Search"; - //// - //// warningBox4 - //// - //this.warningBox4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(219)))), ((int)(((byte)(249))))); - //this.warningBox4.CloseButtonVisible = false; - //this.warningBox4.Image = ((System.Drawing.Image)(resources.GetObject("warningBox4.Image"))); - //this.warningBox4.Location = new System.Drawing.Point(12, 264); - //this.warningBox4.Name = "warningBox4"; - //this.warningBox4.OptionsButtonVisible = false; - //this.warningBox4.Size = new System.Drawing.Size(264, 32); - //this.warningBox4.TabIndex = 30; - //this.warningBox4.Text = "NOTE These tools can take a long time to run"; - //// - //// warningBox2 - //// - //this.warningBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(219)))), ((int)(((byte)(249))))); - //this.warningBox2.CloseButtonVisible = false; - //this.warningBox2.Image = ((System.Drawing.Image)(resources.GetObject("warningBox2.Image"))); - //this.warningBox2.Location = new System.Drawing.Point(12, 302); - //this.warningBox2.Name = "warningBox2"; - //this.warningBox2.OptionsButtonVisible = false; - //this.warningBox2.Size = new System.Drawing.Size(264, 43); - //this.warningBox2.TabIndex = 28; - //this.warningBox2.Text = " Be sure there is a current backup of the \r\n database prior to running these func" + - // "tions"; - //// - //// swRmObsoleteROData - //// - //// - //// - //// - //this.swRmObsoleteROData.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - //this.swRmObsoleteROData.Location = new System.Drawing.Point(10, 66); - //this.swRmObsoleteROData.Name = "swRmObsoleteROData"; - //this.swRmObsoleteROData.Size = new System.Drawing.Size(91, 22); - //this.swRmObsoleteROData.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - //this.superTooltip1.SetSuperTooltip(this.swRmObsoleteROData, new DevComponents.DotNetBar.SuperTooltipInfo("Remove Obsolete RO Data", "", resources.GetString("swRmObsoleteROData.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(230, 205))); - //this.swRmObsoleteROData.SwitchClickTogglesValue = true; - //this.swRmObsoleteROData.TabIndex = 26; - //this.swRmObsoleteROData.Value = true; - //this.swRmObsoleteROData.ValueObject = "Y"; - //this.swRmObsoleteROData.ValueChanged += new System.EventHandler(this.swCk_ValueChanged); - //// - //// swRefreshWordAttmts - //// - //// - //// - //// - //this.swRefreshWordAttmts.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - //this.swRefreshWordAttmts.Location = new System.Drawing.Point(10, 122); - //this.swRefreshWordAttmts.Name = "swRefreshWordAttmts"; - //this.swRefreshWordAttmts.Size = new System.Drawing.Size(91, 22); - //this.swRefreshWordAttmts.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - //this.superTooltip1.SetSuperTooltip(this.swRefreshWordAttmts, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Word Attachments", "", resources.GetString("swRefreshWordAttmts.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(300, 200))); - //this.swRefreshWordAttmts.SwitchClickTogglesValue = true; - //this.swRefreshWordAttmts.TabIndex = 27; - //this.swRefreshWordAttmts.Value = true; - //this.swRefreshWordAttmts.ValueObject = "Y"; - //this.swRefreshWordAttmts.ValueChanged += new System.EventHandler(this.swCk_ValueChanged); - //// - //// swStandardHypenChars - //// - //// - //// - //// - //this.swStandardHypenChars.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - //this.swStandardHypenChars.Location = new System.Drawing.Point(10, 94); - //this.swStandardHypenChars.Name = "swStandardHypenChars"; - //this.swStandardHypenChars.Size = new System.Drawing.Size(91, 22); - //this.swStandardHypenChars.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - //this.superTooltip1.SetSuperTooltip(this.swStandardHypenChars, new DevComponents.DotNetBar.SuperTooltipInfo("Standardize Hyphen Characters", "", resources.GetString("swStandardHypenChars.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(225, 129))); - //this.swStandardHypenChars.SwitchClickTogglesValue = true; - //this.swStandardHypenChars.TabIndex = 27; - //this.swStandardHypenChars.Value = true; - //this.swStandardHypenChars.ValueObject = "Y"; - //this.swStandardHypenChars.ValueChanged += new System.EventHandler(this.swCk_ValueChanged); - //// - //// labelX4 - //// - //this.labelX4.BackColor = System.Drawing.Color.Transparent; - //// - //// - //// - //this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - //this.labelX4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - //this.labelX4.Location = new System.Drawing.Point(107, 66); - //this.labelX4.Name = "labelX4"; - //this.labelX4.Size = new System.Drawing.Size(167, 22); - //this.superTooltip1.SetSuperTooltip(this.labelX4, new DevComponents.DotNetBar.SuperTooltipInfo("Remove Obsolete RO Data", "", resources.GetString("labelX4.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(230, 205))); - //this.labelX4.TabIndex = 24; - //this.labelX4.Text = "Remove Obsolete RO Data"; - //// - //// labelX5 - //// - //this.labelX5.BackColor = System.Drawing.Color.Transparent; - //// - //// - //// - //this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - //this.labelX5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - //this.labelX5.Location = new System.Drawing.Point(107, 122); - //this.labelX5.Name = "labelX5"; - //this.labelX5.Size = new System.Drawing.Size(186, 22); - //this.superTooltip1.SetSuperTooltip(this.labelX5, new DevComponents.DotNetBar.SuperTooltipInfo("Refresh Word Attachments", "", resources.GetString("labelX5.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(300, 200))); - //this.labelX5.TabIndex = 25; - //this.labelX5.Text = "Refresh Word Attachments"; - //// - //// labelX9 - //// - //this.labelX9.BackColor = System.Drawing.Color.Transparent; - //// - //// - //// - //this.labelX9.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - //this.labelX9.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - //this.labelX9.Location = new System.Drawing.Point(107, 94); - //this.labelX9.Name = "labelX9"; - //this.labelX9.Size = new System.Drawing.Size(186, 22); - //this.superTooltip1.SetSuperTooltip(this.labelX9, new DevComponents.DotNetBar.SuperTooltipInfo("Standardize Hyphen Characters", "", resources.GetString("labelX9.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(225, 129))); - //this.labelX9.TabIndex = 25; - //this.labelX9.Text = "Standardize Hyphen Characters"; - //// - //// swRmOrphanDataRecs - //// - //// - //// - //// - //this.swRmOrphanDataRecs.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - //this.swRmOrphanDataRecs.Location = new System.Drawing.Point(10, 38); - //this.swRmOrphanDataRecs.Name = "swRmOrphanDataRecs"; - //this.swRmOrphanDataRecs.Size = new System.Drawing.Size(91, 22); - //this.swRmOrphanDataRecs.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - //this.superTooltip1.SetSuperTooltip(this.swRmOrphanDataRecs, new DevComponents.DotNetBar.SuperTooltipInfo("Remove Orphan Data Records", "", resources.GetString("swRmOrphanDataRecs.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(325, 140))); - //this.swRmOrphanDataRecs.SwitchClickTogglesValue = true; - //this.swRmOrphanDataRecs.TabIndex = 23; - //this.swRmOrphanDataRecs.Value = true; - //this.swRmOrphanDataRecs.ValueObject = "Y"; - //this.swRmOrphanDataRecs.ValueChanged += new System.EventHandler(this.swCk_ValueChanged); - // - //// labelX10 - //// - //this.labelX10.BackColor = System.Drawing.Color.Transparent; - //// - //// - //// - //this.labelX10.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - //this.labelX10.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - //this.labelX10.Location = new System.Drawing.Point(107, 38); - //this.labelX10.Name = "labelX10"; - //this.labelX10.Size = new System.Drawing.Size(184, 22); - //this.superTooltip1.SetSuperTooltip(this.labelX10, new DevComponents.DotNetBar.SuperTooltipInfo("Remove Orphan Data Records", "", resources.GetString("labelX10.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(325, 140))); - //this.labelX10.TabIndex = 22; - //this.labelX10.Text = "Remove Orphan Data Records"; - //// - //// labelX8 - //// - //this.labelX8.BackColor = System.Drawing.Color.Transparent; - //// - //// - //// - //this.labelX8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - //this.labelX8.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - //this.labelX8.Location = new System.Drawing.Point(5, 3); - //this.labelX8.Name = "labelX8"; - //this.labelX8.Size = new System.Drawing.Size(251, 22); - //this.labelX8.TabIndex = 21; - //this.labelX8.Text = "Repair these Data Issues:"; - //// - //// line2 - //// - //this.line2.BackColor = System.Drawing.Color.Transparent; - //this.line2.Location = new System.Drawing.Point(4, 237); - //this.line2.Name = "line2"; - //this.line2.Size = new System.Drawing.Size(281, 12); - //this.line2.TabIndex = 20; - //this.line2.Text = "line2"; - //// - //// btnRunRepair - //// - //this.btnRunRepair.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - //this.btnRunRepair.Checked = true; - //this.btnRunRepair.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - //this.btnRunRepair.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - //this.btnRunRepair.Location = new System.Drawing.Point(5, 198); - //this.btnRunRepair.Name = "btnRunRepair"; - //this.btnRunRepair.Size = new System.Drawing.Size(280, 23); - //this.btnRunRepair.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - //this.superTooltip1.SetSuperTooltip(this.btnRunRepair, new DevComponents.DotNetBar.SuperTooltipInfo("Run Repair", "", "This will run the database repair tools selected.\r\n\r\nClick on the on/off switches" + - // " to turn on/off each tool.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(200, 103))); - //this.btnRunRepair.TabIndex = 3; - //this.btnRunRepair.Text = "Run Repair"; - //this.btnRunRepair.Click += new System.EventHandler(this.btnRunRepair_Click); // // sideNavPanel4 //