diff --git a/Programs/WinGridProxy/AboutBox1.Designer.cs b/Programs/WinGridProxy/AboutBox1.Designer.cs new file mode 100644 index 00000000..27e80e6a --- /dev/null +++ b/Programs/WinGridProxy/AboutBox1.Designer.cs @@ -0,0 +1,200 @@ +namespace WinGridProxy +{ + partial class AboutBox1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); + this.labelProductName = new System.Windows.Forms.Label(); + this.labelVersion = new System.Windows.Forms.Label(); + this.labelCopyright = new System.Windows.Forms.Label(); + this.labelCompanyName = new System.Windows.Forms.Label(); + this.textBoxDescription = new System.Windows.Forms.TextBox(); + this.okButton = new System.Windows.Forms.Button(); + this.logoPictureBox = new System.Windows.Forms.PictureBox(); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.tableLayoutPanel.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit(); + this.SuspendLayout(); + // + // tableLayoutPanel + // + this.tableLayoutPanel.ColumnCount = 2; + this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F)); + this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 67F)); + this.tableLayoutPanel.Controls.Add(this.logoPictureBox, 0, 0); + this.tableLayoutPanel.Controls.Add(this.labelProductName, 1, 0); + this.tableLayoutPanel.Controls.Add(this.labelVersion, 1, 1); + this.tableLayoutPanel.Controls.Add(this.labelCopyright, 1, 2); + this.tableLayoutPanel.Controls.Add(this.labelCompanyName, 1, 3); + this.tableLayoutPanel.Controls.Add(this.textBoxDescription, 1, 4); + this.tableLayoutPanel.Controls.Add(this.okButton, 1, 6); + this.tableLayoutPanel.Controls.Add(this.richTextBox1, 1, 5); + this.tableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel.Location = new System.Drawing.Point(9, 9); + this.tableLayoutPanel.Name = "tableLayoutPanel"; + this.tableLayoutPanel.RowCount = 7; + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 24.69136F)); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 35.80247F)); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); + this.tableLayoutPanel.Size = new System.Drawing.Size(417, 265); + this.tableLayoutPanel.TabIndex = 0; + // + // labelProductName + // + this.labelProductName.Dock = System.Windows.Forms.DockStyle.Fill; + this.labelProductName.Location = new System.Drawing.Point(143, 0); + this.labelProductName.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0); + this.labelProductName.MaximumSize = new System.Drawing.Size(0, 17); + this.labelProductName.Name = "labelProductName"; + this.labelProductName.Size = new System.Drawing.Size(271, 17); + this.labelProductName.TabIndex = 19; + this.labelProductName.Text = "Product Name"; + this.labelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // labelVersion + // + this.labelVersion.Dock = System.Windows.Forms.DockStyle.Fill; + this.labelVersion.Location = new System.Drawing.Point(143, 23); + this.labelVersion.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0); + this.labelVersion.MaximumSize = new System.Drawing.Size(0, 17); + this.labelVersion.Name = "labelVersion"; + this.labelVersion.Size = new System.Drawing.Size(271, 17); + this.labelVersion.TabIndex = 0; + this.labelVersion.Text = "Version"; + this.labelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // labelCopyright + // + this.labelCopyright.Dock = System.Windows.Forms.DockStyle.Fill; + this.labelCopyright.Location = new System.Drawing.Point(143, 46); + this.labelCopyright.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0); + this.labelCopyright.MaximumSize = new System.Drawing.Size(0, 17); + this.labelCopyright.Name = "labelCopyright"; + this.labelCopyright.Size = new System.Drawing.Size(271, 17); + this.labelCopyright.TabIndex = 21; + this.labelCopyright.Text = "Copyright"; + this.labelCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // labelCompanyName + // + this.labelCompanyName.Dock = System.Windows.Forms.DockStyle.Fill; + this.labelCompanyName.Location = new System.Drawing.Point(143, 69); + this.labelCompanyName.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0); + this.labelCompanyName.MaximumSize = new System.Drawing.Size(0, 17); + this.labelCompanyName.Name = "labelCompanyName"; + this.labelCompanyName.Size = new System.Drawing.Size(271, 17); + this.labelCompanyName.TabIndex = 22; + this.labelCompanyName.Text = "Company Name"; + this.labelCompanyName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // textBoxDescription + // + this.textBoxDescription.Dock = System.Windows.Forms.DockStyle.Fill; + this.textBoxDescription.Location = new System.Drawing.Point(143, 95); + this.textBoxDescription.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3); + this.textBoxDescription.Multiline = true; + this.textBoxDescription.Name = "textBoxDescription"; + this.textBoxDescription.ReadOnly = true; + this.textBoxDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBoxDescription.Size = new System.Drawing.Size(271, 52); + this.textBoxDescription.TabIndex = 23; + this.textBoxDescription.TabStop = false; + this.textBoxDescription.Text = "Description"; + // + // okButton + // + this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.okButton.Location = new System.Drawing.Point(339, 239); + this.okButton.Name = "okButton"; + this.okButton.Size = new System.Drawing.Size(75, 23); + this.okButton.TabIndex = 24; + this.okButton.Text = "&OK"; + // + // logoPictureBox + // + this.logoPictureBox.Dock = System.Windows.Forms.DockStyle.Fill; + this.logoPictureBox.Image = global::WinGridProxy.Properties.Resources.InstallWelcome; + this.logoPictureBox.Location = new System.Drawing.Point(3, 3); + this.logoPictureBox.Name = "logoPictureBox"; + this.tableLayoutPanel.SetRowSpan(this.logoPictureBox, 6); + this.logoPictureBox.Size = new System.Drawing.Size(131, 229); + this.logoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.logoPictureBox.TabIndex = 12; + this.logoPictureBox.TabStop = false; + // + // richTextBox1 + // + this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox1.Enabled = false; + this.richTextBox1.Location = new System.Drawing.Point(140, 153); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.Size = new System.Drawing.Size(274, 79); + this.richTextBox1.TabIndex = 25; + this.richTextBox1.Text = "Icons Courtesy of http://www.famfamfam.com/lab/icons/silk/\n\nHexbox Control \nhttp:" + + "//sourceforge.net/projects/hexbox/"; + // + // AboutBox1 + // + this.AcceptButton = this.okButton; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(435, 283); + this.Controls.Add(this.tableLayoutPanel); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "AboutBox1"; + this.Padding = new System.Windows.Forms.Padding(9); + this.ShowIcon = false; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "AboutBox1"; + this.tableLayoutPanel.ResumeLayout(false); + this.tableLayoutPanel.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel; + private System.Windows.Forms.PictureBox logoPictureBox; + private System.Windows.Forms.Label labelProductName; + private System.Windows.Forms.Label labelVersion; + private System.Windows.Forms.Label labelCopyright; + private System.Windows.Forms.Label labelCompanyName; + private System.Windows.Forms.TextBox textBoxDescription; + private System.Windows.Forms.Button okButton; + private System.Windows.Forms.RichTextBox richTextBox1; + } +} diff --git a/Programs/WinGridProxy/AboutBox1.cs b/Programs/WinGridProxy/AboutBox1.cs new file mode 100644 index 00000000..64e57d73 --- /dev/null +++ b/Programs/WinGridProxy/AboutBox1.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Reflection; +using System.Windows.Forms; + +namespace WinGridProxy +{ + partial class AboutBox1 : Form + { + public AboutBox1() + { + InitializeComponent(); + this.Text = String.Format("About {0} {0}", AssemblyTitle); + this.labelProductName.Text = AssemblyProduct; + this.labelVersion.Text = String.Format("Version {0} {0}", AssemblyVersion); + this.labelCopyright.Text = AssemblyCopyright; + this.labelCompanyName.Text = AssemblyCompany; + this.textBoxDescription.Text = AssemblyDescription; + } + + #region Assembly Attribute Accessors + + public string AssemblyTitle + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false); + if (attributes.Length > 0) + { + AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0]; + if (titleAttribute.Title != "") + { + return titleAttribute.Title; + } + } + return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase); + } + } + + public string AssemblyVersion + { + get + { + return Assembly.GetExecutingAssembly().GetName().Version.ToString(); + } + } + + public string AssemblyDescription + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false); + if (attributes.Length == 0) + { + return ""; + } + return ((AssemblyDescriptionAttribute)attributes[0]).Description; + } + } + + public string AssemblyProduct + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false); + if (attributes.Length == 0) + { + return ""; + } + return ((AssemblyProductAttribute)attributes[0]).Product; + } + } + + public string AssemblyCopyright + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); + if (attributes.Length == 0) + { + return ""; + } + return ((AssemblyCopyrightAttribute)attributes[0]).Copyright; + } + } + + public string AssemblyCompany + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false); + if (attributes.Length == 0) + { + return ""; + } + return ((AssemblyCompanyAttribute)attributes[0]).Company; + } + } + #endregion + } +} diff --git a/Programs/WinGridProxy/AboutBox1.resx b/Programs/WinGridProxy/AboutBox1.resx new file mode 100644 index 00000000..5ea0895e --- /dev/null +++ b/Programs/WinGridProxy/AboutBox1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Programs/WinGridProxy/Form1.Designer.cs b/Programs/WinGridProxy/Form1.Designer.cs index 4ecf26e0..fde5c6b7 100644 --- a/Programs/WinGridProxy/Form1.Designer.cs +++ b/Programs/WinGridProxy/Form1.Designer.cs @@ -40,12 +40,6 @@ this.textBoxProxyListenIP = new System.Windows.Forms.TextBox(); this.panel2 = new System.Windows.Forms.Panel(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.listViewSessions = new WinGridProxy.ListViewNoFlicker(); - this.columnHeaderCounter = new System.Windows.Forms.ColumnHeader(); - this.columnHeaderProtocol = new System.Windows.Forms.ColumnHeader(); - this.columnHeaderType = new System.Windows.Forms.ColumnHeader(); - this.columnHeaderSize = new System.Windows.Forms.ColumnHeader(); - this.columnHeaderUrl = new System.Windows.Forms.ColumnHeader(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPageSummary = new System.Windows.Forms.TabPage(); @@ -70,10 +64,7 @@ this.grpUDPFilters = new System.Windows.Forms.GroupBox(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkedListBoxFiltersPackets = new System.Windows.Forms.CheckedListBox(); - this.grpCapsFilters = new System.Windows.Forms.GroupBox(); - this.checkBox2 = new System.Windows.Forms.CheckBox(); this.button2 = new System.Windows.Forms.Button(); - this.checkedListBoxFiltersMessages = new System.Windows.Forms.CheckedListBox(); this.tabPageInspect = new System.Windows.Forms.TabPage(); this.splitContainer3 = new System.Windows.Forms.SplitContainer(); this.tabControlInspectorRequest = new System.Windows.Forms.TabControl(); @@ -99,6 +90,7 @@ this.buttonInjectPacket = new System.Windows.Forms.Button(); this.richTextBoxInject = new System.Windows.Forms.RichTextBox(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); + this.timer1 = new System.Windows.Forms.Timer(this.components); this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton(); this.captureTrafficToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); @@ -130,7 +122,17 @@ this.toolStripDropDownButton3 = new System.Windows.Forms.ToolStripDropDownButton(); this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.timer1 = new System.Windows.Forms.Timer(this.components); + this.toolStripButton1 = new System.Windows.Forms.ToolStripDropDownButton(); + this.aboutWinGridProxyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.grpCapsFilters = new System.Windows.Forms.GroupBox(); + this.checkedListBoxFiltersMessages = new System.Windows.Forms.CheckedListBox(); + this.checkBox2 = new System.Windows.Forms.CheckBox(); + this.listViewSessions = new WinGridProxy.ListViewNoFlicker(); + this.columnHeaderCounter = new System.Windows.Forms.ColumnHeader(); + this.columnHeaderProtocol = new System.Windows.Forms.ColumnHeader(); + this.columnHeaderType = new System.Windows.Forms.ColumnHeader(); + this.columnHeaderSize = new System.Windows.Forms.ColumnHeader(); + this.columnHeaderUrl = new System.Windows.Forms.ColumnHeader(); this.panelProxyConfig.SuspendLayout(); this.panel2.SuspendLayout(); this.splitContainer1.Panel1.SuspendLayout(); @@ -146,7 +148,6 @@ this.splitContainer2.Panel2.SuspendLayout(); this.splitContainer2.SuspendLayout(); this.grpUDPFilters.SuspendLayout(); - this.grpCapsFilters.SuspendLayout(); this.tabPageInspect.SuspendLayout(); this.splitContainer3.Panel1.SuspendLayout(); this.splitContainer3.Panel2.SuspendLayout(); @@ -163,6 +164,7 @@ this.statusStrip1.SuspendLayout(); this.tabPageInject.SuspendLayout(); this.toolStrip1.SuspendLayout(); + this.grpCapsFilters.SuspendLayout(); this.SuspendLayout(); // // panelProxyConfig @@ -270,51 +272,6 @@ this.splitContainer1.SplitterDistance = 464; this.splitContainer1.TabIndex = 0; // - // listViewSessions - // - this.listViewSessions.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.columnHeaderCounter, - this.columnHeaderProtocol, - this.columnHeaderType, - this.columnHeaderSize, - this.columnHeaderUrl}); - this.listViewSessions.Dock = System.Windows.Forms.DockStyle.Fill; - this.listViewSessions.FullRowSelect = true; - this.listViewSessions.GridLines = true; - this.listViewSessions.HideSelection = false; - this.listViewSessions.Location = new System.Drawing.Point(0, 0); - this.listViewSessions.Name = "listViewSessions"; - this.listViewSessions.Size = new System.Drawing.Size(464, 428); - this.listViewSessions.SmallImageList = this.imageList1; - this.listViewSessions.TabIndex = 0; - this.listViewSessions.UseCompatibleStateImageBehavior = false; - this.listViewSessions.View = System.Windows.Forms.View.Details; - this.listViewSessions.ItemSelectionChanged += new System.Windows.Forms.ListViewItemSelectionChangedEventHandler(this.listViewSessions_ItemSelectionChanged); - // - // columnHeaderCounter - // - this.columnHeaderCounter.Text = "#"; - this.columnHeaderCounter.Width = 42; - // - // columnHeaderProtocol - // - this.columnHeaderProtocol.Text = "Protocol"; - this.columnHeaderProtocol.Width = 55; - // - // columnHeaderType - // - this.columnHeaderType.Text = "Packet Type"; - this.columnHeaderType.Width = 139; - // - // columnHeaderSize - // - this.columnHeaderSize.Text = "Bytes"; - // - // columnHeaderUrl - // - this.columnHeaderUrl.Text = "URL"; - this.columnHeaderUrl.Width = 312; - // // imageList1 // this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); @@ -525,10 +482,13 @@ // // splitContainer2.Panel1 // + this.splitContainer2.Panel1.Controls.Add(this.checkBox1); this.splitContainer2.Panel1.Controls.Add(this.grpUDPFilters); // // splitContainer2.Panel2 // + this.splitContainer2.Panel2.Controls.Add(this.checkBox2); + this.splitContainer2.Panel2.Controls.Add(this.button2); this.splitContainer2.Panel2.Controls.Add(this.grpCapsFilters); this.splitContainer2.Size = new System.Drawing.Size(587, 390); this.splitContainer2.SplitterDistance = 294; @@ -539,20 +499,20 @@ this.grpUDPFilters.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.grpUDPFilters.Controls.Add(this.checkBox1); this.grpUDPFilters.Controls.Add(this.checkedListBoxFiltersPackets); this.grpUDPFilters.Enabled = false; this.grpUDPFilters.Location = new System.Drawing.Point(3, 3); this.grpUDPFilters.Name = "grpUDPFilters"; - this.grpUDPFilters.Size = new System.Drawing.Size(285, 374); + this.grpUDPFilters.Size = new System.Drawing.Size(285, 357); this.grpUDPFilters.TabIndex = 0; this.grpUDPFilters.TabStop = false; this.grpUDPFilters.Text = "UDP Packets"; // // checkBox1 // + this.checkBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.checkBox1.AutoSize = true; - this.checkBox1.Location = new System.Drawing.Point(6, 351); + this.checkBox1.Location = new System.Drawing.Point(3, 369); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(120, 17); this.checkBox1.TabIndex = 1; @@ -569,60 +529,21 @@ this.checkedListBoxFiltersPackets.FormattingEnabled = true; this.checkedListBoxFiltersPackets.Location = new System.Drawing.Point(6, 19); this.checkedListBoxFiltersPackets.Name = "checkedListBoxFiltersPackets"; - this.checkedListBoxFiltersPackets.Size = new System.Drawing.Size(273, 319); + this.checkedListBoxFiltersPackets.Size = new System.Drawing.Size(273, 334); this.checkedListBoxFiltersPackets.TabIndex = 0; this.checkedListBoxFiltersPackets.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.checkedListBox1_ItemCheck); // - // grpCapsFilters - // - this.grpCapsFilters.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.grpCapsFilters.Controls.Add(this.checkBox2); - this.grpCapsFilters.Controls.Add(this.button2); - this.grpCapsFilters.Controls.Add(this.checkedListBoxFiltersMessages); - this.grpCapsFilters.Enabled = false; - this.grpCapsFilters.Location = new System.Drawing.Point(3, 3); - this.grpCapsFilters.Name = "grpCapsFilters"; - this.grpCapsFilters.Size = new System.Drawing.Size(286, 374); - this.grpCapsFilters.TabIndex = 1; - this.grpCapsFilters.TabStop = false; - this.grpCapsFilters.Text = "Capabilities Messages"; - // - // checkBox2 - // - this.checkBox2.AutoSize = true; - this.checkBox2.Location = new System.Drawing.Point(6, 351); - this.checkBox2.Name = "checkBox2"; - this.checkBox2.Size = new System.Drawing.Size(120, 17); - this.checkBox2.TabIndex = 2; - this.checkBox2.Text = "Check/Uncheck All"; - this.checkBox2.UseVisualStyleBackColor = true; - this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBoxCheckallCaps_CheckedChanged); - // // button2 // - this.button2.Location = new System.Drawing.Point(205, 348); + this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.button2.Location = new System.Drawing.Point(200, 366); this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(75, 20); + this.button2.Size = new System.Drawing.Size(86, 21); this.button2.TabIndex = 1; this.button2.Text = "Refresh"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.buttonRefreshCapsList_Click); // - // checkedListBoxFiltersMessages - // - this.checkedListBoxFiltersMessages.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.checkedListBoxFiltersMessages.CheckOnClick = true; - this.checkedListBoxFiltersMessages.FormattingEnabled = true; - this.checkedListBoxFiltersMessages.Location = new System.Drawing.Point(6, 19); - this.checkedListBoxFiltersMessages.Name = "checkedListBoxFiltersMessages"; - this.checkedListBoxFiltersMessages.Size = new System.Drawing.Size(274, 319); - this.checkedListBoxFiltersMessages.TabIndex = 0; - this.checkedListBoxFiltersMessages.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.checkedListBoxCaps_ItemCheck); - // // tabPageInspect // this.tabPageInspect.Controls.Add(this.splitContainer3); @@ -902,13 +823,18 @@ this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripDropDownButton1, this.toolStripDropDownButton2, - this.toolStripDropDownButton3}); + this.toolStripDropDownButton3, + this.toolStripButton1}); this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new System.Drawing.Size(1094, 25); this.toolStrip1.TabIndex = 2; this.toolStrip1.Text = "toolStrip1"; // + // timer1 + // + this.timer1.Tick += new System.EventHandler(this.timer1_Tick); + // // toolStripDropDownButton1 // this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; @@ -1071,47 +997,47 @@ // redToolStripMenuItem // this.redToolStripMenuItem.Name = "redToolStripMenuItem"; - this.redToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.redToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.redToolStripMenuItem.Text = "Red"; this.redToolStripMenuItem.Click += new System.EventHandler(this.MarkColorToolStripMenuItem_Click); // // goldToolStripMenuItem // this.goldToolStripMenuItem.Name = "goldToolStripMenuItem"; - this.goldToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.goldToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.goldToolStripMenuItem.Text = "Gold"; this.goldToolStripMenuItem.Click += new System.EventHandler(this.MarkColorToolStripMenuItem_Click); // // orangeToolStripMenuItem // this.orangeToolStripMenuItem.Name = "orangeToolStripMenuItem"; - this.orangeToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.orangeToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.orangeToolStripMenuItem.Text = "Orange"; this.orangeToolStripMenuItem.Click += new System.EventHandler(this.MarkColorToolStripMenuItem_Click); // // purpleToolStripMenuItem // this.purpleToolStripMenuItem.Name = "purpleToolStripMenuItem"; - this.purpleToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.purpleToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.purpleToolStripMenuItem.Text = "Purple"; this.purpleToolStripMenuItem.Click += new System.EventHandler(this.MarkColorToolStripMenuItem_Click); // // yellowToolStripMenuItem // this.yellowToolStripMenuItem.Name = "yellowToolStripMenuItem"; - this.yellowToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.yellowToolStripMenuItem.Size = new System.Drawing.Size(124, 22); this.yellowToolStripMenuItem.Text = "Yellow"; this.yellowToolStripMenuItem.Click += new System.EventHandler(this.MarkColorToolStripMenuItem_Click); // // toolStripSeparator5 // this.toolStripSeparator5.Name = "toolStripSeparator5"; - this.toolStripSeparator5.Size = new System.Drawing.Size(149, 6); + this.toolStripSeparator5.Size = new System.Drawing.Size(121, 6); // // removeToolStripMenuItem1 // this.removeToolStripMenuItem1.Name = "removeToolStripMenuItem1"; - this.removeToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.removeToolStripMenuItem1.Size = new System.Drawing.Size(124, 22); this.removeToolStripMenuItem1.Text = "Remove"; this.removeToolStripMenuItem1.Click += new System.EventHandler(this.removeToolStripMenuItem1_Click); // @@ -1151,9 +1077,107 @@ this.loadToolStripMenuItem.Size = new System.Drawing.Size(160, 22); this.loadToolStripMenuItem.Text = "Load Selections"; // - // timer1 + // toolStripButton1 // - this.timer1.Tick += new System.EventHandler(this.timer1_Tick); + this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.toolStripButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.aboutWinGridProxyToolStripMenuItem}); + this.toolStripButton1.Image = global::WinGridProxy.Properties.Resources.Help; + this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton1.Name = "toolStripButton1"; + this.toolStripButton1.Size = new System.Drawing.Size(29, 22); + this.toolStripButton1.Text = "toolStripButton1"; + // + // aboutWinGridProxyToolStripMenuItem + // + this.aboutWinGridProxyToolStripMenuItem.Name = "aboutWinGridProxyToolStripMenuItem"; + this.aboutWinGridProxyToolStripMenuItem.Size = new System.Drawing.Size(182, 22); + this.aboutWinGridProxyToolStripMenuItem.Text = "About WinGridProxy"; + this.aboutWinGridProxyToolStripMenuItem.Click += new System.EventHandler(this.aboutWinGridProxyToolStripMenuItem_Click); + // + // grpCapsFilters + // + this.grpCapsFilters.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.grpCapsFilters.Controls.Add(this.checkedListBoxFiltersMessages); + this.grpCapsFilters.Enabled = false; + this.grpCapsFilters.Location = new System.Drawing.Point(3, 3); + this.grpCapsFilters.Name = "grpCapsFilters"; + this.grpCapsFilters.Size = new System.Drawing.Size(283, 357); + this.grpCapsFilters.TabIndex = 1; + this.grpCapsFilters.TabStop = false; + this.grpCapsFilters.Text = "Capabilities Messages"; + // + // checkedListBoxFiltersMessages + // + this.checkedListBoxFiltersMessages.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.checkedListBoxFiltersMessages.CheckOnClick = true; + this.checkedListBoxFiltersMessages.FormattingEnabled = true; + this.checkedListBoxFiltersMessages.Location = new System.Drawing.Point(6, 19); + this.checkedListBoxFiltersMessages.Name = "checkedListBoxFiltersMessages"; + this.checkedListBoxFiltersMessages.Size = new System.Drawing.Size(271, 334); + this.checkedListBoxFiltersMessages.TabIndex = 0; + this.checkedListBoxFiltersMessages.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.checkedListBoxCaps_ItemCheck); + // + // checkBox2 + // + this.checkBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.checkBox2.AutoSize = true; + this.checkBox2.Location = new System.Drawing.Point(3, 370); + this.checkBox2.Name = "checkBox2"; + this.checkBox2.Size = new System.Drawing.Size(120, 17); + this.checkBox2.TabIndex = 2; + this.checkBox2.Text = "Check/Uncheck All"; + this.checkBox2.UseVisualStyleBackColor = true; + this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBoxCheckallCaps_CheckedChanged); + // + // listViewSessions + // + this.listViewSessions.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.columnHeaderCounter, + this.columnHeaderProtocol, + this.columnHeaderType, + this.columnHeaderSize, + this.columnHeaderUrl}); + this.listViewSessions.Dock = System.Windows.Forms.DockStyle.Fill; + this.listViewSessions.FullRowSelect = true; + this.listViewSessions.GridLines = true; + this.listViewSessions.HideSelection = false; + this.listViewSessions.Location = new System.Drawing.Point(0, 0); + this.listViewSessions.Name = "listViewSessions"; + this.listViewSessions.Size = new System.Drawing.Size(464, 428); + this.listViewSessions.SmallImageList = this.imageList1; + this.listViewSessions.TabIndex = 0; + this.listViewSessions.UseCompatibleStateImageBehavior = false; + this.listViewSessions.View = System.Windows.Forms.View.Details; + this.listViewSessions.ItemSelectionChanged += new System.Windows.Forms.ListViewItemSelectionChangedEventHandler(this.listViewSessions_ItemSelectionChanged); + // + // columnHeaderCounter + // + this.columnHeaderCounter.Text = "#"; + this.columnHeaderCounter.Width = 42; + // + // columnHeaderProtocol + // + this.columnHeaderProtocol.Text = "Protocol"; + this.columnHeaderProtocol.Width = 55; + // + // columnHeaderType + // + this.columnHeaderType.Text = "Packet Type"; + this.columnHeaderType.Width = 139; + // + // columnHeaderSize + // + this.columnHeaderSize.Text = "Bytes"; + // + // columnHeaderUrl + // + this.columnHeaderUrl.Text = "URL"; + this.columnHeaderUrl.Width = 312; // // Form1 // @@ -1182,12 +1206,11 @@ this.groupBox1.PerformLayout(); this.tabPageFilters.ResumeLayout(false); this.splitContainer2.Panel1.ResumeLayout(false); + this.splitContainer2.Panel1.PerformLayout(); this.splitContainer2.Panel2.ResumeLayout(false); + this.splitContainer2.Panel2.PerformLayout(); this.splitContainer2.ResumeLayout(false); this.grpUDPFilters.ResumeLayout(false); - this.grpUDPFilters.PerformLayout(); - this.grpCapsFilters.ResumeLayout(false); - this.grpCapsFilters.PerformLayout(); this.tabPageInspect.ResumeLayout(false); this.splitContainer3.Panel1.ResumeLayout(false); this.splitContainer3.Panel2.ResumeLayout(false); @@ -1209,6 +1232,7 @@ this.tabPageInject.ResumeLayout(false); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); + this.grpCapsFilters.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); @@ -1232,14 +1256,11 @@ private System.Windows.Forms.TabPage tabPageFilters; private System.Windows.Forms.SplitContainer splitContainer2; private System.Windows.Forms.CheckedListBox checkedListBoxFiltersPackets; - private System.Windows.Forms.CheckedListBox checkedListBoxFiltersMessages; private System.Windows.Forms.GroupBox grpUDPFilters; - private System.Windows.Forms.GroupBox grpCapsFilters; private System.Windows.Forms.TabPage tabPageInject; private System.Windows.Forms.RichTextBox richTextBoxInject; private System.Windows.Forms.CheckBox checkBox1; private System.Windows.Forms.Button button2; - private System.Windows.Forms.CheckBox checkBox2; private System.Windows.Forms.ColumnHeader columnHeaderCounter; private System.Windows.Forms.ColumnHeader columnHeaderProtocol; private System.Windows.Forms.ColumnHeader columnHeaderType; @@ -1317,6 +1338,11 @@ private System.Windows.Forms.ToolStripMenuItem yellowToolStripMenuItem; private System.Windows.Forms.ToolStripSeparator toolStripSeparator5; private System.Windows.Forms.ToolStripMenuItem removeToolStripMenuItem1; + private System.Windows.Forms.ToolStripDropDownButton toolStripButton1; + private System.Windows.Forms.ToolStripMenuItem aboutWinGridProxyToolStripMenuItem; + private System.Windows.Forms.CheckBox checkBox2; + private System.Windows.Forms.GroupBox grpCapsFilters; + private System.Windows.Forms.CheckedListBox checkedListBoxFiltersMessages; } } diff --git a/Programs/WinGridProxy/Form1.cs b/Programs/WinGridProxy/Form1.cs index b32cbc41..ce767cc0 100644 --- a/Programs/WinGridProxy/Form1.cs +++ b/Programs/WinGridProxy/Form1.cs @@ -673,6 +673,12 @@ namespace WinGridProxy item.BackColor = Color.White; } noneToolStripMenuItem_Click(sender, e); + } + + private void aboutWinGridProxyToolStripMenuItem_Click(object sender, EventArgs e) + { + AboutBox1 about = new AboutBox1(); + about.ShowDialog(); } } diff --git a/Programs/WinGridProxy/Form1.resx b/Programs/WinGridProxy/Form1.resx index 146602ee..75308015 100644 --- a/Programs/WinGridProxy/Form1.resx +++ b/Programs/WinGridProxy/Form1.resx @@ -175,9 +175,18 @@ 116, 17 + + 414, 17 + + + 116, 17 + 17, 17 + + 226, 17 + @@ -224,7 +233,4 @@ s1c0gHPmbrPTpHNJKOCo2G1mZs20zcwUJ5yp1AB5+8/zEwgF5GMVDxh4AAAAAElFTkSuQmCC - - 226, 17 - \ No newline at end of file diff --git a/Programs/WinGridProxy/Properties/AssemblyInfo.cs b/Programs/WinGridProxy/Properties/AssemblyInfo.cs index 9ce0de1c..4d3a709a 100644 --- a/Programs/WinGridProxy/Properties/AssemblyInfo.cs +++ b/Programs/WinGridProxy/Properties/AssemblyInfo.cs @@ -6,11 +6,11 @@ using System.Runtime.InteropServices; // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("WinGridProxy")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyDescription("Proxy and Packet Analyzer")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] +[assembly: AssemblyCompany("OpenMetaverse")] [assembly: AssemblyProduct("WinGridProxy")] -[assembly: AssemblyCopyright("Copyright © 2009")] +[assembly: AssemblyCopyright("Copyright © 2009 OpenMetaverse Ninjas")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/Programs/WinGridProxy/Properties/Resources.resx b/Programs/WinGridProxy/Properties/Resources.resx index ffecec85..4957d2a4 100644 --- a/Programs/WinGridProxy/Properties/Resources.resx +++ b/Programs/WinGridProxy/Properties/Resources.resx @@ -46,7 +46,7 @@ mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with - : System.Serialization.Formatters.Binary.BinaryFormatter + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 @@ -60,6 +60,7 @@ : and then encoded with base64 encoding. --> + @@ -68,9 +69,10 @@ - + + @@ -85,9 +87,10 @@ - + + @@ -114,4 +117,11 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\Help.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\InstallWelcome.bmp;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/Programs/WinGridProxy/Resources/Help.png b/Programs/WinGridProxy/Resources/Help.png new file mode 100644 index 00000000..f37ea408 Binary files /dev/null and b/Programs/WinGridProxy/Resources/Help.png differ diff --git a/Programs/WinGridProxy/Resources/InstallWelcome.bmp b/Programs/WinGridProxy/Resources/InstallWelcome.bmp new file mode 100644 index 00000000..4aa9c8aa Binary files /dev/null and b/Programs/WinGridProxy/Resources/InstallWelcome.bmp differ