From a48cc0655e48b982e27357d5818981ef24f0a58f Mon Sep 17 00:00:00 2001 From: Lior Banai Kama Date: Sun, 5 Jun 2022 10:49:23 +0300 Subject: [PATCH] [Common Controls] move more user control to common control DLL #1312 --- .../Forms/FormMessageDetails.cs | 1 + .../Forms/XtraFormLogGrid.cs | 10 +- .../UserControls/MessageDetailsUC.Designer.cs | 2 +- .../UserControls/MessageDetailsUC.cs | 11 +- Analogy/Analogy.csproj | 7 - Analogy/Forms/FormMessageDetails.cs | 1 + .../UserControls/MessageDetailsUC.Designer.cs | 657 ------------------ Analogy/UserControls/MessageDetailsUC.cs | 157 ----- Analogy/UserControls/MessageDetailsUC.resx | 176 ----- 9 files changed, 13 insertions(+), 1009 deletions(-) delete mode 100644 Analogy/UserControls/MessageDetailsUC.Designer.cs delete mode 100644 Analogy/UserControls/MessageDetailsUC.cs delete mode 100644 Analogy/UserControls/MessageDetailsUC.resx diff --git a/Analogy.CommonControls/Forms/FormMessageDetails.cs b/Analogy.CommonControls/Forms/FormMessageDetails.cs index 0ac2e88b..859fe9e9 100644 --- a/Analogy.CommonControls/Forms/FormMessageDetails.cs +++ b/Analogy.CommonControls/Forms/FormMessageDetails.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Windows.Forms; +using Analogy.CommonControls.UserControls; using Analogy.Interfaces; using DevExpress.XtraEditors; diff --git a/Analogy.CommonControls/Forms/XtraFormLogGrid.cs b/Analogy.CommonControls/Forms/XtraFormLogGrid.cs index 4db73947..f713a7a0 100644 --- a/Analogy.CommonControls/Forms/XtraFormLogGrid.cs +++ b/Analogy.CommonControls/Forms/XtraFormLogGrid.cs @@ -13,14 +13,14 @@ public partial class XtraFormLogGrid : XtraForm private readonly List _messages; private readonly string _dataSource; public LogMessagesUC Window => _logMessagesUcLogs1; - public XtraFormLogGrid(bool registerToAnalogyLogger) + public XtraFormLogGrid(bool registerToAnalogyLogger) { - InitializeComponent(); - _dataSource = "Analogy"; - _messages = new List(); + InitializeComponent(); + _dataSource = "Analogy"; + _messages = new List(); } - public XtraFormLogGrid(IAnalogyOfflineDataProvider? fileDataProvider):this(false) + public XtraFormLogGrid(IAnalogyOfflineDataProvider? fileDataProvider) : this(false) { FileDataProvider = fileDataProvider; _logMessagesUcLogs1.SetFileDataSource(FileDataProvider); diff --git a/Analogy.CommonControls/UserControls/MessageDetailsUC.Designer.cs b/Analogy.CommonControls/UserControls/MessageDetailsUC.Designer.cs index 320a5abf..dfd2bc1f 100644 --- a/Analogy.CommonControls/UserControls/MessageDetailsUC.Designer.cs +++ b/Analogy.CommonControls/UserControls/MessageDetailsUC.Designer.cs @@ -1,4 +1,4 @@ -namespace Analogy +namespace Analogy.CommonControls.UserControls { partial class MessageDetailsUC { diff --git a/Analogy.CommonControls/UserControls/MessageDetailsUC.cs b/Analogy.CommonControls/UserControls/MessageDetailsUC.cs index 96c22e01..b2f2be6f 100644 --- a/Analogy.CommonControls/UserControls/MessageDetailsUC.cs +++ b/Analogy.CommonControls/UserControls/MessageDetailsUC.cs @@ -1,14 +1,13 @@ -using Analogy.Interfaces; -using DevExpress.XtraEditors; -using Markdig; -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; -using Analogy.CommonControls; using Analogy.CommonControls.Tools; +using Analogy.Interfaces; +using DevExpress.XtraEditors; +using Markdig; -namespace Analogy +namespace Analogy.CommonControls.UserControls { public partial class MessageDetailsUC : XtraUserControl { diff --git a/Analogy/Analogy.csproj b/Analogy/Analogy.csproj index c6c45429..e9e57ea4 100644 --- a/Analogy/Analogy.csproj +++ b/Analogy/Analogy.csproj @@ -584,10 +584,6 @@ UCLogs.cs - - - MessageDetailsUC.cs - UtilityUC.cs @@ -753,9 +749,6 @@ UCLogs.cs - - MessageDetailsUC.cs - UtilityUC.cs diff --git a/Analogy/Forms/FormMessageDetails.cs b/Analogy/Forms/FormMessageDetails.cs index f6c45228..7d1ba472 100644 --- a/Analogy/Forms/FormMessageDetails.cs +++ b/Analogy/Forms/FormMessageDetails.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Windows.Forms; +using Analogy.CommonControls.UserControls; using Analogy.Interfaces; using DevExpress.XtraEditors; diff --git a/Analogy/UserControls/MessageDetailsUC.Designer.cs b/Analogy/UserControls/MessageDetailsUC.Designer.cs deleted file mode 100644 index 320a5abf..00000000 --- a/Analogy/UserControls/MessageDetailsUC.Designer.cs +++ /dev/null @@ -1,657 +0,0 @@ -namespace Analogy -{ - partial class MessageDetailsUC - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MessageDetailsUC)); - DevExpress.Utils.SuperToolTip superToolTip3 = new DevExpress.Utils.SuperToolTip(); - DevExpress.Utils.ToolTipItem toolTipItem3 = new DevExpress.Utils.ToolTipItem(); - DevExpress.Utils.SuperToolTip superToolTip4 = new DevExpress.Utils.SuperToolTip(); - DevExpress.Utils.ToolTipItem toolTipItem4 = new DevExpress.Utils.ToolTipItem(); - this.btnNext = new DevExpress.XtraEditors.SimpleButton(); - this.btnPrev = new DevExpress.XtraEditors.SimpleButton(); - this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); - this.txtbDateValue = new DevExpress.XtraEditors.TextEdit(); - this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); - this.txtbDataSource = new DevExpress.XtraEditors.TextEdit(); - this.labelControl2 = new DevExpress.XtraEditors.LabelControl(); - this.txtSourceValue = new DevExpress.XtraEditors.TextEdit(); - this.lblSource = new DevExpress.XtraEditors.LabelControl(); - this.txtbProcessModuleName = new DevExpress.XtraEditors.TextEdit(); - this.lblProcess = new DevExpress.XtraEditors.LabelControl(); - this.txtbLevelValue = new DevExpress.XtraEditors.TextEdit(); - this.txtbMethod = new DevExpress.XtraEditors.TextEdit(); - this.lblLevel = new DevExpress.XtraEditors.LabelControl(); - this.lblMethod = new DevExpress.XtraEditors.LabelControl(); - this.txtbFileName = new DevExpress.XtraEditors.TextEdit(); - this.lblSourceCodeFileName = new DevExpress.XtraEditors.LabelControl(); - this.txtbLineNumber = new DevExpress.XtraEditors.TextEdit(); - this.lblLineNumber = new DevExpress.XtraEditors.LabelControl(); - this.txtbUser = new DevExpress.XtraEditors.TextEdit(); - this.lblUser = new DevExpress.XtraEditors.LabelControl(); - this.txtID = new DevExpress.XtraEditors.TextEdit(); - this.labelControl3 = new DevExpress.XtraEditors.LabelControl(); - this.labelControl4 = new DevExpress.XtraEditors.LabelControl(); - this.txtbIndex = new DevExpress.XtraEditors.TextEdit(); - this.memoText = new DevExpress.XtraEditors.MemoEdit(); - this.lblMachineName = new DevExpress.XtraEditors.LabelControl(); - this.txtbMachineName = new DevExpress.XtraEditors.TextEdit(); - this.labelControl5 = new DevExpress.XtraEditors.LabelControl(); - this.txtbProcessId = new DevExpress.XtraEditors.TextEdit(); - this.lblThreadId = new DevExpress.XtraEditors.LabelControl(); - this.txtbThreadId = new DevExpress.XtraEditors.TextEdit(); - this.xtraTabControlMessageInfo = new DevExpress.XtraTab.XtraTabControl(); - this.xtraTabPageText = new DevExpress.XtraTab.XtraTabPage(); - this.xtraTabPageRenderedText = new DevExpress.XtraTab.XtraTabPage(); - this.recMessageDetails = new DevExpress.XtraRichEdit.RichEditControl(); - this.xtraTabPageAdditionalInformation = new DevExpress.XtraTab.XtraTabPage(); - this.memoAdditionalInformation = new DevExpress.XtraEditors.MemoEdit(); - this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl(); - this.splitContainerControl2 = new DevExpress.XtraEditors.SplitContainerControl(); - this.meSelected = new DevExpress.XtraEditors.MemoEdit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbDateValue.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbDataSource.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtSourceValue.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbProcessModuleName.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbLevelValue.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbMethod.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbFileName.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbLineNumber.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbUser.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtID.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbIndex.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.memoText.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbMachineName.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbProcessId.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbThreadId.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.xtraTabControlMessageInfo)).BeginInit(); - this.xtraTabControlMessageInfo.SuspendLayout(); - this.xtraTabPageText.SuspendLayout(); - this.xtraTabPageRenderedText.SuspendLayout(); - this.xtraTabPageAdditionalInformation.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.memoAdditionalInformation.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1.Panel1)).BeginInit(); - this.splitContainerControl1.Panel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1.Panel2)).BeginInit(); - this.splitContainerControl1.Panel2.SuspendLayout(); - this.splitContainerControl1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl2.Panel1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl2.Panel2)).BeginInit(); - this.splitContainerControl2.Panel2.SuspendLayout(); - this.splitContainerControl2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.meSelected.Properties)).BeginInit(); - this.SuspendLayout(); - // - // btnNext - // - this.btnNext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnNext.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnNext.ImageOptions.Image"))); - this.btnNext.Location = new System.Drawing.Point(555, 1); - this.btnNext.Name = "btnNext"; - this.btnNext.Size = new System.Drawing.Size(24, 26); - toolTipItem3.Text = "Press right arrow to load next message"; - superToolTip3.Items.Add(toolTipItem3); - this.btnNext.SuperTip = superToolTip3; - this.btnNext.TabIndex = 38; - this.btnNext.Click += new System.EventHandler(this.btnNext_Click); - // - // btnPrev - // - this.btnPrev.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnPrev.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnPrev.ImageOptions.Image"))); - this.btnPrev.Location = new System.Drawing.Point(525, 1); - this.btnPrev.Name = "btnPrev"; - this.btnPrev.Size = new System.Drawing.Size(24, 26); - toolTipItem4.Text = "Press Left arrow to load previous message"; - superToolTip4.Items.Add(toolTipItem4); - this.btnPrev.SuperTip = superToolTip4; - this.btnPrev.TabIndex = 39; - this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click); - // - // simpleButton1 - // - this.simpleButton1.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("simpleButton1.ImageOptions.Image"))); - this.simpleButton1.Location = new System.Drawing.Point(195, 50); - this.simpleButton1.Name = "simpleButton1"; - this.simpleButton1.Size = new System.Drawing.Size(24, 26); - this.simpleButton1.TabIndex = 44; - // - // txtbDateValue - // - this.txtbDateValue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtbDateValue.Location = new System.Drawing.Point(179, 325); - this.txtbDateValue.Name = "txtbDateValue"; - this.txtbDateValue.Size = new System.Drawing.Size(398, 22); - this.txtbDateValue.TabIndex = 47; - // - // labelControl1 - // - this.labelControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.labelControl1.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.labelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.labelControl1.Location = new System.Drawing.Point(3, 325); - this.labelControl1.Name = "labelControl1"; - this.labelControl1.Size = new System.Drawing.Size(170, 22); - this.labelControl1.TabIndex = 48; - this.labelControl1.Text = "Date:"; - // - // txtbDataSource - // - this.txtbDataSource.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtbDataSource.Location = new System.Drawing.Point(178, 297); - this.txtbDataSource.Name = "txtbDataSource"; - this.txtbDataSource.Size = new System.Drawing.Size(398, 22); - this.txtbDataSource.TabIndex = 47; - // - // labelControl2 - // - this.labelControl2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.labelControl2.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.labelControl2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.labelControl2.Location = new System.Drawing.Point(3, 297); - this.labelControl2.Name = "labelControl2"; - this.labelControl2.Size = new System.Drawing.Size(170, 22); - this.labelControl2.TabIndex = 48; - this.labelControl2.Text = "Log file / Data source:"; - // - // txtSourceValue - // - this.txtSourceValue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtSourceValue.Location = new System.Drawing.Point(179, 353); - this.txtSourceValue.Name = "txtSourceValue"; - this.txtSourceValue.Size = new System.Drawing.Size(398, 22); - this.txtSourceValue.TabIndex = 47; - // - // lblSource - // - this.lblSource.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.lblSource.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.lblSource.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.lblSource.Location = new System.Drawing.Point(3, 353); - this.lblSource.Name = "lblSource"; - this.lblSource.Size = new System.Drawing.Size(170, 22); - this.lblSource.TabIndex = 48; - this.lblSource.Text = "Source:"; - // - // txtbProcessModuleName - // - this.txtbProcessModuleName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtbProcessModuleName.Location = new System.Drawing.Point(179, 381); - this.txtbProcessModuleName.Name = "txtbProcessModuleName"; - this.txtbProcessModuleName.Size = new System.Drawing.Size(398, 22); - this.txtbProcessModuleName.TabIndex = 47; - // - // lblProcess - // - this.lblProcess.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.lblProcess.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.lblProcess.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.lblProcess.Location = new System.Drawing.Point(3, 381); - this.lblProcess.Name = "lblProcess"; - this.lblProcess.Size = new System.Drawing.Size(170, 22); - this.lblProcess.TabIndex = 48; - this.lblProcess.Text = "Process /Module:"; - // - // txtbLevelValue - // - this.txtbLevelValue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtbLevelValue.Location = new System.Drawing.Point(179, 466); - this.txtbLevelValue.Name = "txtbLevelValue"; - this.txtbLevelValue.Size = new System.Drawing.Size(398, 22); - this.txtbLevelValue.TabIndex = 47; - // - // txtbMethod - // - this.txtbMethod.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtbMethod.Location = new System.Drawing.Point(179, 494); - this.txtbMethod.Name = "txtbMethod"; - this.txtbMethod.Size = new System.Drawing.Size(398, 22); - this.txtbMethod.TabIndex = 47; - // - // lblLevel - // - this.lblLevel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.lblLevel.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.lblLevel.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.lblLevel.Location = new System.Drawing.Point(3, 466); - this.lblLevel.Name = "lblLevel"; - this.lblLevel.Size = new System.Drawing.Size(170, 22); - this.lblLevel.TabIndex = 48; - this.lblLevel.Text = "Source:"; - // - // lblMethod - // - this.lblMethod.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.lblMethod.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.lblMethod.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.lblMethod.Location = new System.Drawing.Point(3, 494); - this.lblMethod.Name = "lblMethod"; - this.lblMethod.Size = new System.Drawing.Size(170, 22); - this.lblMethod.TabIndex = 48; - this.lblMethod.Text = "Method:"; - // - // txtbFileName - // - this.txtbFileName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtbFileName.Location = new System.Drawing.Point(177, 522); - this.txtbFileName.Name = "txtbFileName"; - this.txtbFileName.Size = new System.Drawing.Size(398, 22); - this.txtbFileName.TabIndex = 47; - // - // lblSourceCodeFileName - // - this.lblSourceCodeFileName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.lblSourceCodeFileName.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.lblSourceCodeFileName.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.lblSourceCodeFileName.Location = new System.Drawing.Point(1, 522); - this.lblSourceCodeFileName.Name = "lblSourceCodeFileName"; - this.lblSourceCodeFileName.Size = new System.Drawing.Size(170, 22); - this.lblSourceCodeFileName.TabIndex = 48; - this.lblSourceCodeFileName.Text = "Source Code FileName:"; - // - // txtbLineNumber - // - this.txtbLineNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtbLineNumber.Location = new System.Drawing.Point(177, 550); - this.txtbLineNumber.Name = "txtbLineNumber"; - this.txtbLineNumber.Size = new System.Drawing.Size(398, 22); - this.txtbLineNumber.TabIndex = 47; - // - // lblLineNumber - // - this.lblLineNumber.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.lblLineNumber.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.lblLineNumber.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.lblLineNumber.Location = new System.Drawing.Point(1, 550); - this.lblLineNumber.Name = "lblLineNumber"; - this.lblLineNumber.Size = new System.Drawing.Size(170, 22); - this.lblLineNumber.TabIndex = 48; - this.lblLineNumber.Text = "Line Number:"; - // - // txtbUser - // - this.txtbUser.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtbUser.Location = new System.Drawing.Point(177, 578); - this.txtbUser.Name = "txtbUser"; - this.txtbUser.Size = new System.Drawing.Size(398, 22); - this.txtbUser.TabIndex = 47; - // - // lblUser - // - this.lblUser.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.lblUser.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.lblUser.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.lblUser.Location = new System.Drawing.Point(1, 578); - this.lblUser.Name = "lblUser"; - this.lblUser.Size = new System.Drawing.Size(170, 22); - this.lblUser.TabIndex = 48; - this.lblUser.Text = "User:"; - // - // txtID - // - this.txtID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtID.Location = new System.Drawing.Point(225, 31); - this.txtID.Name = "txtID"; - this.txtID.Size = new System.Drawing.Size(354, 22); - this.txtID.TabIndex = 49; - // - // labelControl3 - // - this.labelControl3.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.labelControl3.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.labelControl3.Location = new System.Drawing.Point(3, 31); - this.labelControl3.Name = "labelControl3"; - this.labelControl3.Size = new System.Drawing.Size(216, 22); - this.labelControl3.TabIndex = 48; - this.labelControl3.Text = "Message ID:"; - // - // labelControl4 - // - this.labelControl4.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.labelControl4.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.labelControl4.Location = new System.Drawing.Point(3, 3); - this.labelControl4.Name = "labelControl4"; - this.labelControl4.Size = new System.Drawing.Size(216, 22); - this.labelControl4.TabIndex = 48; - this.labelControl4.Text = "Index"; - // - // txtbIndex - // - this.txtbIndex.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtbIndex.Location = new System.Drawing.Point(225, 3); - this.txtbIndex.Name = "txtbIndex"; - this.txtbIndex.Size = new System.Drawing.Size(294, 22); - this.txtbIndex.TabIndex = 49; - // - // memoText - // - this.memoText.Dock = System.Windows.Forms.DockStyle.Fill; - this.memoText.Location = new System.Drawing.Point(0, 0); - this.memoText.Name = "memoText"; - this.memoText.Size = new System.Drawing.Size(574, 172); - this.memoText.TabIndex = 50; - // - // lblMachineName - // - this.lblMachineName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.lblMachineName.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.lblMachineName.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.lblMachineName.Location = new System.Drawing.Point(4, 267); - this.lblMachineName.Name = "lblMachineName"; - this.lblMachineName.Size = new System.Drawing.Size(170, 22); - this.lblMachineName.TabIndex = 52; - this.lblMachineName.Text = "Machine Name:"; - // - // txtbMachineName - // - this.txtbMachineName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtbMachineName.Location = new System.Drawing.Point(179, 267); - this.txtbMachineName.Name = "txtbMachineName"; - this.txtbMachineName.Size = new System.Drawing.Size(398, 22); - this.txtbMachineName.TabIndex = 51; - // - // labelControl5 - // - this.labelControl5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.labelControl5.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.labelControl5.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.labelControl5.Location = new System.Drawing.Point(3, 409); - this.labelControl5.Name = "labelControl5"; - this.labelControl5.Size = new System.Drawing.Size(170, 22); - this.labelControl5.TabIndex = 54; - this.labelControl5.Text = "Process Id:"; - // - // txtbProcessId - // - this.txtbProcessId.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtbProcessId.Location = new System.Drawing.Point(179, 409); - this.txtbProcessId.Name = "txtbProcessId"; - this.txtbProcessId.Size = new System.Drawing.Size(398, 22); - this.txtbProcessId.TabIndex = 53; - // - // lblThreadId - // - this.lblThreadId.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.lblThreadId.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; - this.lblThreadId.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.lblThreadId.Location = new System.Drawing.Point(3, 437); - this.lblThreadId.Name = "lblThreadId"; - this.lblThreadId.Size = new System.Drawing.Size(170, 22); - this.lblThreadId.TabIndex = 56; - this.lblThreadId.Text = "Thread Id:"; - // - // txtbThreadId - // - this.txtbThreadId.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtbThreadId.Location = new System.Drawing.Point(179, 437); - this.txtbThreadId.Name = "txtbThreadId"; - this.txtbThreadId.Size = new System.Drawing.Size(398, 22); - this.txtbThreadId.TabIndex = 55; - // - // xtraTabControlMessageInfo - // - this.xtraTabControlMessageInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.xtraTabControlMessageInfo.Location = new System.Drawing.Point(3, 59); - this.xtraTabControlMessageInfo.Name = "xtraTabControlMessageInfo"; - this.xtraTabControlMessageInfo.SelectedTabPage = this.xtraTabPageText; - this.xtraTabControlMessageInfo.Size = new System.Drawing.Size(576, 202); - this.xtraTabControlMessageInfo.TabIndex = 57; - this.xtraTabControlMessageInfo.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { - this.xtraTabPageRenderedText, - this.xtraTabPageText, - this.xtraTabPageAdditionalInformation}); - // - // xtraTabPageText - // - this.xtraTabPageText.Controls.Add(this.memoText); - this.xtraTabPageText.Name = "xtraTabPageText"; - this.xtraTabPageText.Size = new System.Drawing.Size(574, 172); - this.xtraTabPageText.Text = "Message Text"; - // - // xtraTabPageRenderedText - // - this.xtraTabPageRenderedText.Controls.Add(this.recMessageDetails); - this.xtraTabPageRenderedText.Name = "xtraTabPageRenderedText"; - this.xtraTabPageRenderedText.Size = new System.Drawing.Size(574, 172); - this.xtraTabPageRenderedText.Text = "Formatted Text"; - // - // recMessageDetails - // - this.recMessageDetails.ActiveViewType = DevExpress.XtraRichEdit.RichEditViewType.Simple; - this.recMessageDetails.Dock = System.Windows.Forms.DockStyle.Fill; - this.recMessageDetails.LayoutUnit = DevExpress.XtraRichEdit.DocumentLayoutUnit.Pixel; - this.recMessageDetails.Location = new System.Drawing.Point(0, 0); - this.recMessageDetails.Name = "recMessageDetails"; - this.recMessageDetails.Size = new System.Drawing.Size(574, 172); - this.recMessageDetails.TabIndex = 5; - // - // xtraTabPageAdditionalInformation - // - this.xtraTabPageAdditionalInformation.Controls.Add(this.memoAdditionalInformation); - this.xtraTabPageAdditionalInformation.Name = "xtraTabPageAdditionalInformation"; - this.xtraTabPageAdditionalInformation.Size = new System.Drawing.Size(574, 172); - this.xtraTabPageAdditionalInformation.Text = "Message\'s Additional Information"; - // - // memoAdditionalInformation - // - this.memoAdditionalInformation.Dock = System.Windows.Forms.DockStyle.Fill; - this.memoAdditionalInformation.Location = new System.Drawing.Point(0, 0); - this.memoAdditionalInformation.Name = "memoAdditionalInformation"; - this.memoAdditionalInformation.Size = new System.Drawing.Size(574, 172); - this.memoAdditionalInformation.TabIndex = 51; - // - // splitContainerControl1 - // - this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainerControl1.FixedPanel = DevExpress.XtraEditors.SplitFixedPanel.Panel2; - this.splitContainerControl1.Location = new System.Drawing.Point(0, 0); - this.splitContainerControl1.Name = "splitContainerControl1"; - // - // splitContainerControl1.Panel1 - // - this.splitContainerControl1.Panel1.Controls.Add(this.lblThreadId); - this.splitContainerControl1.Panel1.Controls.Add(this.xtraTabControlMessageInfo); - this.splitContainerControl1.Panel1.Controls.Add(this.txtbThreadId); - this.splitContainerControl1.Panel1.Controls.Add(this.labelControl4); - this.splitContainerControl1.Panel1.Controls.Add(this.labelControl5); - this.splitContainerControl1.Panel1.Controls.Add(this.txtbIndex); - this.splitContainerControl1.Panel1.Controls.Add(this.txtbProcessId); - this.splitContainerControl1.Panel1.Controls.Add(this.btnNext); - this.splitContainerControl1.Panel1.Controls.Add(this.lblMachineName); - this.splitContainerControl1.Panel1.Controls.Add(this.txtbMachineName); - this.splitContainerControl1.Panel1.Controls.Add(this.btnPrev); - this.splitContainerControl1.Panel1.Controls.Add(this.labelControl2); - this.splitContainerControl1.Panel1.Controls.Add(this.labelControl3); - this.splitContainerControl1.Panel1.Controls.Add(this.lblUser); - this.splitContainerControl1.Panel1.Controls.Add(this.txtID); - this.splitContainerControl1.Panel1.Controls.Add(this.lblLineNumber); - this.splitContainerControl1.Panel1.Controls.Add(this.txtbDateValue); - this.splitContainerControl1.Panel1.Controls.Add(this.lblSourceCodeFileName); - this.splitContainerControl1.Panel1.Controls.Add(this.txtbDataSource); - this.splitContainerControl1.Panel1.Controls.Add(this.lblMethod); - this.splitContainerControl1.Panel1.Controls.Add(this.txtSourceValue); - this.splitContainerControl1.Panel1.Controls.Add(this.txtbUser); - this.splitContainerControl1.Panel1.Controls.Add(this.labelControl1); - this.splitContainerControl1.Panel1.Controls.Add(this.lblLevel); - this.splitContainerControl1.Panel1.Controls.Add(this.txtbLevelValue); - this.splitContainerControl1.Panel1.Controls.Add(this.txtbLineNumber); - this.splitContainerControl1.Panel1.Controls.Add(this.txtbProcessModuleName); - this.splitContainerControl1.Panel1.Controls.Add(this.txtbFileName); - this.splitContainerControl1.Panel1.Controls.Add(this.lblSource); - this.splitContainerControl1.Panel1.Controls.Add(this.lblProcess); - this.splitContainerControl1.Panel1.Controls.Add(this.txtbMethod); - this.splitContainerControl1.Panel1.Text = "Panel1"; - // - // splitContainerControl1.Panel2 - // - this.splitContainerControl1.Panel2.AutoScroll = true; - this.splitContainerControl1.Panel2.Controls.Add(this.splitContainerControl2); - this.splitContainerControl1.Panel2.Text = "Panel2"; - this.splitContainerControl1.Size = new System.Drawing.Size(975, 604); - this.splitContainerControl1.SplitterPosition = 386; - this.splitContainerControl1.TabIndex = 3; - // - // splitContainerControl2 - // - this.splitContainerControl2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainerControl2.FixedPanel = DevExpress.XtraEditors.SplitFixedPanel.Panel2; - this.splitContainerControl2.Horizontal = false; - this.splitContainerControl2.Location = new System.Drawing.Point(0, 0); - this.splitContainerControl2.Name = "splitContainerControl2"; - // - // splitContainerControl2.Panel1 - // - this.splitContainerControl2.Panel1.Text = "Panel1"; - // - // splitContainerControl2.Panel2 - // - this.splitContainerControl2.Panel2.Controls.Add(this.meSelected); - this.splitContainerControl2.Panel2.Text = "Panel2"; - this.splitContainerControl2.Size = new System.Drawing.Size(386, 604); - this.splitContainerControl2.TabIndex = 0; - // - // meSelected - // - this.meSelected.Dock = System.Windows.Forms.DockStyle.Fill; - this.meSelected.EditValue = "You can double click the selected node to copy the text"; - this.meSelected.Location = new System.Drawing.Point(0, 0); - this.meSelected.Name = "meSelected"; - this.meSelected.Size = new System.Drawing.Size(386, 100); - this.meSelected.TabIndex = 2; - // - // MessageDetailsUC - // - this.Appearance.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(177))); - this.Appearance.Options.UseFont = true; - this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 22F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.AutoScroll = true; - this.Controls.Add(this.splitContainerControl1); - this.Margin = new System.Windows.Forms.Padding(4); - this.Name = "MessageDetailsUC"; - this.Size = new System.Drawing.Size(975, 604); - this.Load += new System.EventHandler(this.UCMessageDetails_Load); - ((System.ComponentModel.ISupportInitialize)(this.txtbDateValue.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbDataSource.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtSourceValue.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbProcessModuleName.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbLevelValue.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbMethod.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbFileName.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbLineNumber.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbUser.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtID.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbIndex.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.memoText.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbMachineName.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbProcessId.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbThreadId.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.xtraTabControlMessageInfo)).EndInit(); - this.xtraTabControlMessageInfo.ResumeLayout(false); - this.xtraTabPageText.ResumeLayout(false); - this.xtraTabPageRenderedText.ResumeLayout(false); - this.xtraTabPageAdditionalInformation.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.memoAdditionalInformation.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1.Panel1)).EndInit(); - this.splitContainerControl1.Panel1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1.Panel2)).EndInit(); - this.splitContainerControl1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit(); - this.splitContainerControl1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl2.Panel1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl2.Panel2)).EndInit(); - this.splitContainerControl2.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl2)).EndInit(); - this.splitContainerControl2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.meSelected.Properties)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - private DevExpress.XtraEditors.SimpleButton btnNext; - private DevExpress.XtraEditors.SimpleButton btnPrev; - private DevExpress.XtraEditors.SimpleButton simpleButton1; - private DevExpress.XtraEditors.TextEdit txtbDateValue; - private DevExpress.XtraEditors.LabelControl labelControl1; - private DevExpress.XtraEditors.TextEdit txtbDataSource; - private DevExpress.XtraEditors.LabelControl labelControl2; - private DevExpress.XtraEditors.TextEdit txtSourceValue; - private DevExpress.XtraEditors.LabelControl lblSource; - private DevExpress.XtraEditors.TextEdit txtbProcessModuleName; - private DevExpress.XtraEditors.LabelControl lblProcess; - private DevExpress.XtraEditors.TextEdit txtbLevelValue; - private DevExpress.XtraEditors.TextEdit txtbMethod; - private DevExpress.XtraEditors.LabelControl lblLevel; - private DevExpress.XtraEditors.LabelControl lblMethod; - private DevExpress.XtraEditors.TextEdit txtbFileName; - private DevExpress.XtraEditors.LabelControl lblSourceCodeFileName; - private DevExpress.XtraEditors.TextEdit txtbLineNumber; - private DevExpress.XtraEditors.LabelControl lblLineNumber; - private DevExpress.XtraEditors.TextEdit txtbUser; - private DevExpress.XtraEditors.LabelControl lblUser; - private DevExpress.XtraEditors.TextEdit txtID; - private DevExpress.XtraEditors.LabelControl labelControl3; - private DevExpress.XtraEditors.LabelControl labelControl4; - private DevExpress.XtraEditors.TextEdit txtbIndex; - private DevExpress.XtraEditors.MemoEdit memoText; - private DevExpress.XtraEditors.LabelControl lblMachineName; - private DevExpress.XtraEditors.TextEdit txtbMachineName; - private DevExpress.XtraEditors.LabelControl labelControl5; - private DevExpress.XtraEditors.TextEdit txtbProcessId; - private DevExpress.XtraEditors.LabelControl lblThreadId; - private DevExpress.XtraEditors.TextEdit txtbThreadId; - private DevExpress.XtraTab.XtraTabControl xtraTabControlMessageInfo; - private DevExpress.XtraTab.XtraTabPage xtraTabPageText; - private DevExpress.XtraTab.XtraTabPage xtraTabPageAdditionalInformation; - private DevExpress.XtraEditors.MemoEdit memoAdditionalInformation; - private DevExpress.XtraTab.XtraTabPage xtraTabPageRenderedText; - private DevExpress.XtraRichEdit.RichEditControl recMessageDetails; - private DevExpress.XtraEditors.SplitContainerControl splitContainerControl1; - private DevExpress.XtraEditors.SplitContainerControl splitContainerControl2; - private DevExpress.XtraEditors.MemoEdit meSelected; - } -} diff --git a/Analogy/UserControls/MessageDetailsUC.cs b/Analogy/UserControls/MessageDetailsUC.cs deleted file mode 100644 index f182a63b..00000000 --- a/Analogy/UserControls/MessageDetailsUC.cs +++ /dev/null @@ -1,157 +0,0 @@ -using Analogy.Interfaces; -using Analogy.Tools.JsonViewer; -using DevExpress.XtraEditors; -using Markdig; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Windows.Forms; - -namespace Analogy -{ - public partial class MessageDetailsUC : XtraUserControl - { - private AnalogyLogMessage? Message { get; set; } - private List Messages { get; } - private string DataSource { get; } - private MarkdownPipeline? Pipeline { get; set; } - private JsonTreeView _jsonTreeView; - - public MessageDetailsUC() - { - InitializeComponent(); - Messages = new List(0); - } - - public MessageDetailsUC(AnalogyLogMessage msg, List messages, string dataSource) : this() - { - Message = msg; - Messages = messages; - DataSource = dataSource; - - } - - private void UCMessageDetails_Load(object sender, EventArgs e) - { - if (DesignMode) - { - return; - - } - - Pipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions() - .Build(); - xtraTabControlMessageInfo.SelectedTabPage = xtraTabPageRenderedText; - - _jsonTreeView = new JsonTreeView(); - _jsonTreeView.OnNodeChanged += (s, e) => meSelected.Text = e; - splitContainerControl2.Panel1.Controls.Add(_jsonTreeView); - _jsonTreeView.Dock = DockStyle.Fill; - LoadMessage(); - } - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - if (keyData == Keys.Left) - { - LoadPreviousMessage(); - return true; - } - - if (keyData == Keys.Right) - { - LoadNextMessage(); - return true; - } - - return base.ProcessCmdKey(ref msg, keyData); - - } - - public void LoadMessage() - { - if (Message == null) - { - return; - } - - xtraTabPageAdditionalInformation.PageVisible = - Message.AdditionalInformation != null && Message.AdditionalInformation.Any(); - if (Message.AdditionalInformation != null) - { - memoAdditionalInformation.Text = string.Join(Environment.NewLine, - Message.AdditionalInformation.Select(kv => $"{kv.Key}:{kv.Value}")); - } - - memoText.Text = Message.Text; - txtbMachineName.Text = Message.MachineName; - txtID.Text = Message.Id.ToString(); - txtbDataSource.Text = DataSource; - txtbDateValue.Text = Utils.GetOffsetTime(Message.Date).ToString(UserSettingsManager.UserSettings.DateTimePattern); - txtbLevelValue.Text = Message.Level.ToString(); - txtbProcessModuleName.Text = Message.Module; - txtbProcessId.Text = Message.ProcessId.ToString(); - txtbThreadId.Text = Message.ThreadId.ToString(); - txtSourceValue.Text = Message.Source; - txtbMethod.Text = Message.MethodName; - txtbFileName.Text = Message.FileName; - txtbUser.Text = Message.User; - txtbLineNumber.Text = Message.LineNumber.ToString(); - txtbIndex.Text = $@"{Messages.IndexOf(Message) + 1} of {Messages.Count}"; - recMessageDetails.HtmlText = Markdown.ToHtml(Message.Text, Pipeline); - var jsonRawData = Message.RawTextType == AnalogyRowTextType.JSON; - if (jsonRawData) - { - var json = Utils.ExtractJsonObject(jsonRawData ? Message.RawText : Message.Text); - _jsonTreeView.ClearList(); - if (!string.IsNullOrEmpty(json)) - { - _jsonTreeView.ShowJson(json); - } - - splitContainerControl1.PanelVisibility = SplitPanelVisibility.Both; - } - else - { - splitContainerControl1.PanelVisibility = SplitPanelVisibility.Panel1; - } - } - - - private void btnNext_Click(object sender, EventArgs e) - { - LoadNextMessage(); - } - - private void LoadPreviousMessage() - { - if (Messages.First() == Message) - { - return; - } - - Message = Messages[Messages.IndexOf(Message) - 1]; - LoadMessage(); - } - private void LoadNextMessage() - { - if (Messages.Last() == Message) - { - return; - } - - Message = Messages[Messages.IndexOf(Message) + 1]; - LoadMessage(); - } - private void btnPrev_Click(object sender, EventArgs e) - { - LoadPreviousMessage(); - } - - private void sBtnCopy_Click(object sender, EventArgs e) - { - Clipboard.SetText(memoText.Text); - } - - - } -} diff --git a/Analogy/UserControls/MessageDetailsUC.resx b/Analogy/UserControls/MessageDetailsUC.resx deleted file mode 100644 index 8678f070..00000000 --- a/Analogy/UserControls/MessageDetailsUC.resx +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - - 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 - 1QAAAABJRU5ErkJggg== - - - \ No newline at end of file