From 570b0bf89a73a34439fee45a86cc3859aa82fe13 Mon Sep 17 00:00:00 2001 From: Jonas Rapp Date: Thu, 21 Nov 2019 11:13:12 +0100 Subject: [PATCH] Minor UI fix --- .../DockControls/SarifControl.Designer.cs | 30 +++++++++---------- PowerAppsChecker/DockControls/SarifControl.cs | 2 +- .../DockControls/SarifControl.resx | 25 ++++------------ 3 files changed, 21 insertions(+), 36 deletions(-) diff --git a/PowerAppsChecker/DockControls/SarifControl.Designer.cs b/PowerAppsChecker/DockControls/SarifControl.Designer.cs index cce1000..c3b6c7a 100644 --- a/PowerAppsChecker/DockControls/SarifControl.Designer.cs +++ b/PowerAppsChecker/DockControls/SarifControl.Designer.cs @@ -40,6 +40,7 @@ private void InitializeComponent() this.colComponent = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colLocation = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.panTop = new System.Windows.Forms.Panel(); + this.picDetailOpen = new System.Windows.Forms.PictureBox(); this.panStatus = new System.Windows.Forms.Panel(); this.progAnalysis = new System.Windows.Forms.ProgressBar(); this.txtStatus = new System.Windows.Forms.TextBox(); @@ -105,7 +106,6 @@ private void InitializeComponent() this.tabFiles = new System.Windows.Forms.TabPage(); this.dgArtifacts = new System.Windows.Forms.DataGridView(); this.tmStatus = new System.Windows.Forms.Timer(this.components); - this.picDetailOpen = new System.Windows.Forms.PictureBox(); this.tabControlResults.SuspendLayout(); this.tabResults.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitter)).BeginInit(); @@ -114,6 +114,7 @@ private void InitializeComponent() this.splitter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgResults)).BeginInit(); this.panTop.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.picDetailOpen)).BeginInit(); this.panStatus.SuspendLayout(); this.panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picDetailClose)).BeginInit(); @@ -123,7 +124,6 @@ private void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.dgSolutions)).BeginInit(); this.tabFiles.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgArtifacts)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.picDetailOpen)).BeginInit(); this.SuspendLayout(); // // tabControlResults @@ -273,6 +273,18 @@ private void InitializeComponent() this.panTop.Size = new System.Drawing.Size(618, 61); this.panTop.TabIndex = 2; // + // picDetailOpen + // + this.picDetailOpen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.picDetailOpen.Cursor = System.Windows.Forms.Cursors.Hand; + this.picDetailOpen.Image = ((System.Drawing.Image)(resources.GetObject("picDetailOpen.Image"))); + this.picDetailOpen.Location = new System.Drawing.Point(597, 9); + this.picDetailOpen.Name = "picDetailOpen"; + this.picDetailOpen.Size = new System.Drawing.Size(16, 16); + this.picDetailOpen.TabIndex = 46; + this.picDetailOpen.TabStop = false; + this.picDetailOpen.Click += new System.EventHandler(this.picDetailOpen_Click); + // // panStatus // this.panStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) @@ -996,18 +1008,6 @@ private void InitializeComponent() this.tmStatus.Interval = 5000; this.tmStatus.Tick += new System.EventHandler(this.tmStatus_Tick); // - // picDetailOpen - // - this.picDetailOpen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.picDetailOpen.Cursor = System.Windows.Forms.Cursors.Hand; - this.picDetailOpen.Image = ((System.Drawing.Image)(resources.GetObject("picDetailOpen.Image"))); - this.picDetailOpen.Location = new System.Drawing.Point(597, 9); - this.picDetailOpen.Name = "picDetailOpen"; - this.picDetailOpen.Size = new System.Drawing.Size(16, 16); - this.picDetailOpen.TabIndex = 46; - this.picDetailOpen.TabStop = false; - this.picDetailOpen.Click += new System.EventHandler(this.picDetailOpen_Click); - // // SarifControl // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -1033,6 +1033,7 @@ private void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.dgResults)).EndInit(); this.panTop.ResumeLayout(false); this.panTop.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.picDetailOpen)).EndInit(); this.panStatus.ResumeLayout(false); this.panStatus.PerformLayout(); this.panel2.ResumeLayout(false); @@ -1046,7 +1047,6 @@ private void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.dgSolutions)).EndInit(); this.tabFiles.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgArtifacts)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.picDetailOpen)).EndInit(); this.ResumeLayout(false); } diff --git a/PowerAppsChecker/DockControls/SarifControl.cs b/PowerAppsChecker/DockControls/SarifControl.cs index 9f28355..ad9f93d 100644 --- a/PowerAppsChecker/DockControls/SarifControl.cs +++ b/PowerAppsChecker/DockControls/SarifControl.cs @@ -30,7 +30,7 @@ public SarifControl(PAC pac) this.pac = pac; InitializeComponent(); DoubleBuffered = true; - txtSnippet.AutoSize = true; + Reset(); } #endregion Public Constructors diff --git a/PowerAppsChecker/DockControls/SarifControl.resx b/PowerAppsChecker/DockControls/SarifControl.resx index 7094312..0b2c199 100644 --- a/PowerAppsChecker/DockControls/SarifControl.resx +++ b/PowerAppsChecker/DockControls/SarifControl.resx @@ -135,28 +135,13 @@ - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADnQAAA50AWsks9YAAAAHdElNRQfjCxQVDTkE6aWLAAAAh0lEQVQ4T6WTIQ6AMAxF - d0Yk10ByhUkklishsUjkZOGLhpX9sQbEC+mD1ywkCyLyCyoZ27rLPCySjnSNtzcf1ajFwAwMxLGfBM/n - O1CInFYMqASeGFDpjUEhEI1ddMXADBrnrkUhfp1AQfz5HyjeJVQqniVU5rSWFIKBGHeBLTHDG7rEXigJ - J0XeCIYldoEmAAAAAElFTkSuQmCC + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + dAAADnQBaySz1gAAAAd0SU1FB+MLFBUNOQTppYsAAACHSURBVDhPpZMhDoAwDEV3RiTXQHKFSSSWKyGx + SORk4YuGlf2xBsQL6YPXLCQLIvILKhnbuss8LJKOdI23Nx/VqMXADAzEsZ8Ez+c7UIicVgyoBJ4YUOmN + QSEQjV10xcAMGueuRSF+nUBB/PkfKN4lVCqeJVTmtJYUgoEYd4EtMcMbusReKAknRd4IhiV2gSYAAAAA + SUVORK5CYII= - - True - - - True - - - True - - - True - - - True - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO