This commit introduces the AppDiagnostic project structure, including core components like `MainForm`, logging utilities (`LogAdapter`, `LogFilter`), and configuration files. It integrates with `log4net` for logging and uses `SharedComponents` for shared utilities.
279 lines
13 KiB
C#
279 lines
13 KiB
C#
using System.Windows.Forms;
|
|
|
|
namespace AppDiagnostic
|
|
{
|
|
partial class MainForm
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
//private BufferedListView memoListView;
|
|
private System.Windows.Forms.ColumnHeader columnHeaderTime;
|
|
private System.Windows.Forms.ColumnHeader columnHeaderMessage;
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.columnHeaderTime = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.columnHeaderMessage = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.panel1 = new System.Windows.Forms.Panel();
|
|
this.refreshMemoButton = new System.Windows.Forms.Button();
|
|
this.button6 = new System.Windows.Forms.Button();
|
|
this.button7 = new System.Windows.Forms.Button();
|
|
this.filterManagementPanel = new System.Windows.Forms.Panel();
|
|
this.button5 = new System.Windows.Forms.Button();
|
|
this.filterButton = new System.Windows.Forms.Button();
|
|
this.filterTextBox = new System.Windows.Forms.TextBox();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.wndControlPanel = new System.Windows.Forms.Panel();
|
|
this.button2 = new System.Windows.Forms.Button();
|
|
this.flowControlsPanel = new System.Windows.Forms.Panel();
|
|
this.runButton = new System.Windows.Forms.Button();
|
|
this.stopButton = new System.Windows.Forms.Button();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.memoListView = new BufferedListView();
|
|
this.panel1.SuspendLayout();
|
|
this.filterManagementPanel.SuspendLayout();
|
|
this.wndControlPanel.SuspendLayout();
|
|
this.flowControlsPanel.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// columnHeaderTime
|
|
//
|
|
this.columnHeaderTime.Text = "Time";
|
|
this.columnHeaderTime.Width = 150;
|
|
//
|
|
// columnHeaderMessage
|
|
//
|
|
this.columnHeaderMessage.Text = "Message";
|
|
this.columnHeaderMessage.Width = 350;
|
|
//
|
|
// panel1
|
|
//
|
|
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.panel1.Controls.Add(this.refreshMemoButton);
|
|
this.panel1.Controls.Add(this.button6);
|
|
this.panel1.Controls.Add(this.button7);
|
|
this.panel1.Location = new System.Drawing.Point(189, 356);
|
|
this.panel1.Name = "panel1";
|
|
this.panel1.Size = new System.Drawing.Size(283, 26);
|
|
this.panel1.TabIndex = 16;
|
|
//
|
|
// refreshMemoButton
|
|
//
|
|
this.refreshMemoButton.Location = new System.Drawing.Point(108, 0);
|
|
this.refreshMemoButton.Name = "refreshMemoButton";
|
|
this.refreshMemoButton.Size = new System.Drawing.Size(84, 26);
|
|
this.refreshMemoButton.TabIndex = 17;
|
|
this.refreshMemoButton.Text = "Refresh memo";
|
|
this.refreshMemoButton.UseVisualStyleBackColor = true;
|
|
this.refreshMemoButton.Click += new System.EventHandler(this.refreshMemoButton_Click);
|
|
//
|
|
// button6
|
|
//
|
|
this.button6.Location = new System.Drawing.Point(0, 0);
|
|
this.button6.Name = "button6";
|
|
this.button6.Size = new System.Drawing.Size(102, 26);
|
|
this.button6.TabIndex = 4;
|
|
this.button6.Text = "Clean diag cache";
|
|
this.button6.UseVisualStyleBackColor = true;
|
|
this.button6.Click += new System.EventHandler(this.button6_Click);
|
|
//
|
|
// button7
|
|
//
|
|
this.button7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.button7.Location = new System.Drawing.Point(198, 0);
|
|
this.button7.Name = "button7";
|
|
this.button7.Size = new System.Drawing.Size(72, 26);
|
|
this.button7.TabIndex = 5;
|
|
this.button7.Text = "Save logs";
|
|
this.button7.UseVisualStyleBackColor = true;
|
|
this.button7.Click += new System.EventHandler(this.button7_Click);
|
|
//
|
|
// filterManagementPanel
|
|
//
|
|
this.filterManagementPanel.Controls.Add(this.button5);
|
|
this.filterManagementPanel.Controls.Add(this.filterButton);
|
|
this.filterManagementPanel.Controls.Add(this.filterTextBox);
|
|
this.filterManagementPanel.Controls.Add(this.label2);
|
|
this.filterManagementPanel.Location = new System.Drawing.Point(127, 6);
|
|
this.filterManagementPanel.Name = "filterManagementPanel";
|
|
this.filterManagementPanel.Size = new System.Drawing.Size(393, 26);
|
|
this.filterManagementPanel.TabIndex = 15;
|
|
//
|
|
// button5
|
|
//
|
|
this.button5.Enabled = false;
|
|
this.button5.Location = new System.Drawing.Point(294, 4);
|
|
this.button5.Name = "button5";
|
|
this.button5.Size = new System.Drawing.Size(81, 20);
|
|
this.button5.TabIndex = 11;
|
|
this.button5.Text = "Add new filter";
|
|
this.button5.UseVisualStyleBackColor = true;
|
|
//
|
|
// filterButton
|
|
//
|
|
this.filterButton.Location = new System.Drawing.Point(225, 4);
|
|
this.filterButton.Name = "filterButton";
|
|
this.filterButton.Size = new System.Drawing.Size(64, 20);
|
|
this.filterButton.TabIndex = 10;
|
|
this.filterButton.Text = "Set filter";
|
|
this.filterButton.UseVisualStyleBackColor = true;
|
|
this.filterButton.Click += new System.EventHandler(this.filterButton_Click_1);
|
|
//
|
|
// filterTextBox
|
|
//
|
|
this.filterTextBox.Location = new System.Drawing.Point(33, 4);
|
|
this.filterTextBox.Name = "filterTextBox";
|
|
this.filterTextBox.Size = new System.Drawing.Size(187, 20);
|
|
this.filterTextBox.TabIndex = 7;
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(3, 8);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(29, 13);
|
|
this.label2.TabIndex = 6;
|
|
this.label2.Text = "Filter";
|
|
//
|
|
// wndControlPanel
|
|
//
|
|
this.wndControlPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.wndControlPanel.Controls.Add(this.button2);
|
|
this.wndControlPanel.Location = new System.Drawing.Point(831, 356);
|
|
this.wndControlPanel.Name = "wndControlPanel";
|
|
this.wndControlPanel.Size = new System.Drawing.Size(70, 26);
|
|
this.wndControlPanel.TabIndex = 14;
|
|
//
|
|
// button2
|
|
//
|
|
this.button2.Location = new System.Drawing.Point(3, 0);
|
|
this.button2.Name = "button2";
|
|
this.button2.Size = new System.Drawing.Size(64, 26);
|
|
this.button2.TabIndex = 2;
|
|
this.button2.Text = "Close";
|
|
this.button2.UseVisualStyleBackColor = true;
|
|
this.button2.Click += new System.EventHandler(this.button2_Click);
|
|
//
|
|
// flowControlsPanel
|
|
//
|
|
this.flowControlsPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.flowControlsPanel.Controls.Add(this.runButton);
|
|
this.flowControlsPanel.Controls.Add(this.stopButton);
|
|
this.flowControlsPanel.Location = new System.Drawing.Point(12, 356);
|
|
this.flowControlsPanel.Name = "flowControlsPanel";
|
|
this.flowControlsPanel.Size = new System.Drawing.Size(133, 26);
|
|
this.flowControlsPanel.TabIndex = 13;
|
|
//
|
|
// runButton
|
|
//
|
|
this.runButton.Enabled = false;
|
|
this.runButton.Location = new System.Drawing.Point(0, 0);
|
|
this.runButton.Name = "runButton";
|
|
this.runButton.Size = new System.Drawing.Size(64, 26);
|
|
this.runButton.TabIndex = 4;
|
|
this.runButton.Text = "Run";
|
|
this.runButton.UseVisualStyleBackColor = true;
|
|
this.runButton.Click += new System.EventHandler(this.runButton_Click);
|
|
//
|
|
// stopButton
|
|
//
|
|
this.stopButton.Location = new System.Drawing.Point(69, 0);
|
|
this.stopButton.Name = "stopButton";
|
|
this.stopButton.Size = new System.Drawing.Size(64, 26);
|
|
this.stopButton.TabIndex = 5;
|
|
this.stopButton.Text = "Stop";
|
|
this.stopButton.UseVisualStyleBackColor = true;
|
|
this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(12, 19);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(76, 13);
|
|
this.label1.TabIndex = 12;
|
|
this.label1.Text = "Flow of events";
|
|
//
|
|
// memoListView
|
|
//
|
|
this.memoListView.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.memoListView.FullRowSelect = true;
|
|
this.memoListView.GridLines = true;
|
|
this.memoListView.HideSelection = false;
|
|
this.memoListView.Location = new System.Drawing.Point(12, 38);
|
|
this.memoListView.Name = "memoListView";
|
|
this.memoListView.Size = new System.Drawing.Size(889, 312);
|
|
this.memoListView.TabIndex = 0;
|
|
this.memoListView.UseCompatibleStateImageBehavior = false;
|
|
this.memoListView.View = System.Windows.Forms.View.Details;
|
|
|
|
this.memoListView.DoubleClick += new System.EventHandler(this.MemoListView_DoubleClick);
|
|
//
|
|
// MainForm
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(913, 388);
|
|
this.Controls.Add(this.memoListView);
|
|
this.Controls.Add(this.panel1);
|
|
this.Controls.Add(this.filterManagementPanel);
|
|
this.Controls.Add(this.wndControlPanel);
|
|
this.Controls.Add(this.flowControlsPanel);
|
|
this.Controls.Add(this.label1);
|
|
this.Name = "MainForm";
|
|
this.Text = "Application live diagnostic";
|
|
this.panel1.ResumeLayout(false);
|
|
this.filterManagementPanel.ResumeLayout(false);
|
|
this.filterManagementPanel.PerformLayout();
|
|
this.wndControlPanel.ResumeLayout(false);
|
|
this.flowControlsPanel.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Panel panel1;
|
|
private System.Windows.Forms.Button button6;
|
|
private System.Windows.Forms.Button button7;
|
|
private System.Windows.Forms.Panel filterManagementPanel;
|
|
private System.Windows.Forms.Button button5;
|
|
private System.Windows.Forms.Button filterButton;
|
|
private System.Windows.Forms.TextBox filterTextBox;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.Panel wndControlPanel;
|
|
private System.Windows.Forms.Button button2;
|
|
private System.Windows.Forms.Panel flowControlsPanel;
|
|
private System.Windows.Forms.Button runButton;
|
|
private System.Windows.Forms.Button stopButton;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Button refreshMemoButton;
|
|
private BufferedListView memoListView;
|
|
}
|
|
}
|
|
|