From 702bc9ad5e7102bd6fe3919fb044bc94ef105ea9 Mon Sep 17 00:00:00 2001 From: amirnachman Date: Mon, 14 Aug 2023 10:09:07 +0300 Subject: [PATCH] Removed some test code --- PipeViewer/FormColumnFilter.Designer.cs | 25 +------------------------ PipeViewer/FormHighlighting.Designer.cs | 25 +------------------------ PipeViewer/PipeChat.cs | 9 --------- 3 files changed, 2 insertions(+), 57 deletions(-) diff --git a/PipeViewer/FormColumnFilter.Designer.cs b/PipeViewer/FormColumnFilter.Designer.cs index bb515c5..1236205 100644 --- a/PipeViewer/FormColumnFilter.Designer.cs +++ b/PipeViewer/FormColumnFilter.Designer.cs @@ -61,30 +61,7 @@ this.comboBoxSearchByColumn.BackColor = System.Drawing.SystemColors.Window; this.comboBoxSearchByColumn.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSearchByColumn.FormattingEnabled = true; - this.comboBoxSearchByColumn.Items.AddRange(new object[] { - "Name", - "IntegrityLevel", - "Permissions", - "SDDL", - "ClientPID", - "PipeType", - "Configuration", - "ReadMode", - "NumberOfLinks", - "DirectoryGrantedAccess", - "GrantedAccess", - "GrantedAccessGeneric", - "OwnerSid", - "OwnerName", - "GroupSid", - "GroupName", - "EndPointType", - "Handle", - "CreationTime", - "FileCreationTime", - "LastAccessTime", - "LastWriteTime", - "ChangeTime"}); + this.comboBoxSearchByColumn.Items.AddRange(Utils.ColumnNames); this.comboBoxSearchByColumn.Location = new System.Drawing.Point(12, 25); this.comboBoxSearchByColumn.Name = "comboBoxSearchByColumn"; this.comboBoxSearchByColumn.Size = new System.Drawing.Size(121, 21); diff --git a/PipeViewer/FormHighlighting.Designer.cs b/PipeViewer/FormHighlighting.Designer.cs index fb6fbd2..4f816e1 100644 --- a/PipeViewer/FormHighlighting.Designer.cs +++ b/PipeViewer/FormHighlighting.Designer.cs @@ -60,30 +60,7 @@ // this.comboBoxColumn.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxColumn.FormattingEnabled = true; - this.comboBoxColumn.Items.AddRange(new object[] { - "Name", - "IntegrityLevel", - "Permissions", - "SDDL", - "ClientPID", - "PipeType", - "Configuration", - "ReadMode", - "NumberOfLinks", - "DirectoryGrantedAccess", - "GrantedAccess", - "GrantedAccessGeneric", - "OwnerSid", - "OwnerName", - "GroupSid", - "GroupName", - "EndPointType", - "Handle", - "CreationTime", - "FileCreationTime", - "LastAccessTime", - "LastWriteTime", - "ChangeTime"}); + this.comboBoxColumn.Items.AddRange(Utils.ColumnNames); this.comboBoxColumn.Location = new System.Drawing.Point(12, 25); this.comboBoxColumn.Name = "comboBoxColumn"; this.comboBoxColumn.Size = new System.Drawing.Size(121, 21); diff --git a/PipeViewer/PipeChat.cs b/PipeViewer/PipeChat.cs index d9f3c51..5595dfc 100644 --- a/PipeViewer/PipeChat.cs +++ b/PipeViewer/PipeChat.cs @@ -34,9 +34,6 @@ namespace PipeViewer dataGridView1.Columns["ColumnText"].DefaultCellStyle.WrapMode = DataGridViewTriState.True; dataGridView1.Columns["ColumnBinary"].DefaultCellStyle.WrapMode = DataGridViewTriState.True; chatHexBox.ByteProvider = new DynamicByteProvider(m_ByteList); - m_Client = new NamedPipeClientStream(".", m_PipeName, PipeDirection.InOut, PipeOptions.Asynchronous); - m_Client.ConnectAsync(); - bool isConnected = m_Client.IsConnected; startClient(); } @@ -108,11 +105,6 @@ namespace PipeViewer } } - public string getConnectionStatus() - { - return this.isConnectedLabel.Text; - } - private string encodeByteToString(byte[] i_Buffer, int i_BytesRead) { StringBuilder encodedString = new StringBuilder(); @@ -132,7 +124,6 @@ namespace PipeViewer sendButton.Enabled = i_EnabledOrDisabled; } - private void addRowToDataGridView(string i_Text, string i_BinaryText = "", Color i_ForeColor = default(Color), Color i_BackColor = default(Color), Bitmap i_Icon = null) { DataGridViewRow dataGridViewRow = new DataGridViewRow();