start 380 project5
changes to 380 project 4 changes to 350 project 2 Signed-off-by: Amrit Panesar <apanesar@4195tech.com>
This commit is contained in:
1 parent
40ac78074b
commit
39ee821f54
174 files changed
+13356
-80
No files matched your search
+84
-2
@@ -35,10 +35,19 @@ Partial Class Form1
|
||||
Me.ComboBox1 = New System.Windows.Forms.ComboBox()
|
||||
Me.GroupBox3 = New System.Windows.Forms.GroupBox()
|
||||
Me.TextBox2 = New System.Windows.Forms.TextBox()
|
||||
Me.ListView1 = New System.Windows.Forms.ListView()
|
||||
Me.ColumnHeader1 = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
|
||||
Me.ColumnHeader2 = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
|
||||
Me.ColumnHeader3 = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
|
||||
Me.ColumnHeader4 = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
|
||||
Me.GroupBox4 = New System.Windows.Forms.GroupBox()
|
||||
Me.Button2 = New System.Windows.Forms.Button()
|
||||
Me.Button3 = New System.Windows.Forms.Button()
|
||||
Me.MenuStrip1.SuspendLayout()
|
||||
Me.GroupBox1.SuspendLayout()
|
||||
Me.GroupBox2.SuspendLayout()
|
||||
Me.GroupBox3.SuspendLayout()
|
||||
Me.GroupBox4.SuspendLayout()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'MenuStrip1
|
||||
@@ -77,7 +86,7 @@ Partial Class Form1
|
||||
'
|
||||
Me.AboutToolStripMenuItem.Name = "AboutToolStripMenuItem"
|
||||
Me.AboutToolStripMenuItem.ShortcutKeys = CType((System.Windows.Forms.Keys.Alt Or System.Windows.Forms.Keys.A), System.Windows.Forms.Keys)
|
||||
Me.AboutToolStripMenuItem.Size = New System.Drawing.Size(152, 22)
|
||||
Me.AboutToolStripMenuItem.Size = New System.Drawing.Size(145, 22)
|
||||
Me.AboutToolStripMenuItem.Text = "&About"
|
||||
'
|
||||
'TextBox1
|
||||
@@ -143,11 +152,75 @@ Partial Class Form1
|
||||
Me.TextBox2.Size = New System.Drawing.Size(333, 20)
|
||||
Me.TextBox2.TabIndex = 0
|
||||
'
|
||||
'ListView1
|
||||
'
|
||||
Me.ListView1.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.ColumnHeader1, Me.ColumnHeader2, Me.ColumnHeader3, Me.ColumnHeader4})
|
||||
Me.ListView1.FullRowSelect = True
|
||||
Me.ListView1.GridLines = True
|
||||
Me.ListView1.LabelWrap = False
|
||||
Me.ListView1.Location = New System.Drawing.Point(6, 19)
|
||||
Me.ListView1.Name = "ListView1"
|
||||
Me.ListView1.Size = New System.Drawing.Size(550, 263)
|
||||
Me.ListView1.Sorting = System.Windows.Forms.SortOrder.Ascending
|
||||
Me.ListView1.TabIndex = 5
|
||||
Me.ListView1.UseCompatibleStateImageBehavior = False
|
||||
Me.ListView1.View = System.Windows.Forms.View.Details
|
||||
'
|
||||
'ColumnHeader1
|
||||
'
|
||||
Me.ColumnHeader1.Text = "File Path"
|
||||
Me.ColumnHeader1.Width = 110
|
||||
'
|
||||
'ColumnHeader2
|
||||
'
|
||||
Me.ColumnHeader2.Text = "File Size"
|
||||
'
|
||||
'ColumnHeader3
|
||||
'
|
||||
Me.ColumnHeader3.Text = "Line:Col"
|
||||
Me.ColumnHeader3.Width = 80
|
||||
'
|
||||
'ColumnHeader4
|
||||
'
|
||||
Me.ColumnHeader4.Text = "Line Text"
|
||||
Me.ColumnHeader4.Width = 285
|
||||
'
|
||||
'GroupBox4
|
||||
'
|
||||
Me.GroupBox4.Controls.Add(Me.ListView1)
|
||||
Me.GroupBox4.Location = New System.Drawing.Point(12, 178)
|
||||
Me.GroupBox4.Name = "GroupBox4"
|
||||
Me.GroupBox4.Size = New System.Drawing.Size(562, 288)
|
||||
Me.GroupBox4.TabIndex = 6
|
||||
Me.GroupBox4.TabStop = False
|
||||
Me.GroupBox4.Text = "Results"
|
||||
'
|
||||
'Button2
|
||||
'
|
||||
Me.Button2.Location = New System.Drawing.Point(493, 472)
|
||||
Me.Button2.Name = "Button2"
|
||||
Me.Button2.Size = New System.Drawing.Size(75, 23)
|
||||
Me.Button2.TabIndex = 7
|
||||
Me.Button2.Text = "&Search"
|
||||
Me.Button2.UseVisualStyleBackColor = True
|
||||
'
|
||||
'Button3
|
||||
'
|
||||
Me.Button3.Location = New System.Drawing.Point(18, 472)
|
||||
Me.Button3.Name = "Button3"
|
||||
Me.Button3.Size = New System.Drawing.Size(75, 23)
|
||||
Me.Button3.TabIndex = 8
|
||||
Me.Button3.Text = "E&xit"
|
||||
Me.Button3.UseVisualStyleBackColor = True
|
||||
'
|
||||
'Form1
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.ClientSize = New System.Drawing.Size(587, 478)
|
||||
Me.ClientSize = New System.Drawing.Size(587, 506)
|
||||
Me.Controls.Add(Me.Button3)
|
||||
Me.Controls.Add(Me.Button2)
|
||||
Me.Controls.Add(Me.GroupBox4)
|
||||
Me.Controls.Add(Me.GroupBox3)
|
||||
Me.Controls.Add(Me.GroupBox2)
|
||||
Me.Controls.Add(Me.GroupBox1)
|
||||
@@ -162,6 +235,7 @@ Partial Class Form1
|
||||
Me.GroupBox2.ResumeLayout(False)
|
||||
Me.GroupBox3.ResumeLayout(False)
|
||||
Me.GroupBox3.PerformLayout()
|
||||
Me.GroupBox4.ResumeLayout(False)
|
||||
Me.ResumeLayout(False)
|
||||
Me.PerformLayout()
|
||||
|
||||
@@ -179,5 +253,13 @@ Partial Class Form1
|
||||
Friend WithEvents ComboBox1 As System.Windows.Forms.ComboBox
|
||||
Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
|
||||
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
|
||||
Friend WithEvents ListView1 As System.Windows.Forms.ListView
|
||||
Friend WithEvents ColumnHeader1 As System.Windows.Forms.ColumnHeader
|
||||
Friend WithEvents ColumnHeader2 As System.Windows.Forms.ColumnHeader
|
||||
Friend WithEvents ColumnHeader3 As System.Windows.Forms.ColumnHeader
|
||||
Friend WithEvents ColumnHeader4 As System.Windows.Forms.ColumnHeader
|
||||
Friend WithEvents GroupBox4 As System.Windows.Forms.GroupBox
|
||||
Friend WithEvents Button2 As System.Windows.Forms.Button
|
||||
Friend WithEvents Button3 As System.Windows.Forms.Button
|
||||
|
||||
End Class
|
||||
@@ -1,10 +1,21 @@
|
||||
Public Class Form1
|
||||
|
||||
Protected searcher As PatternSearcher = New PatternSearcher
|
||||
Protected searcher As PatternSearcher = New PatternSearcher()
|
||||
|
||||
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub ExitToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ExitToolStripMenuItem.Click
|
||||
Application.Exit()
|
||||
End Sub
|
||||
|
||||
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
|
||||
Application.Exit()
|
||||
End Sub
|
||||
|
||||
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
|
||||
|
||||
End Sub
|
||||
End Class
|
||||
@@ -2,9 +2,15 @@
|
||||
|
||||
Private _searchResults As SearchResults = New SearchResults
|
||||
|
||||
Public FileType As String
|
||||
Public IsCaseSensitive As Boolean
|
||||
Public Pattern As String
|
||||
Public Property FileType As String
|
||||
Public Property IsCaseSensitive As Boolean
|
||||
Public Property Pattern As String
|
||||
|
||||
Sub New(FT As String, ICS As Boolean, P As String)
|
||||
FileType = FT
|
||||
IsCaseSensitive = ICS
|
||||
Pattern = P
|
||||
End Sub
|
||||
|
||||
Sub Search()
|
||||
|
||||
|
||||
Reference in new issue
Block a user