diff --git a/ConsoleApplication1/ConsoleApplication1.sln b/ConsoleApplication1/ConsoleApplication1.sln new file mode 100644 index 0000000..e3b5b59 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ConsoleApplication1", "ConsoleApplication1\ConsoleApplication1.vbproj", "{040A9467-6B75-4AFB-87C1-D511BA634046}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {040A9467-6B75-4AFB-87C1-D511BA634046}.Debug|x86.ActiveCfg = Debug|x86 + {040A9467-6B75-4AFB-87C1-D511BA634046}.Debug|x86.Build.0 = Debug|x86 + {040A9467-6B75-4AFB-87C1-D511BA634046}.Release|x86.ActiveCfg = Release|x86 + {040A9467-6B75-4AFB-87C1-D511BA634046}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/ConsoleApplication1/ConsoleApplication1.suo b/ConsoleApplication1/ConsoleApplication1.suo new file mode 100644 index 0000000..98ed517 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1.suo differ diff --git a/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vbproj b/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vbproj new file mode 100644 index 0000000..d76fd46 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vbproj @@ -0,0 +1,116 @@ + + + + Debug + x86 + + + + + {040A9467-6B75-4AFB-87C1-D511BA634046} + Exe + ConsoleApplication1.Module1 + ConsoleApplication1 + ConsoleApplication1 + 512 + Console + v4.0 + Client + + + x86 + true + full + true + true + bin\Debug\ + ConsoleApplication1.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + x86 + pdbonly + false + true + true + bin\Release\ + ConsoleApplication1.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + On + + + Binary + + + Off + + + On + + + + + + + + + + + + + + + + + + + + + + + + + True + Application.myapp + + + True + True + Resources.resx + + + True + Settings.settings + True + + + + + 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/ConsoleApplication1/ConsoleApplication1/Module1.vb b/ConsoleApplication1/ConsoleApplication1/Module1.vb new file mode 100644 index 0000000..af0744a --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/Module1.vb @@ -0,0 +1 @@ + diff --git a/ConsoleApplication1/ConsoleApplication1/My Project/Application.Designer.vb b/ConsoleApplication1/ConsoleApplication1/My Project/Application.Designer.vb new file mode 100644 index 0000000..126d785 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/My Project/Application.Designer.vb @@ -0,0 +1,13 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34209 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + diff --git a/ConsoleApplication1/ConsoleApplication1/My Project/Application.myapp b/ConsoleApplication1/ConsoleApplication1/My Project/Application.myapp new file mode 100644 index 0000000..23b627f --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/My Project/Application.myapp @@ -0,0 +1,10 @@ + + + false + false + 0 + true + 0 + 2 + true + diff --git a/ConsoleApplication1/ConsoleApplication1/My Project/AssemblyInfo.vb b/ConsoleApplication1/ConsoleApplication1/My Project/AssemblyInfo.vb new file mode 100644 index 0000000..e8ee86d --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/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/ConsoleApplication1/ConsoleApplication1/My Project/Resources.Designer.vb b/ConsoleApplication1/ConsoleApplication1/My Project/Resources.Designer.vb new file mode 100644 index 0000000..15954c2 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/My Project/Resources.Designer.vb @@ -0,0 +1,62 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34209 +' +' 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("ConsoleApplication1.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/ConsoleApplication1/ConsoleApplication1/My Project/Resources.resx b/ConsoleApplication1/ConsoleApplication1/My Project/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/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/ConsoleApplication1/ConsoleApplication1/My Project/Settings.Designer.vb b/ConsoleApplication1/ConsoleApplication1/My Project/Settings.Designer.vb new file mode 100644 index 0000000..616e8dd --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/My Project/Settings.Designer.vb @@ -0,0 +1,73 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34209 +' +' 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.ConsoleApplication1.My.MySettings + Get + Return Global.ConsoleApplication1.My.MySettings.Default + End Get + End Property + End Module +End Namespace diff --git a/ConsoleApplication1/ConsoleApplication1/My Project/Settings.settings b/ConsoleApplication1/ConsoleApplication1/My Project/Settings.settings new file mode 100644 index 0000000..377f56d --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/My Project/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.exe b/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.exe new file mode 100644 index 0000000..3c0b989 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.exe differ diff --git a/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.pdb b/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.pdb new file mode 100644 index 0000000..14b8462 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.pdb differ diff --git a/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.vshost.exe b/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.vshost.exe new file mode 100644 index 0000000..bb84a51 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.vshost.exe differ diff --git a/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.vshost.exe.manifest b/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.vshost.exe.manifest new file mode 100644 index 0000000..f96b1d6 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.xml b/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.xml new file mode 100644 index 0000000..853d414 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/bin/Debug/ConsoleApplication1.xml @@ -0,0 +1,24 @@ + + + + +ConsoleApplication1 + + + + + + Returns the cached ResourceManager instance used by this class. + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + \ No newline at end of file diff --git a/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.Resources.resources b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.Resources.resources differ diff --git a/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.exe b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.exe new file mode 100644 index 0000000..3c0b989 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.exe differ diff --git a/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.pdb b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.pdb new file mode 100644 index 0000000..14b8462 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.pdb differ diff --git a/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.vbproj.FileListAbsolute.txt b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.vbproj.FileListAbsolute.txt new file mode 100644 index 0000000..d4d6b94 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.vbproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\obj\x86\Debug\ConsoleApplication1.Resources.resources +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\obj\x86\Debug\ConsoleApplication1.vbproj.GenerateResource.Cache +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.pdb +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.xml +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\obj\x86\Debug\ConsoleApplication1.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\obj\x86\Debug\ConsoleApplication1.xml +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\obj\x86\Debug\ConsoleApplication1.pdb diff --git a/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.vbproj.GenerateResource.Cache b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.vbproj.GenerateResource.Cache new file mode 100644 index 0000000..8396026 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.vbproj.GenerateResource.Cache differ diff --git a/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.xml b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.xml new file mode 100644 index 0000000..853d414 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/ConsoleApplication1.xml @@ -0,0 +1,24 @@ + + + + +ConsoleApplication1 + + + + + + Returns the cached ResourceManager instance used by this class. + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + \ No newline at end of file diff --git a/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..b66f966 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ConsoleApplication2/.vs/Server Manager/v14/.suo b/ConsoleApplication2/.vs/Server Manager/v14/.suo new file mode 100644 index 0000000..b36fe54 Binary files /dev/null and b/ConsoleApplication2/.vs/Server Manager/v14/.suo differ diff --git a/ConsoleApplication2/ConsoleApplication2/Config.cs b/ConsoleApplication2/ConsoleApplication2/Config.cs new file mode 100644 index 0000000..549e341 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Config.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.IO; + +namespace ConsoleApplication2 +{ + class Config + { + public static string[] config = new string[10]; + + public static void ReadConfig(string path) + { + int index = 0; + + if (!File.Exists(path)) + { + Console.WriteLine("oops"); + } + string text = File.ReadAllText(path); + //Console.Write(text); + config = text.Split('\n'); + foreach (string a in config) + { + config[index] = config[index].Replace('\r', ' '); + config[index] = config[index].Replace(" ", String.Empty); + Console.WriteLine(a); + index++; + } + } + } +} diff --git a/ConsoleApplication2/ConsoleApplication2/Drives.cs b/ConsoleApplication2/ConsoleApplication2/Drives.cs new file mode 100644 index 0000000..b31cd6e --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Drives.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.IO; + +namespace ConsoleApplication2 +{ + class Drives + { + public static string DisplayDriveInfo() + { + DriveInfo[] allDrives = DriveInfo.GetDrives(); + + foreach (DriveInfo d in allDrives) + { + if (d.Name == Config.config[2]) + { + Console.WriteLine("Drive {0}", d.Name); + + if (d.IsReady == true) + { + string Return = "Space Available " + (d.AvailableFreeSpace / 1024f) / 1024f + " MB"; + Console.WriteLine("Space Available: {0} MB", (d.AvailableFreeSpace / 1024f) / 1024f); + Math.spaceAvailable = (d.AvailableFreeSpace / 1024f) / 1024f; + return Return; + } + } + } + return null; + } + + + public static void ShowMediaDrives() + { + Console.WriteLine("The " + Config.config[0] + " Directory is: " + Files.GetDirectorySize(Config.config[0]) + " MB"); + Console.WriteLine("The " + Config.config[1] + " Directory is: " + Files.GetDirectorySize(Config.config[1]) + " MB"); + //The Will it fit on the drive maths... + //TODO WRITE MATHS + Console.ReadKey(); + } + } +} diff --git a/ConsoleApplication2/ConsoleApplication2/Files.cs b/ConsoleApplication2/ConsoleApplication2/Files.cs new file mode 100644 index 0000000..ce89bf3 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Files.cs @@ -0,0 +1,155 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.IO; +using System.Threading; + +namespace ConsoleApplication2 +{ + class Files + { + + public static string copyStat = "Not Copied"; + public static int totalFiles = 0; + public static int copiedFiles = 1; + public static string False { get; set; } + public static long GetDirectorySize(string path) + { + if (path == null) + { + return 0; + } + string[] a = Directory.GetFiles(path, ".", SearchOption.AllDirectories); + + long b = 0; + foreach (string name in a) + { + FileInfo info = new FileInfo(name); + b += info.Length; + } + return (b / 1024) / 1024; + } + + public static void CopyData(string srcDir, string destDir, bool subDirs) + { + //TODO figure out how system.io.file.copy works AKA File.copy() + DirectoryInfo dir = new DirectoryInfo(srcDir); + DirectoryInfo[] dirs = dir.GetDirectories(); + copyStat = "Not Copied"; + if (!dir.Exists) + { + throw new DirectoryNotFoundException( + "Source directory not found: " + srcDir); + } + + if (!Directory.Exists(destDir)) + { + Directory.CreateDirectory(destDir); + } + + FileInfo[] files = dir.GetFiles(); + totalFiles = files.Length; + foreach (FileInfo file in files) + { + string tempPath = Path.Combine(destDir, file.Name); + + if (!File.Exists(tempPath)) + { + try + { + file.CopyTo(tempPath, false); + Console.WriteLine("Copying file : " + file.Name); + copiedFiles++; + LogHandler.WriteToLog(file.FullName, Config.config[3]); + } + catch (Exception e) + { + Reporter.report(e); + } + } + + } + + if (subDirs) + { + foreach (DirectoryInfo subdir in dirs) + { + string tempPath = Path.Combine(destDir, subdir.Name); + + CopyData(subdir.FullName, tempPath, subDirs); + if (!Directory.Exists(tempPath)) + { + LogHandler.WriteToLog(subdir.FullName, Config.config[3]); + } + } + } + copyStat = "Files Copied"; + } + + public static void DeleteData(string srcDir, bool subDirs) + { + DirectoryInfo dir = new DirectoryInfo(srcDir); + DirectoryInfo[] dirs = dir.GetDirectories(); + if (!dir.Exists) + { + throw new DirectoryNotFoundException( + "Source directory not found: " + srcDir); + } + + FileInfo[] files = dir.GetFiles(); + foreach (FileInfo file in files) + { + + if (File.Exists(file.FullName)) + { + try + { + File.Delete(file.FullName); + Console.WriteLine("Deleting file : " + file.Name); + LogHandler.WriteToLog(file.FullName, Config.config[3]); + } + catch (Exception e) + { + Reporter.report(e); + } + } + + } + + if (subDirs) + { + foreach (DirectoryInfo subdir in dirs) + { + + + DeleteData(subdir.FullName, subDirs); + Console.WriteLine(subdir.FullName); + if (subdir.FullName != Config.config[1] + "\\Anime" && subdir.FullName != Config.config[1] + "\\T.V" && subdir.FullName != Config.config[1] + "\\TBS" && subdir.FullName != Config.config[1] + "\\Movies" && subdir.FullName != Config.config[1] + "\\Podcasts") + { + Directory.Delete(subdir.FullName); + } + + /* if (!Directory.Exists(tempPath)) + { + LogHandler.WriteToLog(subdir.FullName, Config.config[3]); + }*/ + } + } + } + public static string copyStatus() { + string response = "stat" + "*" + totalFiles + "*" + copiedFiles + "*" + copyStat; + return response; + } + + public static int testData() + { + return 1; + } + + public static void CopyTest() + { + + } + } +} diff --git a/ConsoleApplication2/ConsoleApplication2/Help.cs b/ConsoleApplication2/ConsoleApplication2/Help.cs new file mode 100644 index 0000000..04c1d95 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Help.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace ConsoleApplication2 +{ + class Help + { + public static void showHelp() + { + Console.WriteLine("================================================================"); + Console.WriteLine(" This is the 'Lovely Manager' help screen"); + Console.WriteLine(" Use /CLI to enable automation"); + Console.WriteLine(); + Console.WriteLine(); + Console.WriteLine(); + Console.WriteLine(); + Console.WriteLine("================================================================"); + + } + } +} diff --git a/ConsoleApplication2/ConsoleApplication2/Logger.cs b/ConsoleApplication2/ConsoleApplication2/Logger.cs new file mode 100644 index 0000000..5cc09b7 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Logger.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.IO; + +namespace ConsoleApplication2 +{ + class LogHandler + { + public static void WriteToLog(string entry, string pathToLog) + { + if (!File.Exists(pathToLog)) + { + File.Create(pathToLog).Close(); + + } + + File.AppendAllText(pathToLog, entry + Environment.NewLine); + } + } +} diff --git a/ConsoleApplication2/ConsoleApplication2/Math.cs b/ConsoleApplication2/ConsoleApplication2/Math.cs new file mode 100644 index 0000000..7c488f9 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Math.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace ConsoleApplication2 +{ + class Math + { + public static float spaceAvailable; + + public static string calcSpace() + { + string answer; + + if (Files.GetDirectorySize(Config.config[1]) < spaceAvailable) + { + answer = "Yes"; + } + else + { + answer = "No"; + } + + return answer; + } + } +} diff --git a/ConsoleApplication2/ConsoleApplication2/Menu.cs b/ConsoleApplication2/ConsoleApplication2/Menu.cs new file mode 100644 index 0000000..680d161 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Menu.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace ConsoleApplication2 +{ + class Menu + { + public static void DisplayMenu() + { + Console.Clear(); + Console.WriteLine("Lovely manager(WARNING VERY VERY ALPHA)"); + Console.WriteLine("=================================================="); + Console.WriteLine("= 1. Show Media Drives ="); + Console.WriteLine("= 2. Show Logs ="); + Console.WriteLine("= 3. Copy data ="); + Console.WriteLine("= 4. Test Network crap ="); + Console.WriteLine("= ="); + Console.WriteLine("= ="); + Console.WriteLine("= ="); + Console.WriteLine("= ="); + Console.WriteLine("= ="); + Console.WriteLine("= d. Display config params (testing) ="); + Console.WriteLine("= q. Quit ="); + Console.WriteLine("=================================================="); + Drives.DisplayDriveInfo(); + Console.Write("Enter option here: "); + ParseMenu(Console.Read()); + } + + public static void ParseMenu(int x) + { + char ch; + ch = Convert.ToChar(x); + + switch (ch) + { + case '1': + Drives.ShowMediaDrives(); + break; + case '2': + //TODO ADD BETTER LOGGING FUNCTION + break; + case '3': + Files.CopyData(Config.config[1], Config.config[0], true); + break; + case '4': + TCPServer.Listen(); + break; + case 'q': + Program.networking.Abort(); + Program.running = !Program.running; + break; + case 'd': + Console.WriteLine(); + foreach (string a in Config.config) + { + Console.WriteLine(a); + } + Console.WriteLine("Press any key to continue"); + Console.ReadKey(); + break; + } + } + } +} diff --git a/ConsoleApplication2/ConsoleApplication2/NetParse.cs b/ConsoleApplication2/ConsoleApplication2/NetParse.cs new file mode 100644 index 0000000..c3fe9a2 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/NetParse.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace ConsoleApplication2 +{ + class NetParse + { + public static string parse(string data) + { + switch (data.ToLower()) + { + case "diskinfo": + return Config.config[2] + " " + Drives.DisplayDriveInfo() + " Left"; + case "copydata": + Files.CopyData(Config.config[1], Config.config[0], true); + return "Data copied"; + case "folderinfo": + return Config.config[0] + " " + Files.GetDirectorySize(Config.config[0]) + " MB" + Environment.NewLine + Config.config[1] + " " + Files.GetDirectorySize(Config.config[1]) + " MB"; + case "spacerequired": + return Math.calcSpace(); + case "awake?": + return "yep"; + case "copystatus": + return Files.copyStatus(); + case "deletedata": + Files.DeleteData(Config.config[1], true); + return "Files Deleted"; + case "update": + string result; + result = "yep" + "*" + Config.config[2] + " " + Drives.DisplayDriveInfo() + " Left" + "*" + + Config.config[0] + " " + Files.GetDirectorySize(Config.config[0]) + " MB" + Environment.NewLine + Config.config[1] + " " + Files.GetDirectorySize(Config.config[1]) + " MB" + + "*" + Math.calcSpace(); + return result; + case "testcopy": + Files.CopyTest(); + return "Done!"; + default: + return "Not a valid option"; + } + //return null; + } + } +} diff --git a/ConsoleApplication2/ConsoleApplication2/Program.cs b/ConsoleApplication2/ConsoleApplication2/Program.cs new file mode 100644 index 0000000..d260803 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Program.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.IO; +using System.Threading; + +namespace ConsoleApplication2 +{ + class Program + { + public static bool running = true; + public static Thread networking = new Thread(TCPServer.Listen); + static void Main(string[] args) + { + + networking.Start(); + Test.TestThread(); + init(); + if (args.Length == 0) + { + while (running) + { + Menu.DisplayMenu(); + } + } + if (args.Length != 0 && args[0] == "/?") + { + Help.showHelp(); + } + if (args.Length != 0 && args[0] == "/server") + { + Console.WriteLine("Running in server mode :3"); + TCPServer.Listen(); + } + } + + static void init() + { + Config.ReadConfig("config.txt"); + + } + + } +} diff --git a/ConsoleApplication2/ConsoleApplication2/Properties/AssemblyInfo.cs b/ConsoleApplication2/ConsoleApplication2/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..faec31b --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using 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. +[assembly: AssemblyTitle("ConsoleApplication2")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApplication2")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9921ec54-a8f1-4e3a-af8b-682b86deeb59")] + +// 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: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ConsoleApplication2/ConsoleApplication2/Reporter.cs b/ConsoleApplication2/ConsoleApplication2/Reporter.cs new file mode 100644 index 0000000..4ef7578 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Reporter.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace ConsoleApplication2 +{ + class Reporter + { + public static Exception report(Exception e) + { + Console.Write(e); + return e; + } + } +} diff --git a/ConsoleApplication2/ConsoleApplication2/Server Manager.csproj b/ConsoleApplication2/ConsoleApplication2/Server Manager.csproj new file mode 100644 index 0000000..06f6c26 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Server Manager.csproj @@ -0,0 +1,69 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {17DA3EA9-F8CA-4BB0-9E73-42DBC1EF689A} + Exe + Properties + ConsoleApplication2 + ConsoleApplication2 + v4.0 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ConsoleApplication2/ConsoleApplication2/Server Manager.csproj.user b/ConsoleApplication2/ConsoleApplication2/Server Manager.csproj.user new file mode 100644 index 0000000..f44fa05 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Server Manager.csproj.user @@ -0,0 +1,6 @@ + + + + /server + + \ No newline at end of file diff --git a/ConsoleApplication2/ConsoleApplication2/TCPServer.cs b/ConsoleApplication2/ConsoleApplication2/TCPServer.cs new file mode 100644 index 0000000..b9843d1 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/TCPServer.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Net; +using System.Net.Sockets; +using System.Text; + +namespace ConsoleApplication2 +{ + class TCPServer + { + public static void Listen() + { + while (Program.running) { + TcpListener server = null; + try + { + Int32 port = 13754; + IPAddress localAddr = IPAddress.Parse("127.0.0.1"); + server = new TcpListener(localAddr, port); + server.Start(); + Byte[] bytes = new Byte[256]; + String data = null; + + //Listening Loop + while (true) + { + Console.Write("Waiting on a connection..."); + TcpClient client = server.AcceptTcpClient(); + Console.WriteLine("Connected"); + data = null; + + NetworkStream stream = client.GetStream(); + + int i; + + //Loop to receive all the data sent by the client + while ((i = stream.Read(bytes, 0, bytes.Length)) != 0) + { + data = System.Text.Encoding.ASCII.GetString(bytes, 0, i); + Console.WriteLine("Recieved: {0}", data); + + data = data.ToLower(); + + data = NetParse.parse(data); + + //Proccess the data + //data = Drives.DisplayDriveInfo(); + byte[] msg = System.Text.Encoding.ASCII.GetBytes(data); + + //Send back a response + stream.Write(msg, 0, msg.Length); + Console.WriteLine("Sent: {0}", data); + } + client.Close(); + } + } + catch (SocketException e) + { + Console.WriteLine("SocketException: {0}", e); + } + finally + { + server.Stop(); + } + Console.WriteLine("\nHit enter to continue"); + Console.Read(); + } + } + } +} diff --git a/ConsoleApplication2/ConsoleApplication2/Test.cs b/ConsoleApplication2/ConsoleApplication2/Test.cs new file mode 100644 index 0000000..a80403f --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Test.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.IO; + +namespace ConsoleApplication2 +{ + class Test + { + public static void TestThread() + { + Program.networking.Join(); + for (int i = 0; i <= 10; i++) + { + System.Console.WriteLine(i); + } + } + } +} diff --git a/ConsoleApplication2/ConsoleApplication2/Threader.cs b/ConsoleApplication2/ConsoleApplication2/Threader.cs new file mode 100644 index 0000000..b36b1db --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/Threader.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading; + +namespace ConsoleApplication2 +{ + class Threader + { + public static void addThread(string func, string option) + { + Thread thread = new Thread(TCPServer.Listen); + } + } +} diff --git a/ConsoleApplication2/ConsoleApplication2/bin/Debug/ConsoleApplication2.exe b/ConsoleApplication2/ConsoleApplication2/bin/Debug/ConsoleApplication2.exe new file mode 100644 index 0000000..69bec9a Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/bin/Debug/ConsoleApplication2.exe differ diff --git a/ConsoleApplication2/ConsoleApplication2/bin/Debug/ConsoleApplication2.pdb b/ConsoleApplication2/ConsoleApplication2/bin/Debug/ConsoleApplication2.pdb new file mode 100644 index 0000000..3b4f9b3 Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/bin/Debug/ConsoleApplication2.pdb differ diff --git a/ConsoleApplication2/ConsoleApplication2/bin/Debug/ConsoleApplication2.vshost.exe b/ConsoleApplication2/ConsoleApplication2/bin/Debug/ConsoleApplication2.vshost.exe new file mode 100644 index 0000000..bb84a51 Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/bin/Debug/ConsoleApplication2.vshost.exe differ diff --git a/ConsoleApplication2/ConsoleApplication2/bin/Debug/ConsoleApplication2.vshost.exe.manifest b/ConsoleApplication2/ConsoleApplication2/bin/Debug/ConsoleApplication2.vshost.exe.manifest new file mode 100644 index 0000000..f96b1d6 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/bin/Debug/ConsoleApplication2.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/ConsoleApplication2/ConsoleApplication2/bin/Debug/Log.txt b/ConsoleApplication2/ConsoleApplication2/bin/Debug/Log.txt new file mode 100644 index 0000000..3507632 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/bin/Debug/Log.txt @@ -0,0 +1,2 @@ +D:\Mediabuffer\Music\New folder\e.rar +D:\Mediabuffer\Music\New folder\New Text Document.txt diff --git a/ConsoleApplication2/ConsoleApplication2/bin/Debug/config.txt b/ConsoleApplication2/ConsoleApplication2/bin/Debug/config.txt new file mode 100644 index 0000000..c1dd4d1 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/bin/Debug/config.txt @@ -0,0 +1,4 @@ +D:\Media2 +D:\Mediabuffer +D:\ +Log.txt \ No newline at end of file diff --git a/ConsoleApplication2/ConsoleApplication2/bin/Release/ConsoleApplication2.exe b/ConsoleApplication2/ConsoleApplication2/bin/Release/ConsoleApplication2.exe new file mode 100644 index 0000000..20f0d56 Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/bin/Release/ConsoleApplication2.exe differ diff --git a/ConsoleApplication2/ConsoleApplication2/bin/Release/ConsoleApplication2.pdb b/ConsoleApplication2/ConsoleApplication2/bin/Release/ConsoleApplication2.pdb new file mode 100644 index 0000000..4d2fa3f Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/bin/Release/ConsoleApplication2.pdb differ diff --git a/ConsoleApplication2/ConsoleApplication2/bin/Release/ConsoleApplication2.vshost.exe b/ConsoleApplication2/ConsoleApplication2/bin/Release/ConsoleApplication2.vshost.exe new file mode 100644 index 0000000..c0dfecc Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/bin/Release/ConsoleApplication2.vshost.exe differ diff --git a/ConsoleApplication2/ConsoleApplication2/bin/Release/ConsoleApplication2.vshost.exe.manifest b/ConsoleApplication2/ConsoleApplication2/bin/Release/ConsoleApplication2.vshost.exe.manifest new file mode 100644 index 0000000..f96b1d6 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/bin/Release/ConsoleApplication2.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/ConsoleApplication2/ConsoleApplication2/bin/Release/Log.txt b/ConsoleApplication2/ConsoleApplication2/bin/Release/Log.txt new file mode 100644 index 0000000..3507632 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/bin/Release/Log.txt @@ -0,0 +1,2 @@ +D:\Mediabuffer\Music\New folder\e.rar +D:\Mediabuffer\Music\New folder\New Text Document.txt diff --git a/ConsoleApplication2/ConsoleApplication2/bin/Release/config.txt b/ConsoleApplication2/ConsoleApplication2/bin/Release/config.txt new file mode 100644 index 0000000..c1dd4d1 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/bin/Release/config.txt @@ -0,0 +1,4 @@ +D:\Media2 +D:\Mediabuffer +D:\ +Log.txt \ No newline at end of file diff --git a/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/ConsoleApplication2.csproj.FileListAbsolute.txt b/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/ConsoleApplication2.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..c92c8fe --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/ConsoleApplication2.csproj.FileListAbsolute.txt @@ -0,0 +1,4 @@ +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\bin\Debug\ConsoleApplication2.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\bin\Debug\ConsoleApplication2.pdb +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\ConsoleApplication2.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\ConsoleApplication2.pdb diff --git a/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/ConsoleApplication2.exe b/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/ConsoleApplication2.exe new file mode 100644 index 0000000..69bec9a Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/ConsoleApplication2.exe differ diff --git a/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/ConsoleApplication2.pdb b/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/ConsoleApplication2.pdb new file mode 100644 index 0000000..3b4f9b3 Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/ConsoleApplication2.pdb differ diff --git a/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..ac96712 Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/Server Manager.csproj.FileListAbsolute.txt b/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/Server Manager.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..0b68f63 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/Server Manager.csproj.FileListAbsolute.txt @@ -0,0 +1,10 @@ +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\bin\Debug\ConsoleApplication2.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\bin\Debug\ConsoleApplication2.pdb +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\ConsoleApplication2.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\ConsoleApplication2.pdb +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\Server Manager.csprojResolveAssemblyReference.cache +D:\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\bin\Debug\ConsoleApplication2.exe +D:\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\bin\Debug\ConsoleApplication2.pdb +D:\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\Server Manager.csprojResolveAssemblyReference.cache +D:\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\ConsoleApplication2.exe +D:\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Debug\ConsoleApplication2.pdb diff --git a/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/Server Manager.csprojResolveAssemblyReference.cache b/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/Server Manager.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..4ee64ad Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/obj/x86/Debug/Server Manager.csprojResolveAssemblyReference.cache differ diff --git a/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/ConsoleApplication2.exe b/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/ConsoleApplication2.exe new file mode 100644 index 0000000..20f0d56 Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/ConsoleApplication2.exe differ diff --git a/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/ConsoleApplication2.pdb b/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/ConsoleApplication2.pdb new file mode 100644 index 0000000..4d2fa3f Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/ConsoleApplication2.pdb differ diff --git a/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache b/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..4915759 Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/Server Manager.csproj.FileListAbsolute.txt b/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/Server Manager.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..8024a63 --- /dev/null +++ b/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/Server Manager.csproj.FileListAbsolute.txt @@ -0,0 +1,10 @@ +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\bin\Release\ConsoleApplication2.exe +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\bin\Release\ConsoleApplication2.pdb +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Release\ConsoleApplication2.exe +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Release\ConsoleApplication2.pdb +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Release\Server Manager.csprojResolveAssemblyReference.cache +D:\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\bin\Release\ConsoleApplication2.exe +D:\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\bin\Release\ConsoleApplication2.pdb +D:\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Release\Server Manager.csprojResolveAssemblyReference.cache +D:\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Release\ConsoleApplication2.exe +D:\Documents\Visual Studio 2010\Projects\ConsoleApplication2\ConsoleApplication2\obj\x86\Release\ConsoleApplication2.pdb diff --git a/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/Server Manager.csprojResolveAssemblyReference.cache b/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/Server Manager.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..46130fa Binary files /dev/null and b/ConsoleApplication2/ConsoleApplication2/obj/x86/Release/Server Manager.csprojResolveAssemblyReference.cache differ diff --git a/ConsoleApplication2/Server Manager.sln b/ConsoleApplication2/Server Manager.sln new file mode 100644 index 0000000..c7a4fef --- /dev/null +++ b/ConsoleApplication2/Server Manager.sln @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server Manager", "ConsoleApplication2\Server Manager.csproj", "{17DA3EA9-F8CA-4BB0-9E73-42DBC1EF689A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Manager Client", "..\Manager Client\Manager Client\Manager Client.csproj", "{34FC8DF0-8747-4A1A-B616-37E131E5B3E8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {17DA3EA9-F8CA-4BB0-9E73-42DBC1EF689A}.Debug|x86.ActiveCfg = Debug|x86 + {17DA3EA9-F8CA-4BB0-9E73-42DBC1EF689A}.Debug|x86.Build.0 = Debug|x86 + {17DA3EA9-F8CA-4BB0-9E73-42DBC1EF689A}.Release|x86.ActiveCfg = Release|x86 + {17DA3EA9-F8CA-4BB0-9E73-42DBC1EF689A}.Release|x86.Build.0 = Release|x86 + {34FC8DF0-8747-4A1A-B616-37E131E5B3E8}.Debug|x86.ActiveCfg = Debug|x86 + {34FC8DF0-8747-4A1A-B616-37E131E5B3E8}.Debug|x86.Build.0 = Debug|x86 + {34FC8DF0-8747-4A1A-B616-37E131E5B3E8}.Release|x86.ActiveCfg = Release|x86 + {34FC8DF0-8747-4A1A-B616-37E131E5B3E8}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/ConsoleApplication2/Server Manager.suo b/ConsoleApplication2/Server Manager.suo new file mode 100644 index 0000000..0ddec86 Binary files /dev/null and b/ConsoleApplication2/Server Manager.suo differ diff --git a/ConsoleApplication2/Server Manager.v12.suo b/ConsoleApplication2/Server Manager.v12.suo new file mode 100644 index 0000000..0c83410 Binary files /dev/null and b/ConsoleApplication2/Server Manager.v12.suo differ diff --git a/Events Learning/Events Learning.sln b/Events Learning/Events Learning.sln new file mode 100644 index 0000000..1b63cd6 --- /dev/null +++ b/Events Learning/Events Learning.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Events Learning", "Events Learning\Events Learning.csproj", "{21F5D79D-4E6F-43BB-91C1-5E86DCBE781E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {21F5D79D-4E6F-43BB-91C1-5E86DCBE781E}.Debug|x86.ActiveCfg = Debug|x86 + {21F5D79D-4E6F-43BB-91C1-5E86DCBE781E}.Debug|x86.Build.0 = Debug|x86 + {21F5D79D-4E6F-43BB-91C1-5E86DCBE781E}.Release|x86.ActiveCfg = Release|x86 + {21F5D79D-4E6F-43BB-91C1-5E86DCBE781E}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Events Learning/Events Learning.suo b/Events Learning/Events Learning.suo new file mode 100644 index 0000000..9469042 Binary files /dev/null and b/Events Learning/Events Learning.suo differ diff --git a/Events Learning/Events Learning/Events Learning.csproj b/Events Learning/Events Learning/Events Learning.csproj new file mode 100644 index 0000000..c3aca00 --- /dev/null +++ b/Events Learning/Events Learning/Events Learning.csproj @@ -0,0 +1,87 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {21F5D79D-4E6F-43BB-91C1-5E86DCBE781E} + WinExe + Properties + Events_Learning + Events Learning + v4.0 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + \ No newline at end of file diff --git a/Events Learning/Events Learning/Form1.Designer.cs b/Events Learning/Events Learning/Form1.Designer.cs new file mode 100644 index 0000000..0561f7f --- /dev/null +++ b/Events Learning/Events Learning/Form1.Designer.cs @@ -0,0 +1,61 @@ +namespace Events_Learning +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + 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.button1 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(138, 137); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 0; + this.button1.Text = "button1"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 262); + this.Controls.Add(this.button1); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button button1; + } +} + diff --git a/Events Learning/Events Learning/Form1.cs b/Events Learning/Events Learning/Form1.cs new file mode 100644 index 0000000..9ebfe70 --- /dev/null +++ b/Events Learning/Events Learning/Form1.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Events_Learning +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void button1_Click(object sender, EventArgs e) + { + Program.SomethingHappened += new Program.MyEventHandler(Program.HandleSomethingHappened); + } + } +} diff --git a/Events Learning/Events Learning/Form1.resx b/Events Learning/Events Learning/Form1.resx new file mode 100644 index 0000000..29dcb1b --- /dev/null +++ b/Events Learning/Events Learning/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/Events Learning/Events Learning/Program.cs b/Events Learning/Events Learning/Program.cs new file mode 100644 index 0000000..6e2ad96 --- /dev/null +++ b/Events Learning/Events Learning/Program.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Events_Learning +{ + public class Messager + { + public event + } + static class Program + { + + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + + + + } + + } +} diff --git a/Events Learning/Events Learning/Properties/AssemblyInfo.cs b/Events Learning/Events Learning/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..2f52f41 --- /dev/null +++ b/Events Learning/Events Learning/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using 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. +[assembly: AssemblyTitle("Events Learning")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Events Learning")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b8ca75ca-86bd-431a-a432-984beb5d2be0")] + +// 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: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Events Learning/Events Learning/Properties/Resources.Designer.cs b/Events Learning/Events Learning/Properties/Resources.Designer.cs new file mode 100644 index 0000000..c95508e --- /dev/null +++ b/Events Learning/Events Learning/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34209 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Events_Learning.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // 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. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Events_Learning.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/Events Learning/Events Learning/Properties/Resources.resx b/Events Learning/Events Learning/Properties/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/Events Learning/Events Learning/Properties/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/Events Learning/Events Learning/Properties/Settings.Designer.cs b/Events Learning/Events Learning/Properties/Settings.Designer.cs new file mode 100644 index 0000000..7952a12 --- /dev/null +++ b/Events Learning/Events Learning/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34209 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Events_Learning.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Events Learning/Events Learning/Properties/Settings.settings b/Events Learning/Events Learning/Properties/Settings.settings new file mode 100644 index 0000000..abf36c5 --- /dev/null +++ b/Events Learning/Events Learning/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Events Learning/Events Learning/bin/Debug/Events Learning.exe b/Events Learning/Events Learning/bin/Debug/Events Learning.exe new file mode 100644 index 0000000..1d21d9b Binary files /dev/null and b/Events Learning/Events Learning/bin/Debug/Events Learning.exe differ diff --git a/Events Learning/Events Learning/bin/Debug/Events Learning.pdb b/Events Learning/Events Learning/bin/Debug/Events Learning.pdb new file mode 100644 index 0000000..73f9043 Binary files /dev/null and b/Events Learning/Events Learning/bin/Debug/Events Learning.pdb differ diff --git a/Events Learning/Events Learning/bin/Debug/Events Learning.vshost.exe b/Events Learning/Events Learning/bin/Debug/Events Learning.vshost.exe new file mode 100644 index 0000000..bb84a51 Binary files /dev/null and b/Events Learning/Events Learning/bin/Debug/Events Learning.vshost.exe differ diff --git a/Events Learning/Events Learning/bin/Debug/Events Learning.vshost.exe.manifest b/Events Learning/Events Learning/bin/Debug/Events Learning.vshost.exe.manifest new file mode 100644 index 0000000..f96b1d6 --- /dev/null +++ b/Events Learning/Events Learning/bin/Debug/Events Learning.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Events Learning/Events Learning/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache b/Events Learning/Events Learning/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..f76dcd6 Binary files /dev/null and b/Events Learning/Events Learning/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Events Learning/Events Learning/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Events Learning/Events Learning/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..70d64b0 Binary files /dev/null and b/Events Learning/Events Learning/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Events Learning/Events Learning/obj/x86/Debug/Events Learning.csproj.FileListAbsolute.txt b/Events Learning/Events Learning/obj/x86/Debug/Events Learning.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..393359a --- /dev/null +++ b/Events Learning/Events Learning/obj/x86/Debug/Events Learning.csproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +c:\users\benjamyn\documents\visual studio 2010\Projects\Events Learning\Events Learning\obj\x86\Debug\Events_Learning.Form1.resources +c:\users\benjamyn\documents\visual studio 2010\Projects\Events Learning\Events Learning\obj\x86\Debug\Events_Learning.Properties.Resources.resources +c:\users\benjamyn\documents\visual studio 2010\Projects\Events Learning\Events Learning\obj\x86\Debug\Events Learning.csproj.GenerateResource.Cache +c:\users\benjamyn\documents\visual studio 2010\Projects\Events Learning\Events Learning\bin\Debug\Events Learning.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\Events Learning\Events Learning\bin\Debug\Events Learning.pdb +c:\users\benjamyn\documents\visual studio 2010\Projects\Events Learning\Events Learning\obj\x86\Debug\Events Learning.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\Events Learning\Events Learning\obj\x86\Debug\Events Learning.pdb +C:\Users\Benjamyn\documents\visual studio 2010\Projects\Events Learning\Events Learning\obj\x86\Debug\Events Learning.csprojResolveAssemblyReference.cache diff --git a/Events Learning/Events Learning/obj/x86/Debug/Events Learning.csproj.GenerateResource.Cache b/Events Learning/Events Learning/obj/x86/Debug/Events Learning.csproj.GenerateResource.Cache new file mode 100644 index 0000000..a10627b Binary files /dev/null and b/Events Learning/Events Learning/obj/x86/Debug/Events Learning.csproj.GenerateResource.Cache differ diff --git a/Events Learning/Events Learning/obj/x86/Debug/Events Learning.csprojResolveAssemblyReference.cache b/Events Learning/Events Learning/obj/x86/Debug/Events Learning.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..5f307d2 Binary files /dev/null and b/Events Learning/Events Learning/obj/x86/Debug/Events Learning.csprojResolveAssemblyReference.cache differ diff --git a/Events Learning/Events Learning/obj/x86/Debug/Events Learning.exe b/Events Learning/Events Learning/obj/x86/Debug/Events Learning.exe new file mode 100644 index 0000000..1d21d9b Binary files /dev/null and b/Events Learning/Events Learning/obj/x86/Debug/Events Learning.exe differ diff --git a/Events Learning/Events Learning/obj/x86/Debug/Events Learning.pdb b/Events Learning/Events Learning/obj/x86/Debug/Events Learning.pdb new file mode 100644 index 0000000..73f9043 Binary files /dev/null and b/Events Learning/Events Learning/obj/x86/Debug/Events Learning.pdb differ diff --git a/Events Learning/Events Learning/obj/x86/Debug/Events_Learning.Form1.resources b/Events Learning/Events Learning/obj/x86/Debug/Events_Learning.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Events Learning/Events Learning/obj/x86/Debug/Events_Learning.Form1.resources differ diff --git a/Events Learning/Events Learning/obj/x86/Debug/Events_Learning.Properties.Resources.resources b/Events Learning/Events Learning/obj/x86/Debug/Events_Learning.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Events Learning/Events Learning/obj/x86/Debug/Events_Learning.Properties.Resources.resources differ diff --git a/Manager Client/Manager Client.sln b/Manager Client/Manager Client.sln new file mode 100644 index 0000000..03c3c22 --- /dev/null +++ b/Manager Client/Manager Client.sln @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Manager Client", "Manager Client\Manager Client.csproj", "{34FC8DF0-8747-4A1A-B616-37E131E5B3E8}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server Manager", "..\ConsoleApplication2\ConsoleApplication2\Server Manager.csproj", "{17DA3EA9-F8CA-4BB0-9E73-42DBC1EF689A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {34FC8DF0-8747-4A1A-B616-37E131E5B3E8}.Debug|x86.ActiveCfg = Debug|x86 + {34FC8DF0-8747-4A1A-B616-37E131E5B3E8}.Debug|x86.Build.0 = Debug|x86 + {34FC8DF0-8747-4A1A-B616-37E131E5B3E8}.Release|x86.ActiveCfg = Release|x86 + {34FC8DF0-8747-4A1A-B616-37E131E5B3E8}.Release|x86.Build.0 = Release|x86 + {17DA3EA9-F8CA-4BB0-9E73-42DBC1EF689A}.Debug|x86.ActiveCfg = Debug|x86 + {17DA3EA9-F8CA-4BB0-9E73-42DBC1EF689A}.Debug|x86.Build.0 = Debug|x86 + {17DA3EA9-F8CA-4BB0-9E73-42DBC1EF689A}.Release|x86.ActiveCfg = Release|x86 + {17DA3EA9-F8CA-4BB0-9E73-42DBC1EF689A}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Manager Client/Manager Client.suo b/Manager Client/Manager Client.suo new file mode 100644 index 0000000..3db6865 Binary files /dev/null and b/Manager Client/Manager Client.suo differ diff --git a/Manager Client/Manager Client/Form1.Designer.cs b/Manager Client/Manager Client/Form1.Designer.cs new file mode 100644 index 0000000..418af7a --- /dev/null +++ b/Manager Client/Manager Client/Form1.Designer.cs @@ -0,0 +1,240 @@ +namespace Manager_Client +{ + partial class frm_mainwindow + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + 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.lbl_NaN = new System.Windows.Forms.Label(); + this.lbl_reply = new System.Windows.Forms.Label(); + this.lbl_NaN2 = new System.Windows.Forms.Label(); + this.lbl_driveInfo = new System.Windows.Forms.Label(); + this.btn_refresh = new System.Windows.Forms.Button(); + this.lbl_NaN3 = new System.Windows.Forms.Label(); + this.lbl_folderInfo = new System.Windows.Forms.Label(); + this.lbl_NaN4 = new System.Windows.Forms.Label(); + this.lbl_space = new System.Windows.Forms.Label(); + this.lbl_debug = new System.Windows.Forms.Label(); + this.btn_copy = new System.Windows.Forms.Button(); + this.btn_clearbuffer = new System.Windows.Forms.Button(); + this.lbl_error = new System.Windows.Forms.Label(); + this.lbl_copystatus = new System.Windows.Forms.Label(); + this.prog_copy = new System.Windows.Forms.ProgressBar(); + this.btn_test = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // lbl_NaN + // + this.lbl_NaN.AutoSize = true; + this.lbl_NaN.Location = new System.Drawing.Point(16, 13); + this.lbl_NaN.Name = "lbl_NaN"; + this.lbl_NaN.Size = new System.Drawing.Size(89, 13); + this.lbl_NaN.TabIndex = 0; + this.lbl_NaN.Text = "Server available: "; + // + // lbl_reply + // + this.lbl_reply.AutoSize = true; + this.lbl_reply.Location = new System.Drawing.Point(142, 13); + this.lbl_reply.Name = "lbl_reply"; + this.lbl_reply.Size = new System.Drawing.Size(33, 13); + this.lbl_reply.TabIndex = 1; + this.lbl_reply.Text = "Nope"; + // + // lbl_NaN2 + // + this.lbl_NaN2.AutoSize = true; + this.lbl_NaN2.Location = new System.Drawing.Point(16, 73); + this.lbl_NaN2.Name = "lbl_NaN2"; + this.lbl_NaN2.Size = new System.Drawing.Size(53, 13); + this.lbl_NaN2.TabIndex = 2; + this.lbl_NaN2.Text = "DriveInfo:"; + // + // lbl_driveInfo + // + this.lbl_driveInfo.AutoSize = true; + this.lbl_driveInfo.Location = new System.Drawing.Point(142, 73); + this.lbl_driveInfo.Name = "lbl_driveInfo"; + this.lbl_driveInfo.Size = new System.Drawing.Size(0, 13); + this.lbl_driveInfo.TabIndex = 3; + // + // btn_refresh + // + this.btn_refresh.Location = new System.Drawing.Point(19, 544); + this.btn_refresh.Name = "btn_refresh"; + this.btn_refresh.Size = new System.Drawing.Size(75, 23); + this.btn_refresh.TabIndex = 4; + this.btn_refresh.Text = "Refresh"; + this.btn_refresh.UseVisualStyleBackColor = true; + this.btn_refresh.Click += new System.EventHandler(this.btn_refresh_Click); + // + // lbl_NaN3 + // + this.lbl_NaN3.AutoSize = true; + this.lbl_NaN3.Location = new System.Drawing.Point(16, 98); + this.lbl_NaN3.Name = "lbl_NaN3"; + this.lbl_NaN3.Size = new System.Drawing.Size(60, 13); + this.lbl_NaN3.TabIndex = 5; + this.lbl_NaN3.Text = "Folder Info:"; + // + // lbl_folderInfo + // + this.lbl_folderInfo.AutoSize = true; + this.lbl_folderInfo.Location = new System.Drawing.Point(142, 98); + this.lbl_folderInfo.Name = "lbl_folderInfo"; + this.lbl_folderInfo.Size = new System.Drawing.Size(0, 13); + this.lbl_folderInfo.TabIndex = 6; + // + // lbl_NaN4 + // + this.lbl_NaN4.AutoSize = true; + this.lbl_NaN4.Location = new System.Drawing.Point(16, 129); + this.lbl_NaN4.Name = "lbl_NaN4"; + this.lbl_NaN4.Size = new System.Drawing.Size(120, 13); + this.lbl_NaN4.TabIndex = 7; + this.lbl_NaN4.Text = "Enough space to copy?"; + // + // lbl_space + // + this.lbl_space.AutoSize = true; + this.lbl_space.Location = new System.Drawing.Point(142, 129); + this.lbl_space.Name = "lbl_space"; + this.lbl_space.Size = new System.Drawing.Size(0, 13); + this.lbl_space.TabIndex = 8; + // + // lbl_debug + // + this.lbl_debug.AutoSize = true; + this.lbl_debug.Location = new System.Drawing.Point(19, 230); + this.lbl_debug.Name = "lbl_debug"; + this.lbl_debug.Size = new System.Drawing.Size(0, 13); + this.lbl_debug.TabIndex = 9; + // + // btn_copy + // + this.btn_copy.Location = new System.Drawing.Point(101, 544); + this.btn_copy.Name = "btn_copy"; + this.btn_copy.Size = new System.Drawing.Size(75, 23); + this.btn_copy.TabIndex = 10; + this.btn_copy.Text = "Copy"; + this.btn_copy.UseVisualStyleBackColor = true; + this.btn_copy.Click += new System.EventHandler(this.btn_copy_Click); + // + // btn_clearbuffer + // + this.btn_clearbuffer.Location = new System.Drawing.Point(251, 544); + this.btn_clearbuffer.Name = "btn_clearbuffer"; + this.btn_clearbuffer.Size = new System.Drawing.Size(75, 23); + this.btn_clearbuffer.TabIndex = 11; + this.btn_clearbuffer.Text = "Clear Buffer"; + this.btn_clearbuffer.UseVisualStyleBackColor = true; + this.btn_clearbuffer.Click += new System.EventHandler(this.btn_clearbuffer_Click); + // + // lbl_error + // + this.lbl_error.AutoSize = true; + this.lbl_error.Location = new System.Drawing.Point(248, 528); + this.lbl_error.Name = "lbl_error"; + this.lbl_error.Size = new System.Drawing.Size(0, 13); + this.lbl_error.TabIndex = 12; + // + // lbl_copystatus + // + this.lbl_copystatus.AutoSize = true; + this.lbl_copystatus.Location = new System.Drawing.Point(101, 525); + this.lbl_copystatus.Name = "lbl_copystatus"; + this.lbl_copystatus.Size = new System.Drawing.Size(60, 13); + this.lbl_copystatus.TabIndex = 13; + this.lbl_copystatus.Text = "Not Copied"; + // + // prog_copy + // + this.prog_copy.Location = new System.Drawing.Point(19, 488); + this.prog_copy.Name = "prog_copy"; + this.prog_copy.Size = new System.Drawing.Size(307, 23); + this.prog_copy.TabIndex = 14; + this.prog_copy.Click += new System.EventHandler(this.prog_copy_Click); + // + // btn_test + // + this.btn_test.Location = new System.Drawing.Point(22, 453); + this.btn_test.Name = "btn_test"; + this.btn_test.Size = new System.Drawing.Size(75, 23); + this.btn_test.TabIndex = 15; + this.btn_test.Text = "Test Button"; + this.btn_test.UseVisualStyleBackColor = true; + this.btn_test.Click += new System.EventHandler(this.btn_test_Click); + // + // frm_mainwindow + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(338, 579); + this.Controls.Add(this.btn_test); + this.Controls.Add(this.prog_copy); + this.Controls.Add(this.lbl_copystatus); + this.Controls.Add(this.lbl_error); + this.Controls.Add(this.btn_clearbuffer); + this.Controls.Add(this.btn_copy); + this.Controls.Add(this.lbl_debug); + this.Controls.Add(this.lbl_space); + this.Controls.Add(this.lbl_NaN4); + this.Controls.Add(this.lbl_folderInfo); + this.Controls.Add(this.lbl_NaN3); + this.Controls.Add(this.btn_refresh); + this.Controls.Add(this.lbl_driveInfo); + this.Controls.Add(this.lbl_NaN2); + this.Controls.Add(this.lbl_reply); + this.Controls.Add(this.lbl_NaN); + this.Name = "frm_mainwindow"; + this.Text = "Lovely Manager Client(Even more alpha then before)"; + this.Load += new System.EventHandler(this.frm_mainwindow_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label lbl_NaN; + private System.Windows.Forms.Label lbl_reply; + private System.Windows.Forms.Label lbl_NaN2; + private System.Windows.Forms.Label lbl_driveInfo; + private System.Windows.Forms.Button btn_refresh; + private System.Windows.Forms.Label lbl_NaN3; + private System.Windows.Forms.Label lbl_folderInfo; + private System.Windows.Forms.Label lbl_NaN4; + private System.Windows.Forms.Label lbl_space; + private System.Windows.Forms.Label lbl_debug; + private System.Windows.Forms.Button btn_copy; + private System.Windows.Forms.Button btn_clearbuffer; + private System.Windows.Forms.Label lbl_error; + private System.Windows.Forms.Label lbl_copystatus; + private System.Windows.Forms.ProgressBar prog_copy; + private System.Windows.Forms.Button btn_test; + } +} + diff --git a/Manager Client/Manager Client/Form1.cs b/Manager Client/Manager Client/Form1.cs new file mode 100644 index 0000000..0a99eff --- /dev/null +++ b/Manager Client/Manager Client/Form1.cs @@ -0,0 +1,145 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using System.Timers; +using System.Threading; + +namespace Manager_Client +{ + public partial class frm_mainwindow : Form + { + private static System.Timers.Timer aTimer; + public static string IP = "127.0.0.1"; + Form2 frm = new Form2(); + bool copying = false; + public frm_mainwindow() + { + TextBox.CheckForIllegalCrossThreadCalls = false; + init(); + aTimer = new System.Timers.Timer(500); + aTimer.Elapsed += OnTimedEvent; + aTimer.Enabled = true; + InitializeComponent(); + } + + void OnTimedEvent(Object source, ElapsedEventArgs e) + { + mainFunc(); + if (copying == true) + { + checkCopy(); + } + /*if (hasCopied) + { + Networker.Connect(IP, "copystatus"); + if (Parser.response[0] == "stat") + { + lbl_copystatus.Text = Parser.response[3]; + if (int.Parse(Parser.response[2]) != 0) + { + prog_copy.Value = int.Parse(Parser.response[1]) / int.Parse(Parser.response[2]); + } + } + if (lbl_copystatus.Text == "Has Copied") + { + hasCopied = true; + } + }*/ + } + + private void checkCopy() + { + Networker.Connect(IP, "copystatus"); + } + private void frm_mainwindow_Load(object sender, EventArgs e) + { + + //TCPClient.Networker.Connect("127.0.0.1", "Awake?"); + //if (Networker.Connect(IP, "Awake?") == "yep") { lbl_reply.Text = "Yep"; lbl_driveInfo.Text = Networker.Connect(IP, "diskinfo"); } else { lbl_reply.Text = "Nope soz :("; } + //init(); + } + void mainFunc() + { + if (Parser.response[0] == "yep") + { + lbl_reply.Text = "Yep"; + lbl_driveInfo.Text = Parser.response[1]; + lbl_folderInfo.Text = Parser.response[2]; + lbl_space.Text = Parser.response[3]; + } + else + { + + lbl_reply.Text = "Nope"; + lbl_driveInfo.Text = ""; + lbl_folderInfo.Text = ""; + lbl_space.Text = ""; ; + } + } + void init() + { + + } + + private void btn_refresh_Click(object sender, EventArgs e) + { + + if (Networker.Connect(IP, "awake?") == "yep") + { + Parser.parseResponse(); + mainFunc(); + } + else + { + lbl_reply.Text = "Nope"; + lbl_driveInfo.Text = ""; + lbl_folderInfo.Text = ""; + lbl_space.Text = ""; + } + } + void reset() + { + + } + + private void btn_copy_Click(object sender, EventArgs e) + { + // hasCopied = true; + lbl_copystatus.Text = Networker.Connect(IP, "copydata"); + frm.Visible = true; + } + + private void btn_clearbuffer_Click(object sender, EventArgs e) + { + if (Networker.Connect(IP, "awake?") == "yep") + { + + frm.Show(); + } + else + { + lbl_error.Text = "Server Not Found"; + } + } + + private void progressBar1_Click(object sender, EventArgs e) + { + + } + + private void prog_copy_Click(object sender, EventArgs e) + { + prog_copy.Value = prog_copy.Value + 1; + } + + private void btn_test_Click(object sender, EventArgs e) + { + copying = true; + } + } +} diff --git a/Manager Client/Manager Client/Form1.resx b/Manager Client/Manager Client/Form1.resx new file mode 100644 index 0000000..29dcb1b --- /dev/null +++ b/Manager Client/Manager Client/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/Manager Client/Manager Client/Form2.Designer.cs b/Manager Client/Manager Client/Form2.Designer.cs new file mode 100644 index 0000000..c9e5516 --- /dev/null +++ b/Manager Client/Manager Client/Form2.Designer.cs @@ -0,0 +1,99 @@ +namespace Manager_Client +{ + partial class Form2 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + 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.lbl_message = new System.Windows.Forms.Label(); + this.btn_yes = new System.Windows.Forms.Button(); + this.btn_no = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // lbl_message + // + this.lbl_message.AutoSize = true; + this.lbl_message.Location = new System.Drawing.Point(12, 29); + this.lbl_message.Name = "lbl_message"; + this.lbl_message.Size = new System.Drawing.Size(235, 13); + this.lbl_message.TabIndex = 0; + this.lbl_message.Text = "Are you sure you want to clear the media buffer?"; + // + // btn_yes + // + this.btn_yes.Location = new System.Drawing.Point(13, 54); + this.btn_yes.Name = "btn_yes"; + this.btn_yes.Size = new System.Drawing.Size(75, 23); + this.btn_yes.TabIndex = 1; + this.btn_yes.Text = "Yes"; + this.btn_yes.UseVisualStyleBackColor = true; + this.btn_yes.Click += new System.EventHandler(this.btn_yes_Click); + // + // btn_no + // + this.btn_no.Location = new System.Drawing.Point(172, 54); + this.btn_no.Name = "btn_no"; + this.btn_no.Size = new System.Drawing.Size(75, 23); + this.btn_no.TabIndex = 2; + this.btn_no.Text = "No"; + this.btn_no.UseVisualStyleBackColor = true; + this.btn_no.Click += new System.EventHandler(this.btn_no_Click); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 16); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(66, 13); + this.label1.TabIndex = 3; + this.label1.Text = "Files copied,"; + // + // Form2 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(259, 89); + this.Controls.Add(this.label1); + this.Controls.Add(this.btn_no); + this.Controls.Add(this.btn_yes); + this.Controls.Add(this.lbl_message); + this.Name = "Form2"; + this.Text = "Files Copied"; + this.Load += new System.EventHandler(this.Form2_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label lbl_message; + private System.Windows.Forms.Button btn_yes; + private System.Windows.Forms.Button btn_no; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/Manager Client/Manager Client/Form2.cs b/Manager Client/Manager Client/Form2.cs new file mode 100644 index 0000000..e44f98d --- /dev/null +++ b/Manager Client/Manager Client/Form2.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Manager_Client +{ + public partial class Form2 : Form + { + public static string IP = "192.168.0.26"; + public Form2() + { + InitializeComponent(); + } + + private void btn_no_Click(object sender, EventArgs e) + { + this.Visible = false; + } + + private void Form2_Load(object sender, EventArgs e) + { + + } + + private void btn_yes_Click(object sender, EventArgs e) + { + Networker.Connect(IP, "deletedata"); + this.Visible = false; + } + } +} diff --git a/Manager Client/Manager Client/Form2.resx b/Manager Client/Manager Client/Form2.resx new file mode 100644 index 0000000..29dcb1b --- /dev/null +++ b/Manager Client/Manager Client/Form2.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/Manager Client/Manager Client/Manager Client.csproj b/Manager Client/Manager Client/Manager Client.csproj new file mode 100644 index 0000000..c3188f3 --- /dev/null +++ b/Manager Client/Manager Client/Manager Client.csproj @@ -0,0 +1,98 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {34FC8DF0-8747-4A1A-B616-37E131E5B3E8} + WinExe + Properties + Manager_Client + Manager Client + v4.0 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + Form + + + Form2.cs + + + + + + + Form1.cs + + + Form2.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + \ No newline at end of file diff --git a/Manager Client/Manager Client/Parser.cs b/Manager Client/Manager Client/Parser.cs new file mode 100644 index 0000000..102e026 --- /dev/null +++ b/Manager Client/Manager Client/Parser.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Manager_Client +{ + class Parser + { + public static string[] response = new string[5]; + public static void parseResponse() + { + string tmpString = string.Empty; + tmpString = Networker.Connect(frm_mainwindow.IP, "update"); + if (tmpString != null) + { + response = tmpString.Split('*'); + } + else + { + + } + } + } +} diff --git a/Manager Client/Manager Client/Program.cs b/Manager Client/Manager Client/Program.cs new file mode 100644 index 0000000..cc58324 --- /dev/null +++ b/Manager Client/Manager Client/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Manager_Client +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new frm_mainwindow()); + } + } +} diff --git a/Manager Client/Manager Client/Properties/AssemblyInfo.cs b/Manager Client/Manager Client/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..23bbd2e --- /dev/null +++ b/Manager Client/Manager Client/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using 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. +[assembly: AssemblyTitle("Manager Client")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Manager Client")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("a8ea8f00-acf1-4391-bfbb-673391b9ab70")] + +// 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: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Manager Client/Manager Client/Properties/Resources.Designer.cs b/Manager Client/Manager Client/Properties/Resources.Designer.cs new file mode 100644 index 0000000..32d840c --- /dev/null +++ b/Manager Client/Manager Client/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34209 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Manager_Client.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // 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. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Manager_Client.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/Manager Client/Manager Client/Properties/Resources.resx b/Manager Client/Manager Client/Properties/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/Manager Client/Manager Client/Properties/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/Manager Client/Manager Client/Properties/Settings.Designer.cs b/Manager Client/Manager Client/Properties/Settings.Designer.cs new file mode 100644 index 0000000..4d9c9f9 --- /dev/null +++ b/Manager Client/Manager Client/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34209 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Manager_Client.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Manager Client/Manager Client/Properties/Settings.settings b/Manager Client/Manager Client/Properties/Settings.settings new file mode 100644 index 0000000..abf36c5 --- /dev/null +++ b/Manager Client/Manager Client/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Manager Client/Manager Client/TCPClient.cs b/Manager Client/Manager Client/TCPClient.cs new file mode 100644 index 0000000..20efea2 --- /dev/null +++ b/Manager Client/Manager Client/TCPClient.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Net; +using System.Net.Sockets; +using System.Text; + +namespace Manager_Client +{ + class Networker + { + public static string Connect(String server, String Message) + { + try + { + Int32 port = 13754; + TcpClient client = new TcpClient(server, port); + + Byte[] data = System.Text.Encoding.ASCII.GetBytes(Message); + + NetworkStream stream = client.GetStream(); + + stream.Write(data, 0, data.Length); + Console.WriteLine("Sent: {0}", Message); + + //Receives response + data = new Byte[256]; + + String responseData = String.Empty; + + Int32 bytes = stream.Read(data, 0, data.Length); + responseData = System.Text.Encoding.ASCII.GetString(data, 0, bytes); + Console.WriteLine("Recieved: {0}", responseData); + + + //Close everything + stream.Close(); + client.Close(); + return responseData; + } + catch (ArgumentNullException e) + { + Console.WriteLine("SocketException: {0}", e); + return null; + } + catch (SocketException e) + { + Console.WriteLine("SocketException: {0}", e); + return null; + } + + } + } +} diff --git a/Manager Client/Manager Client/bin/Debug/Manager Client.exe b/Manager Client/Manager Client/bin/Debug/Manager Client.exe new file mode 100644 index 0000000..78aa5dc Binary files /dev/null and b/Manager Client/Manager Client/bin/Debug/Manager Client.exe differ diff --git a/Manager Client/Manager Client/bin/Debug/Manager Client.pdb b/Manager Client/Manager Client/bin/Debug/Manager Client.pdb new file mode 100644 index 0000000..3a30a6e Binary files /dev/null and b/Manager Client/Manager Client/bin/Debug/Manager Client.pdb differ diff --git a/Manager Client/Manager Client/bin/Debug/Manager Client.vshost.exe b/Manager Client/Manager Client/bin/Debug/Manager Client.vshost.exe new file mode 100644 index 0000000..c0dfecc Binary files /dev/null and b/Manager Client/Manager Client/bin/Debug/Manager Client.vshost.exe differ diff --git a/Manager Client/Manager Client/bin/Debug/Manager Client.vshost.exe.manifest b/Manager Client/Manager Client/bin/Debug/Manager Client.vshost.exe.manifest new file mode 100644 index 0000000..f96b1d6 --- /dev/null +++ b/Manager Client/Manager Client/bin/Debug/Manager Client.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Manager Client/Manager Client/bin/Release/Manager Client.exe b/Manager Client/Manager Client/bin/Release/Manager Client.exe new file mode 100644 index 0000000..31528ac Binary files /dev/null and b/Manager Client/Manager Client/bin/Release/Manager Client.exe differ diff --git a/Manager Client/Manager Client/bin/Release/Manager Client.pdb b/Manager Client/Manager Client/bin/Release/Manager Client.pdb new file mode 100644 index 0000000..340f391 Binary files /dev/null and b/Manager Client/Manager Client/bin/Release/Manager Client.pdb differ diff --git a/Manager Client/Manager Client/bin/Release/Manager Client.vshost.exe b/Manager Client/Manager Client/bin/Release/Manager Client.vshost.exe new file mode 100644 index 0000000..681ab77 Binary files /dev/null and b/Manager Client/Manager Client/bin/Release/Manager Client.vshost.exe differ diff --git a/Manager Client/Manager Client/bin/Release/Manager Client.vshost.exe.manifest b/Manager Client/Manager Client/bin/Release/Manager Client.vshost.exe.manifest new file mode 100644 index 0000000..f96b1d6 --- /dev/null +++ b/Manager Client/Manager Client/bin/Release/Manager Client.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Manager Client/Manager Client/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache b/Manager Client/Manager Client/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..2ebb3f3 Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Manager Client/Manager Client/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Manager Client/Manager Client/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..7e57985 Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Manager Client/Manager Client/obj/x86/Debug/Manager Client.csproj.FileListAbsolute.txt b/Manager Client/Manager Client/obj/x86/Debug/Manager Client.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..c00344d --- /dev/null +++ b/Manager Client/Manager Client/obj/x86/Debug/Manager Client.csproj.FileListAbsolute.txt @@ -0,0 +1,16 @@ +c:\users\benjamyn\documents\visual studio 2010\Projects\Manager Client\Manager Client\bin\Debug\Manager Client.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\Manager Client\Manager Client\bin\Debug\Manager Client.pdb +c:\users\benjamyn\documents\visual studio 2010\Projects\Manager Client\Manager Client\obj\x86\Debug\Manager_Client.Properties.Resources.resources +c:\users\benjamyn\documents\visual studio 2010\Projects\Manager Client\Manager Client\obj\x86\Debug\Manager Client.csproj.GenerateResource.Cache +c:\users\benjamyn\documents\visual studio 2010\Projects\Manager Client\Manager Client\obj\x86\Debug\Manager Client.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\Manager Client\Manager Client\obj\x86\Debug\Manager Client.pdb +c:\users\benjamyn\documents\visual studio 2010\Projects\Manager Client\Manager Client\obj\x86\Debug\Manager_Client.frm_mainwindow.resources +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Debug\Manager Client.exe +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Debug\Manager Client.pdb +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\bin\Debug\Manager Client.exe +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\bin\Debug\Manager Client.pdb +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Debug\Manager_Client.frm_mainwindow.resources +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Debug\Manager_Client.Properties.Resources.resources +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Debug\Manager Client.csproj.GenerateResource.Cache +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Debug\Manager_Client.Form2.resources +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Debug\Manager Client.csprojResolveAssemblyReference.cache diff --git a/Manager Client/Manager Client/obj/x86/Debug/Manager Client.csproj.GenerateResource.Cache b/Manager Client/Manager Client/obj/x86/Debug/Manager Client.csproj.GenerateResource.Cache new file mode 100644 index 0000000..d2f5aef Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Debug/Manager Client.csproj.GenerateResource.Cache differ diff --git a/Manager Client/Manager Client/obj/x86/Debug/Manager Client.csprojResolveAssemblyReference.cache b/Manager Client/Manager Client/obj/x86/Debug/Manager Client.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..b4d02d3 Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Debug/Manager Client.csprojResolveAssemblyReference.cache differ diff --git a/Manager Client/Manager Client/obj/x86/Debug/Manager Client.exe b/Manager Client/Manager Client/obj/x86/Debug/Manager Client.exe new file mode 100644 index 0000000..78aa5dc Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Debug/Manager Client.exe differ diff --git a/Manager Client/Manager Client/obj/x86/Debug/Manager Client.pdb b/Manager Client/Manager Client/obj/x86/Debug/Manager Client.pdb new file mode 100644 index 0000000..3a30a6e Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Debug/Manager Client.pdb differ diff --git a/Manager Client/Manager Client/obj/x86/Debug/Manager_Client.Form2.resources b/Manager Client/Manager Client/obj/x86/Debug/Manager_Client.Form2.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Debug/Manager_Client.Form2.resources differ diff --git a/Manager Client/Manager Client/obj/x86/Debug/Manager_Client.Properties.Resources.resources b/Manager Client/Manager Client/obj/x86/Debug/Manager_Client.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Debug/Manager_Client.Properties.Resources.resources differ diff --git a/Manager Client/Manager Client/obj/x86/Debug/Manager_Client.frm_mainwindow.resources b/Manager Client/Manager Client/obj/x86/Debug/Manager_Client.frm_mainwindow.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Debug/Manager_Client.frm_mainwindow.resources differ diff --git a/Manager Client/Manager Client/obj/x86/Release/DesignTimeResolveAssemblyReferences.cache b/Manager Client/Manager Client/obj/x86/Release/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..6c0c1dd Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Release/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Manager Client/Manager Client/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache b/Manager Client/Manager Client/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..b36e0f5 Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Manager Client/Manager Client/obj/x86/Release/Manager Client.csproj.FileListAbsolute.txt b/Manager Client/Manager Client/obj/x86/Release/Manager Client.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..31e5f73 --- /dev/null +++ b/Manager Client/Manager Client/obj/x86/Release/Manager Client.csproj.FileListAbsolute.txt @@ -0,0 +1,17 @@ +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\bin\Release\Manager Client.exe +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\bin\Release\Manager Client.pdb +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Release\Manager_Client.frm_mainwindow.resources +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Release\Manager_Client.Properties.Resources.resources +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Release\Manager Client.csproj.GenerateResource.Cache +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Release\Manager Client.exe +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Release\Manager Client.pdb +C:\Users\Benjamyn\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Release\Manager Client.csprojResolveAssemblyReference.cache +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Release\Manager Client.exe +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Release\Manager Client.pdb +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\bin\Release\Manager Client.exe +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\bin\Release\Manager Client.pdb +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Release\Manager Client.csprojResolveAssemblyReference.cache +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Release\Manager_Client.frm_mainwindow.resources +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Release\Manager_Client.Properties.Resources.resources +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Release\Manager Client.csproj.GenerateResource.Cache +D:\Documents\Visual Studio 2010\Projects\Manager Client\Manager Client\obj\x86\Release\Manager_Client.Form2.resources diff --git a/Manager Client/Manager Client/obj/x86/Release/Manager Client.csproj.GenerateResource.Cache b/Manager Client/Manager Client/obj/x86/Release/Manager Client.csproj.GenerateResource.Cache new file mode 100644 index 0000000..fb64c1a Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Release/Manager Client.csproj.GenerateResource.Cache differ diff --git a/Manager Client/Manager Client/obj/x86/Release/Manager Client.csprojResolveAssemblyReference.cache b/Manager Client/Manager Client/obj/x86/Release/Manager Client.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..b4d02d3 Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Release/Manager Client.csprojResolveAssemblyReference.cache differ diff --git a/Manager Client/Manager Client/obj/x86/Release/Manager Client.exe b/Manager Client/Manager Client/obj/x86/Release/Manager Client.exe new file mode 100644 index 0000000..31528ac Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Release/Manager Client.exe differ diff --git a/Manager Client/Manager Client/obj/x86/Release/Manager Client.pdb b/Manager Client/Manager Client/obj/x86/Release/Manager Client.pdb new file mode 100644 index 0000000..340f391 Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Release/Manager Client.pdb differ diff --git a/Manager Client/Manager Client/obj/x86/Release/Manager_Client.Form2.resources b/Manager Client/Manager Client/obj/x86/Release/Manager_Client.Form2.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Release/Manager_Client.Form2.resources differ diff --git a/Manager Client/Manager Client/obj/x86/Release/Manager_Client.Properties.Resources.resources b/Manager Client/Manager Client/obj/x86/Release/Manager_Client.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Release/Manager_Client.Properties.Resources.resources differ diff --git a/Manager Client/Manager Client/obj/x86/Release/Manager_Client.frm_mainwindow.resources b/Manager Client/Manager Client/obj/x86/Release/Manager_Client.frm_mainwindow.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Manager Client/Manager Client/obj/x86/Release/Manager_Client.frm_mainwindow.resources differ diff --git a/Metronome/Metronome.sln b/Metronome/Metronome.sln new file mode 100644 index 0000000..1bb5740 --- /dev/null +++ b/Metronome/Metronome.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Metronome", "Metronome\Metronome.csproj", "{9D289F8F-A42B-4B13-80CC-24F7CAE02781}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9D289F8F-A42B-4B13-80CC-24F7CAE02781}.Debug|x86.ActiveCfg = Debug|x86 + {9D289F8F-A42B-4B13-80CC-24F7CAE02781}.Debug|x86.Build.0 = Debug|x86 + {9D289F8F-A42B-4B13-80CC-24F7CAE02781}.Release|x86.ActiveCfg = Release|x86 + {9D289F8F-A42B-4B13-80CC-24F7CAE02781}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Metronome/Metronome.suo b/Metronome/Metronome.suo new file mode 100644 index 0000000..18ff112 Binary files /dev/null and b/Metronome/Metronome.suo differ diff --git a/Metronome/Metronome/Metronome.csproj b/Metronome/Metronome/Metronome.csproj new file mode 100644 index 0000000..176d716 --- /dev/null +++ b/Metronome/Metronome/Metronome.csproj @@ -0,0 +1,57 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {9D289F8F-A42B-4B13-80CC-24F7CAE02781} + Exe + Properties + Metronome + Metronome + v4.0 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Metronome/Metronome/Program.cs b/Metronome/Metronome/Program.cs new file mode 100644 index 0000000..133880f --- /dev/null +++ b/Metronome/Metronome/Program.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Metronome +{ + public class TimeOfTick : EventArgs + { + private DateTime TimeNow; + public DateTime Time + { + set + { + TimeNow = value; + } + get + { + return this.TimeNow; + } + } + } + public class Metronome + { + public event TickHandler Tick; + public delegate void TickHandler(Metronome m, TimeOfTick e); + public void start() + { + while (true) + { + System.Threading.Thread.Sleep(3000); + if (Tick != null) + { + TimeOfTick TOT = new TimeOfTick(); + TOT.Time = DateTime.Now; + Tick(this, TOT); + } + } + } + + + } + + public class Listener + { + public void Subscribe(Metronome m) + { + m.Tick += new Metronome.TickHandler(HeardIt); + } + private void HeardIt(Metronome m, TimeOfTick e) + { + System.Console.WriteLine("Heard It at {0}", e.Time); + } + } + + class Test + { + static void Main(string[] args) + { + Metronome m = new Metronome(); + Listener l = new Listener(); + l.Subscribe(m); + m.start(); + + } + } +} diff --git a/Metronome/Metronome/Properties/AssemblyInfo.cs b/Metronome/Metronome/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..af6d681 --- /dev/null +++ b/Metronome/Metronome/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using 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. +[assembly: AssemblyTitle("Metronome")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Metronome")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b981a2ab-58d1-4c62-921d-1d86fcda2ea6")] + +// 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: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Metronome/Metronome/bin/Debug/Metronome.exe b/Metronome/Metronome/bin/Debug/Metronome.exe new file mode 100644 index 0000000..77fa684 Binary files /dev/null and b/Metronome/Metronome/bin/Debug/Metronome.exe differ diff --git a/Metronome/Metronome/bin/Debug/Metronome.pdb b/Metronome/Metronome/bin/Debug/Metronome.pdb new file mode 100644 index 0000000..27e1474 Binary files /dev/null and b/Metronome/Metronome/bin/Debug/Metronome.pdb differ diff --git a/Metronome/Metronome/bin/Debug/Metronome.vshost.exe b/Metronome/Metronome/bin/Debug/Metronome.vshost.exe new file mode 100644 index 0000000..bb84a51 Binary files /dev/null and b/Metronome/Metronome/bin/Debug/Metronome.vshost.exe differ diff --git a/Metronome/Metronome/bin/Debug/Metronome.vshost.exe.manifest b/Metronome/Metronome/bin/Debug/Metronome.vshost.exe.manifest new file mode 100644 index 0000000..f96b1d6 --- /dev/null +++ b/Metronome/Metronome/bin/Debug/Metronome.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Metronome/Metronome/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Metronome/Metronome/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..3322414 Binary files /dev/null and b/Metronome/Metronome/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Metronome/Metronome/obj/x86/Debug/Metronome.csproj.FileListAbsolute.txt b/Metronome/Metronome/obj/x86/Debug/Metronome.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..b17a4fb --- /dev/null +++ b/Metronome/Metronome/obj/x86/Debug/Metronome.csproj.FileListAbsolute.txt @@ -0,0 +1,4 @@ +c:\users\benjamyn\documents\visual studio 2010\Projects\Metronome\Metronome\bin\Debug\Metronome.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\Metronome\Metronome\bin\Debug\Metronome.pdb +c:\users\benjamyn\documents\visual studio 2010\Projects\Metronome\Metronome\obj\x86\Debug\Metronome.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\Metronome\Metronome\obj\x86\Debug\Metronome.pdb diff --git a/Metronome/Metronome/obj/x86/Debug/Metronome.exe b/Metronome/Metronome/obj/x86/Debug/Metronome.exe new file mode 100644 index 0000000..77fa684 Binary files /dev/null and b/Metronome/Metronome/obj/x86/Debug/Metronome.exe differ diff --git a/Metronome/Metronome/obj/x86/Debug/Metronome.pdb b/Metronome/Metronome/obj/x86/Debug/Metronome.pdb new file mode 100644 index 0000000..27e1474 Binary files /dev/null and b/Metronome/Metronome/obj/x86/Debug/Metronome.pdb differ diff --git a/TCPClient/.vs/TCPClient/v14/.suo b/TCPClient/.vs/TCPClient/v14/.suo new file mode 100644 index 0000000..663fae9 Binary files /dev/null and b/TCPClient/.vs/TCPClient/v14/.suo differ diff --git a/TCPClient/TCPClient.sln b/TCPClient/TCPClient.sln new file mode 100644 index 0000000..f5dba84 --- /dev/null +++ b/TCPClient/TCPClient.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TCPClient", "TCPClient\TCPClient.csproj", "{FA361F06-1370-4CA5-96D6-BE2218AA2EF3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FA361F06-1370-4CA5-96D6-BE2218AA2EF3}.Debug|x86.ActiveCfg = Debug|x86 + {FA361F06-1370-4CA5-96D6-BE2218AA2EF3}.Debug|x86.Build.0 = Debug|x86 + {FA361F06-1370-4CA5-96D6-BE2218AA2EF3}.Release|x86.ActiveCfg = Release|x86 + {FA361F06-1370-4CA5-96D6-BE2218AA2EF3}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/TCPClient/TCPClient.suo b/TCPClient/TCPClient.suo new file mode 100644 index 0000000..6fa1251 Binary files /dev/null and b/TCPClient/TCPClient.suo differ diff --git a/TCPClient/TCPClient/Form1.Designer.cs b/TCPClient/TCPClient/Form1.Designer.cs new file mode 100644 index 0000000..b294aa0 --- /dev/null +++ b/TCPClient/TCPClient/Form1.Designer.cs @@ -0,0 +1,47 @@ +namespace TCPClient +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + 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.SuspendLayout(); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 262); + this.Name = "Form1"; + this.Text = "Form1"; + this.Load += new System.EventHandler(this.Form1_Load); + this.ResumeLayout(false); + + } + + #endregion + } +} \ No newline at end of file diff --git a/TCPClient/TCPClient/Form1.cs b/TCPClient/TCPClient/Form1.cs new file mode 100644 index 0000000..ec9a951 --- /dev/null +++ b/TCPClient/TCPClient/Form1.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace TCPClient +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void Form1_Load(object sender, EventArgs e) + { + Program.Connect("127.0.0.1", "loadmenu"); + } + } +} diff --git a/TCPClient/TCPClient/Form1.resx b/TCPClient/TCPClient/Form1.resx new file mode 100644 index 0000000..29dcb1b --- /dev/null +++ b/TCPClient/TCPClient/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/TCPClient/TCPClient/Program.cs b/TCPClient/TCPClient/Program.cs new file mode 100644 index 0000000..abad8db --- /dev/null +++ b/TCPClient/TCPClient/Program.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Net; +using System.Net.Sockets; +using System.Text; + +namespace TCPClient +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Please enter command"); + string msg = Console.ReadLine(); + Connect("127.0.0.1", msg); + } + + public static void Connect(String server, String Message) + { + try + { + Int32 port = 13754; + TcpClient client = new TcpClient(server, port); + + Byte[] data = System.Text.Encoding.ASCII.GetBytes(Message); + + NetworkStream stream = client.GetStream(); + + stream.Write(data, 0, data.Length); + Console.WriteLine("Sent: {0}", Message); + + //Receives response + data = new Byte[256]; + + String responseData = String.Empty; + + Int32 bytes = stream.Read(data, 0, data.Length); + responseData = System.Text.Encoding.ASCII.GetString(data, 0, bytes); + Console.WriteLine("Recieved: {0}", responseData); + + //Close everything + stream.Close(); + client.Close(); + + } + catch (ArgumentNullException e) + { + Console.WriteLine("SocketException: {0}", e); + } + catch (SocketException e) + { + Console.WriteLine("SocketException: {0}", e); + } + Console.WriteLine("\n Press Enter to continue..."); + Console.Read(); + } + } +} diff --git a/TCPClient/TCPClient/Properties/AssemblyInfo.cs b/TCPClient/TCPClient/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..7a286be --- /dev/null +++ b/TCPClient/TCPClient/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using 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. +[assembly: AssemblyTitle("TCPClient")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("TCPClient")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9edb501e-1b8f-461e-b2b1-9c8833f63348")] + +// 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: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/TCPClient/TCPClient/TCPClient.csproj b/TCPClient/TCPClient/TCPClient.csproj new file mode 100644 index 0000000..265e0ad --- /dev/null +++ b/TCPClient/TCPClient/TCPClient.csproj @@ -0,0 +1,70 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {FA361F06-1370-4CA5-96D6-BE2218AA2EF3} + Exe + Properties + TCPClient + TCPClient + v4.0 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + + + Form1.cs + + + + + \ No newline at end of file diff --git a/TCPClient/TCPClient/bin/Debug/TCPClient.exe b/TCPClient/TCPClient/bin/Debug/TCPClient.exe new file mode 100644 index 0000000..8fccbb3 Binary files /dev/null and b/TCPClient/TCPClient/bin/Debug/TCPClient.exe differ diff --git a/TCPClient/TCPClient/bin/Debug/TCPClient.pdb b/TCPClient/TCPClient/bin/Debug/TCPClient.pdb new file mode 100644 index 0000000..c79086b Binary files /dev/null and b/TCPClient/TCPClient/bin/Debug/TCPClient.pdb differ diff --git a/TCPClient/TCPClient/bin/Debug/TCPClient.vshost.exe b/TCPClient/TCPClient/bin/Debug/TCPClient.vshost.exe new file mode 100644 index 0000000..681ab77 Binary files /dev/null and b/TCPClient/TCPClient/bin/Debug/TCPClient.vshost.exe differ diff --git a/TCPClient/TCPClient/bin/Debug/TCPClient.vshost.exe.manifest b/TCPClient/TCPClient/bin/Debug/TCPClient.vshost.exe.manifest new file mode 100644 index 0000000..f96b1d6 --- /dev/null +++ b/TCPClient/TCPClient/bin/Debug/TCPClient.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/TCPClient/TCPClient/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache b/TCPClient/TCPClient/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..f76dcd6 Binary files /dev/null and b/TCPClient/TCPClient/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/TCPClient/TCPClient/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/TCPClient/TCPClient/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..96000da Binary files /dev/null and b/TCPClient/TCPClient/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/TCPClient/TCPClient/obj/x86/Debug/TCPClient.Form1.resources b/TCPClient/TCPClient/obj/x86/Debug/TCPClient.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/TCPClient/TCPClient/obj/x86/Debug/TCPClient.Form1.resources differ diff --git a/TCPClient/TCPClient/obj/x86/Debug/TCPClient.csproj.FileListAbsolute.txt b/TCPClient/TCPClient/obj/x86/Debug/TCPClient.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..1959b03 --- /dev/null +++ b/TCPClient/TCPClient/obj/x86/Debug/TCPClient.csproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +c:\users\benjamyn\documents\visual studio 2010\Projects\TCPClient\TCPClient\bin\Debug\TCPClient.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\TCPClient\TCPClient\bin\Debug\TCPClient.pdb +c:\users\benjamyn\documents\visual studio 2010\Projects\TCPClient\TCPClient\obj\x86\Debug\TCPClient.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\TCPClient\TCPClient\obj\x86\Debug\TCPClient.pdb +C:\Users\Benjamyn\documents\visual studio 2010\Projects\TCPClient\TCPClient\obj\x86\Debug\TCPClient.Form1.resources +C:\Users\Benjamyn\documents\visual studio 2010\Projects\TCPClient\TCPClient\obj\x86\Debug\TCPClient.csproj.GenerateResource.Cache +D:\Documents\Visual Studio 2010\Projects\TCPClient\TCPClient\obj\x86\Debug\TCPClient.exe +D:\Documents\Visual Studio 2010\Projects\TCPClient\TCPClient\obj\x86\Debug\TCPClient.pdb diff --git a/TCPClient/TCPClient/obj/x86/Debug/TCPClient.csproj.GenerateResource.Cache b/TCPClient/TCPClient/obj/x86/Debug/TCPClient.csproj.GenerateResource.Cache new file mode 100644 index 0000000..711866d Binary files /dev/null and b/TCPClient/TCPClient/obj/x86/Debug/TCPClient.csproj.GenerateResource.Cache differ diff --git a/TCPClient/TCPClient/obj/x86/Debug/TCPClient.exe b/TCPClient/TCPClient/obj/x86/Debug/TCPClient.exe new file mode 100644 index 0000000..8fccbb3 Binary files /dev/null and b/TCPClient/TCPClient/obj/x86/Debug/TCPClient.exe differ diff --git a/TCPClient/TCPClient/obj/x86/Debug/TCPClient.pdb b/TCPClient/TCPClient/obj/x86/Debug/TCPClient.pdb new file mode 100644 index 0000000..c79086b Binary files /dev/null and b/TCPClient/TCPClient/obj/x86/Debug/TCPClient.pdb differ diff --git a/TCPListen/TCPListen.sln b/TCPListen/TCPListen.sln new file mode 100644 index 0000000..284f9ee --- /dev/null +++ b/TCPListen/TCPListen.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TCPListen", "TCPListen\TCPListen.csproj", "{08F64FAA-C596-4C95-A840-B12B92AB9C85}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {08F64FAA-C596-4C95-A840-B12B92AB9C85}.Debug|x86.ActiveCfg = Debug|x86 + {08F64FAA-C596-4C95-A840-B12B92AB9C85}.Debug|x86.Build.0 = Debug|x86 + {08F64FAA-C596-4C95-A840-B12B92AB9C85}.Release|x86.ActiveCfg = Release|x86 + {08F64FAA-C596-4C95-A840-B12B92AB9C85}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/TCPListen/TCPListen.suo b/TCPListen/TCPListen.suo new file mode 100644 index 0000000..431b0aa Binary files /dev/null and b/TCPListen/TCPListen.suo differ diff --git a/TCPListen/TCPListen/Program.cs b/TCPListen/TCPListen/Program.cs new file mode 100644 index 0000000..3f69980 --- /dev/null +++ b/TCPListen/TCPListen/Program.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Net; +using System.Net.Sockets; +using System.Text; + +namespace TCPListen +{ + class Program + { + static void Main(string[] args) + { + TcpListener server = null; + try + { + Int32 port = 13754; + IPAddress localAddr = IPAddress.Parse("192.168.1.103"); + server = new TcpListener(localAddr, port); + server.Start(); + Byte[] bytes = new Byte[256]; + String data = null; + + //Listening Loop + while (true) + { + Console.Write("Waiting on a connection..."); + TcpClient client = server.AcceptTcpClient(); + Console.WriteLine("Connected"); + data = null; + + NetworkStream stream = client.GetStream(); + + int i; + + //Loop to receive all the data sent by the client + while ((i = stream.Read(bytes, 0, bytes.Length)) != 0) + { + data = System.Text.Encoding.ASCII.GetString(bytes, 0, i); + Console.WriteLine("Recieved: {0}", data); + + //Proccess the data + data = data.ToUpper(); + byte[] msg = System.Text.Encoding.ASCII.GetBytes(data); + + //Send back a response + stream.Write(msg, 0, msg.Length); + Console.WriteLine("Sent: {0}", data); + } + client.Close(); + } + } + catch (SocketException e) + { + Console.WriteLine("SocketException: {0}", e); + } + finally + { + server.Stop(); + } + Console.WriteLine("\nHit enter to continue"); + Console.Read(); + } + } +} diff --git a/TCPListen/TCPListen/Properties/AssemblyInfo.cs b/TCPListen/TCPListen/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..ad0388a --- /dev/null +++ b/TCPListen/TCPListen/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using 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. +[assembly: AssemblyTitle("TCPListen")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("TCPListen")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("6eb974e9-a0f9-417f-bfac-4662d64e3e64")] + +// 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: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/TCPListen/TCPListen/TCPListen.csproj b/TCPListen/TCPListen/TCPListen.csproj new file mode 100644 index 0000000..6b5b4bb --- /dev/null +++ b/TCPListen/TCPListen/TCPListen.csproj @@ -0,0 +1,57 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {08F64FAA-C596-4C95-A840-B12B92AB9C85} + Exe + Properties + TCPListen + TCPListen + v4.0 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/TCPListen/TCPListen/bin/Debug/TCPListen.exe b/TCPListen/TCPListen/bin/Debug/TCPListen.exe new file mode 100644 index 0000000..9a5af54 Binary files /dev/null and b/TCPListen/TCPListen/bin/Debug/TCPListen.exe differ diff --git a/TCPListen/TCPListen/bin/Debug/TCPListen.pdb b/TCPListen/TCPListen/bin/Debug/TCPListen.pdb new file mode 100644 index 0000000..f89aebb Binary files /dev/null and b/TCPListen/TCPListen/bin/Debug/TCPListen.pdb differ diff --git a/TCPListen/TCPListen/bin/Debug/TCPListen.vshost.exe b/TCPListen/TCPListen/bin/Debug/TCPListen.vshost.exe new file mode 100644 index 0000000..bb84a51 Binary files /dev/null and b/TCPListen/TCPListen/bin/Debug/TCPListen.vshost.exe differ diff --git a/TCPListen/TCPListen/bin/Debug/TCPListen.vshost.exe.manifest b/TCPListen/TCPListen/bin/Debug/TCPListen.vshost.exe.manifest new file mode 100644 index 0000000..f96b1d6 --- /dev/null +++ b/TCPListen/TCPListen/bin/Debug/TCPListen.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/TCPListen/TCPListen/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/TCPListen/TCPListen/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..c08c87a Binary files /dev/null and b/TCPListen/TCPListen/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/TCPListen/TCPListen/obj/x86/Debug/TCPListen.csproj.FileListAbsolute.txt b/TCPListen/TCPListen/obj/x86/Debug/TCPListen.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..242d760 --- /dev/null +++ b/TCPListen/TCPListen/obj/x86/Debug/TCPListen.csproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +c:\users\benjamyn\documents\visual studio 2010\Projects\TCPListen\TCPListen\bin\Debug\TCPListen.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\TCPListen\TCPListen\bin\Debug\TCPListen.pdb +c:\users\benjamyn\documents\visual studio 2010\Projects\TCPListen\TCPListen\obj\x86\Debug\TCPListen.exe +c:\users\benjamyn\documents\visual studio 2010\Projects\TCPListen\TCPListen\obj\x86\Debug\TCPListen.pdb +D:\Documents\Visual Studio 2010\Projects\TCPListen\TCPListen\obj\x86\Debug\TCPListen.exe +D:\Documents\Visual Studio 2010\Projects\TCPListen\TCPListen\obj\x86\Debug\TCPListen.pdb +D:\Documents\Visual Studio 2010\Projects\TCPListen\TCPListen\bin\Debug\TCPListen.exe +D:\Documents\Visual Studio 2010\Projects\TCPListen\TCPListen\bin\Debug\TCPListen.pdb diff --git a/TCPListen/TCPListen/obj/x86/Debug/TCPListen.exe b/TCPListen/TCPListen/obj/x86/Debug/TCPListen.exe new file mode 100644 index 0000000..9a5af54 Binary files /dev/null and b/TCPListen/TCPListen/obj/x86/Debug/TCPListen.exe differ diff --git a/TCPListen/TCPListen/obj/x86/Debug/TCPListen.pdb b/TCPListen/TCPListen/obj/x86/Debug/TCPListen.pdb new file mode 100644 index 0000000..f89aebb Binary files /dev/null and b/TCPListen/TCPListen/obj/x86/Debug/TCPListen.pdb differ diff --git a/VSMacros80/Samples/Samples.vsmacros b/VSMacros80/Samples/Samples.vsmacros new file mode 100644 index 0000000..f0d90f1 Binary files /dev/null and b/VSMacros80/Samples/Samples.vsmacros differ