diff --git a/COM350/Project2/Project2.sln b/COM350/Project2/Project2.sln new file mode 100644 index 0000000..6d42ba2 --- /dev/null +++ b/COM350/Project2/Project2.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Project2", "Project2\Project2.vbproj", "{F109EA8E-0ACE-4479-B6E4-276FDF378D17}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F109EA8E-0ACE-4479-B6E4-276FDF378D17}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F109EA8E-0ACE-4479-B6E4-276FDF378D17}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F109EA8E-0ACE-4479-B6E4-276FDF378D17}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F109EA8E-0ACE-4479-B6E4-276FDF378D17}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/COM350/Project2/Project2/Form1.Designer.vb b/COM350/Project2/Project2/Form1.Designer.vb new file mode 100644 index 0000000..380716e --- /dev/null +++ b/COM350/Project2/Project2/Form1.Designer.vb @@ -0,0 +1,183 @@ + _ +Partial Class Form1 + Inherits System.Windows.Forms.Form + + 'Form overrides dispose to clean up the component list. + _ + Protected Overrides Sub Dispose(ByVal disposing As Boolean) + Try + If disposing AndAlso components IsNot Nothing Then + components.Dispose() + End If + Finally + MyBase.Dispose(disposing) + End Try + End Sub + + 'Required by the Windows Form Designer + Private components As System.ComponentModel.IContainer + + 'NOTE: The following procedure is required by the Windows Form Designer + 'It can be modified using the Windows Form Designer. + 'Do not modify it using the code editor. + _ + Private Sub InitializeComponent() + Me.MenuStrip1 = New System.Windows.Forms.MenuStrip() + Me.FileToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() + Me.ExitToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() + Me.HelpToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() + Me.AboutToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() + Me.FolderBrowserDialog1 = New System.Windows.Forms.FolderBrowserDialog() + Me.TextBox1 = New System.Windows.Forms.TextBox() + Me.GroupBox1 = New System.Windows.Forms.GroupBox() + Me.Button1 = New System.Windows.Forms.Button() + Me.GroupBox2 = New System.Windows.Forms.GroupBox() + Me.ComboBox1 = New System.Windows.Forms.ComboBox() + Me.GroupBox3 = New System.Windows.Forms.GroupBox() + Me.TextBox2 = New System.Windows.Forms.TextBox() + Me.MenuStrip1.SuspendLayout() + Me.GroupBox1.SuspendLayout() + Me.GroupBox2.SuspendLayout() + Me.GroupBox3.SuspendLayout() + Me.SuspendLayout() + ' + 'MenuStrip1 + ' + Me.MenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.FileToolStripMenuItem, Me.HelpToolStripMenuItem}) + Me.MenuStrip1.Location = New System.Drawing.Point(0, 0) + Me.MenuStrip1.Name = "MenuStrip1" + Me.MenuStrip1.Size = New System.Drawing.Size(587, 24) + Me.MenuStrip1.TabIndex = 0 + Me.MenuStrip1.Text = "MenuStrip1" + ' + 'FileToolStripMenuItem + ' + Me.FileToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ExitToolStripMenuItem}) + Me.FileToolStripMenuItem.Name = "FileToolStripMenuItem" + Me.FileToolStripMenuItem.ShortcutKeys = CType((System.Windows.Forms.Keys.Alt Or System.Windows.Forms.Keys.F), System.Windows.Forms.Keys) + Me.FileToolStripMenuItem.Size = New System.Drawing.Size(37, 20) + Me.FileToolStripMenuItem.Text = "&File" + ' + 'ExitToolStripMenuItem + ' + Me.ExitToolStripMenuItem.Name = "ExitToolStripMenuItem" + Me.ExitToolStripMenuItem.ShortcutKeys = CType((System.Windows.Forms.Keys.Alt Or System.Windows.Forms.Keys.F4), System.Windows.Forms.Keys) + Me.ExitToolStripMenuItem.Size = New System.Drawing.Size(152, 22) + Me.ExitToolStripMenuItem.Text = "E&xit" + ' + 'HelpToolStripMenuItem + ' + Me.HelpToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.AboutToolStripMenuItem}) + Me.HelpToolStripMenuItem.Name = "HelpToolStripMenuItem" + Me.HelpToolStripMenuItem.ShortcutKeys = CType((System.Windows.Forms.Keys.Alt Or System.Windows.Forms.Keys.H), System.Windows.Forms.Keys) + Me.HelpToolStripMenuItem.Size = New System.Drawing.Size(44, 20) + Me.HelpToolStripMenuItem.Text = "&Help" + ' + 'AboutToolStripMenuItem + ' + 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.Text = "&About" + ' + 'TextBox1 + ' + Me.TextBox1.Location = New System.Drawing.Point(6, 28) + Me.TextBox1.Name = "TextBox1" + Me.TextBox1.Size = New System.Drawing.Size(469, 20) + Me.TextBox1.TabIndex = 1 + ' + 'GroupBox1 + ' + Me.GroupBox1.Controls.Add(Me.Button1) + Me.GroupBox1.Controls.Add(Me.TextBox1) + Me.GroupBox1.Location = New System.Drawing.Point(12, 27) + Me.GroupBox1.Name = "GroupBox1" + Me.GroupBox1.Size = New System.Drawing.Size(562, 66) + Me.GroupBox1.TabIndex = 2 + Me.GroupBox1.TabStop = False + Me.GroupBox1.Text = "Search Directory" + ' + 'Button1 + ' + Me.Button1.Location = New System.Drawing.Point(481, 25) + Me.Button1.Name = "Button1" + Me.Button1.Size = New System.Drawing.Size(75, 23) + Me.Button1.TabIndex = 2 + Me.Button1.Text = "Browse..." + Me.Button1.UseVisualStyleBackColor = True + ' + 'GroupBox2 + ' + Me.GroupBox2.Controls.Add(Me.ComboBox1) + Me.GroupBox2.Location = New System.Drawing.Point(12, 99) + Me.GroupBox2.Name = "GroupBox2" + Me.GroupBox2.Size = New System.Drawing.Size(210, 73) + Me.GroupBox2.TabIndex = 3 + Me.GroupBox2.TabStop = False + Me.GroupBox2.Text = "Extensions List" + ' + 'ComboBox1 + ' + Me.ComboBox1.FormattingEnabled = True + Me.ComboBox1.Items.AddRange(New Object() {"*.*", "*.txt", "*.html", "*.xml"}) + Me.ComboBox1.Location = New System.Drawing.Point(6, 30) + Me.ComboBox1.Name = "ComboBox1" + Me.ComboBox1.Size = New System.Drawing.Size(198, 21) + Me.ComboBox1.TabIndex = 0 + ' + 'GroupBox3 + ' + Me.GroupBox3.Controls.Add(Me.TextBox2) + Me.GroupBox3.Location = New System.Drawing.Point(228, 99) + Me.GroupBox3.Name = "GroupBox3" + Me.GroupBox3.Size = New System.Drawing.Size(346, 73) + Me.GroupBox3.TabIndex = 4 + Me.GroupBox3.TabStop = False + Me.GroupBox3.Text = "Search Pattern" + ' + 'TextBox2 + ' + Me.TextBox2.Location = New System.Drawing.Point(7, 30) + Me.TextBox2.Name = "TextBox2" + Me.TextBox2.Size = New System.Drawing.Size(333, 20) + Me.TextBox2.TabIndex = 0 + ' + '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.Controls.Add(Me.GroupBox3) + Me.Controls.Add(Me.GroupBox2) + Me.Controls.Add(Me.GroupBox1) + Me.Controls.Add(Me.MenuStrip1) + Me.MainMenuStrip = Me.MenuStrip1 + Me.Name = "Form1" + Me.Text = "Project 2" + Me.MenuStrip1.ResumeLayout(False) + Me.MenuStrip1.PerformLayout() + Me.GroupBox1.ResumeLayout(False) + Me.GroupBox1.PerformLayout() + Me.GroupBox2.ResumeLayout(False) + Me.GroupBox3.ResumeLayout(False) + Me.GroupBox3.PerformLayout() + Me.ResumeLayout(False) + Me.PerformLayout() + + End Sub + Friend WithEvents MenuStrip1 As System.Windows.Forms.MenuStrip + Friend WithEvents FileToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem + Friend WithEvents ExitToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem + Friend WithEvents HelpToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem + Friend WithEvents AboutToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem + Friend WithEvents FolderBrowserDialog1 As System.Windows.Forms.FolderBrowserDialog + Friend WithEvents TextBox1 As System.Windows.Forms.TextBox + Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox + Friend WithEvents Button1 As System.Windows.Forms.Button + Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox + Friend WithEvents ComboBox1 As System.Windows.Forms.ComboBox + Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox + Friend WithEvents TextBox2 As System.Windows.Forms.TextBox + +End Class diff --git a/COM350/Project2/Project2/Form1.resx b/COM350/Project2/Project2/Form1.resx new file mode 100644 index 0000000..2ed80af --- /dev/null +++ b/COM350/Project2/Project2/Form1.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 17, 17 + + + 132, 17 + + \ No newline at end of file diff --git a/COM350/Project2/Project2/Form1.vb b/COM350/Project2/Project2/Form1.vb new file mode 100644 index 0000000..ab00ac0 --- /dev/null +++ b/COM350/Project2/Project2/Form1.vb @@ -0,0 +1,10 @@ +Public Class Form1 + + Protected searcher As PatternSearcher = New PatternSearcher + + Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load + + End Sub + + +End Class diff --git a/COM350/Project2/Project2/FoundResults.vb b/COM350/Project2/Project2/FoundResults.vb new file mode 100644 index 0000000..e0f4562 --- /dev/null +++ b/COM350/Project2/Project2/FoundResults.vb @@ -0,0 +1,7 @@ +Public Class FoundResults + + Public BaseFileName As String + Public InputLine As String + Public LineNumber As String + +End Class diff --git a/COM350/Project2/Project2/My Project/Application.Designer.vb b/COM350/Project2/Project2/My Project/Application.Designer.vb new file mode 100644 index 0000000..c8368cb --- /dev/null +++ b/COM350/Project2/Project2/My Project/Application.Designer.vb @@ -0,0 +1,38 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34014 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + 'NOTE: This file is auto-generated; do not modify it directly. To make changes, + ' or if you encounter build errors in this file, go to the Project Designer + ' (go to Project Properties or double-click the My Project node in + ' Solution Explorer), and make changes on the Application tab. + ' + Partial Friend Class MyApplication + + _ + Public Sub New() + MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows) + Me.IsSingleInstance = false + Me.EnableVisualStyles = true + Me.SaveMySettingsOnExit = true + Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses + End Sub + + _ + Protected Overrides Sub OnCreateMainForm() + Me.MainForm = Global.Project2.Form1 + End Sub + End Class +End Namespace diff --git a/COM350/Project2/Project2/My Project/Application.myapp b/COM350/Project2/Project2/My Project/Application.myapp new file mode 100644 index 0000000..1243847 --- /dev/null +++ b/COM350/Project2/Project2/My Project/Application.myapp @@ -0,0 +1,11 @@ + + + true + Form1 + false + 0 + true + 0 + 0 + true + diff --git a/COM350/Project2/Project2/My Project/AssemblyInfo.vb b/COM350/Project2/Project2/My Project/AssemblyInfo.vb new file mode 100644 index 0000000..4d6eb4b --- /dev/null +++ b/COM350/Project2/Project2/My Project/AssemblyInfo.vb @@ -0,0 +1,35 @@ +Imports System +Imports System.Reflection +Imports System.Runtime.InteropServices + +' General Information about an assembly is controlled through the following +' set of attributes. Change these attribute values to modify the information +' associated with an assembly. + +' Review the values of the assembly attributes + + + + + + + + + + +'The following GUID is for the ID of the typelib if this project is exposed to COM + + +' Version information for an assembly consists of the following four values: +' +' Major Version +' Minor Version +' Build Number +' Revision +' +' You can specify all the values or you can default the Build and Revision Numbers +' by using the '*' as shown below: +' + + + diff --git a/COM350/Project2/Project2/My Project/Resources.Designer.vb b/COM350/Project2/Project2/My Project/Resources.Designer.vb new file mode 100644 index 0000000..3783ad2 --- /dev/null +++ b/COM350/Project2/Project2/My Project/Resources.Designer.vb @@ -0,0 +1,62 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34014 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My.Resources + + 'This class was auto-generated by the StronglyTypedResourceBuilder + 'class via a tool like ResGen or Visual Studio. + 'To add or remove a member, edit your .ResX file then rerun ResGen + 'with the /str option, or rebuild your VS project. + ''' + ''' A strongly-typed resource class, for looking up localized strings, etc. + ''' + _ + Friend Module Resources + + Private resourceMan As Global.System.Resources.ResourceManager + + Private resourceCulture As Global.System.Globalization.CultureInfo + + ''' + ''' Returns the cached ResourceManager instance used by this class. + ''' + _ + Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager + Get + If Object.ReferenceEquals(resourceMan, Nothing) Then + Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Project2.Resources", GetType(Resources).Assembly) + resourceMan = temp + End If + Return resourceMan + End Get + End Property + + ''' + ''' Overrides the current thread's CurrentUICulture property for all + ''' resource lookups using this strongly typed resource class. + ''' + _ + Friend Property Culture() As Global.System.Globalization.CultureInfo + Get + Return resourceCulture + End Get + Set(ByVal value As Global.System.Globalization.CultureInfo) + resourceCulture = value + End Set + End Property + End Module +End Namespace diff --git a/COM350/Project2/Project2/My Project/Resources.resx b/COM350/Project2/Project2/My Project/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/COM350/Project2/Project2/My Project/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/COM350/Project2/Project2/My Project/Settings.Designer.vb b/COM350/Project2/Project2/My Project/Settings.Designer.vb new file mode 100644 index 0000000..e7ccd49 --- /dev/null +++ b/COM350/Project2/Project2/My Project/Settings.Designer.vb @@ -0,0 +1,73 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34014 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + _ + Partial Friend NotInheritable Class MySettings + Inherits Global.System.Configuration.ApplicationSettingsBase + + Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings) + +#Region "My.Settings Auto-Save Functionality" +#If _MyType = "WindowsForms" Then + Private Shared addedHandler As Boolean + + Private Shared addedHandlerLockObject As New Object + + _ + Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) + If My.Application.SaveMySettingsOnExit Then + My.Settings.Save() + End If + End Sub +#End If +#End Region + + Public Shared ReadOnly Property [Default]() As MySettings + Get + +#If _MyType = "WindowsForms" Then + If Not addedHandler Then + SyncLock addedHandlerLockObject + If Not addedHandler Then + AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings + addedHandler = True + End If + End SyncLock + End If +#End If + Return defaultInstance + End Get + End Property + End Class +End Namespace + +Namespace My + + _ + Friend Module MySettingsProperty + + _ + Friend ReadOnly Property Settings() As Global.Project2.My.MySettings + Get + Return Global.Project2.My.MySettings.Default + End Get + End Property + End Module +End Namespace diff --git a/COM350/Project2/Project2/My Project/Settings.settings b/COM350/Project2/Project2/My Project/Settings.settings new file mode 100644 index 0000000..85b890b --- /dev/null +++ b/COM350/Project2/Project2/My Project/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/COM350/Project2/Project2/PatternSearcher.vb b/COM350/Project2/Project2/PatternSearcher.vb new file mode 100644 index 0000000..82a824f --- /dev/null +++ b/COM350/Project2/Project2/PatternSearcher.vb @@ -0,0 +1,14 @@ +Public Class PatternSearcher + + Private _searchResults As SearchResults = New SearchResults + + Public FileType As String + Public IsCaseSensitive As Boolean + Public Pattern As String + + Sub Search() + + End Sub + + +End Class \ No newline at end of file diff --git a/COM350/Project2/Project2/Project2.vbproj b/COM350/Project2/Project2/Project2.vbproj new file mode 100644 index 0000000..b672ca2 --- /dev/null +++ b/COM350/Project2/Project2/Project2.vbproj @@ -0,0 +1,128 @@ + + + + + Debug + AnyCPU + {F109EA8E-0ACE-4479-B6E4-276FDF378D17} + WinExe + Project2.My.MyApplication + Project2 + Project2 + 512 + WindowsForms + v4.0 + + + AnyCPU + true + full + true + true + bin\Debug\ + Project2.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + AnyCPU + pdbonly + false + true + true + bin\Release\ + Project2.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + On + + + Binary + + + Off + + + On + + + + + + + + + + + + + + + + + + + + + + + + + + + Form + + + Form1.vb + Form + + + + + True + Application.myapp + + + True + True + Resources.resx + + + True + Settings.settings + True + + + + + + + Form1.vb + + + VbMyResourcesResXFileCodeGenerator + Resources.Designer.vb + My.Resources + Designer + + + + + MyApplicationCodeGenerator + Application.Designer.vb + + + SettingsSingleFileGenerator + My + Settings.Designer.vb + + + + + \ No newline at end of file diff --git a/COM350/Project2/Project2/SearchResults.vb b/COM350/Project2/Project2/SearchResults.vb new file mode 100644 index 0000000..e38c274 --- /dev/null +++ b/COM350/Project2/Project2/SearchResults.vb @@ -0,0 +1,17 @@ +Public Class SearchResults + + Private _results As List(Of FoundResults) = New List(Of FoundResults) + + Sub addResult(input As FoundResults) + _results.Add(input) + End Sub + + Sub clearResults() + _results.Clear() + End Sub + + Function getResults() As List(Of FoundResults) + Return _results + End Function + +End Class diff --git a/COM380/Project4/Project4/Project4.vcxproj b/COM380/Project4/Project4/Project4.vcxproj index 3a2e004..08a6c64 100644 --- a/COM380/Project4/Project4/Project4.vcxproj +++ b/COM380/Project4/Project4/Project4.vcxproj @@ -86,7 +86,7 @@ - + Create @@ -97,9 +97,7 @@ CppForm - - CppClass - + diff --git a/COM380/Project4/Project4/Project4.vcxproj.filters b/COM380/Project4/Project4/Project4.vcxproj.filters index 567769a..ffaae89 100644 --- a/COM380/Project4/Project4/Project4.vcxproj.filters +++ b/COM380/Project4/Project4/Project4.vcxproj.filters @@ -27,7 +27,7 @@ Source Files - + Source Files @@ -42,7 +42,7 @@ Header Files - Source Files + Header Files