commit 914793e145eca506d6109c3c7f308d81b0cd2881 Author: root Date: Thu Oct 26 20:11:00 2017 +0200 Initial commit diff --git a/Setup1/Release/SetupWoLManagerv0.1.msi b/Setup1/Release/SetupWoLManagerv0.1.msi new file mode 100755 index 0000000..83c0be9 Binary files /dev/null and b/Setup1/Release/SetupWoLManagerv0.1.msi differ diff --git a/Setup1/Release/setup.exe b/Setup1/Release/setup.exe new file mode 100755 index 0000000..bc3b7ca Binary files /dev/null and b/Setup1/Release/setup.exe differ diff --git a/Setup1/Setup1.vdproj b/Setup1/Setup1.vdproj new file mode 100755 index 0000000..e33c0a7 --- /dev/null +++ b/Setup1/Setup1.vdproj @@ -0,0 +1,782 @@ +"DeployProject" +{ +"VSVersion" = "3:800" +"ProjectType" = "8:{978C614F-708E-4E1A-B201-565925725DBA}" +"IsWebType" = "8:FALSE" +"ProjectName" = "8:WoL-Manager" +"LanguageId" = "3:1033" +"CodePage" = "3:1252" +"UILanguageId" = "3:1033" +"SccProjectName" = "8:" +"SccLocalPath" = "8:" +"SccAuxPath" = "8:" +"SccProvider" = "8:" + "Hierarchy" + { + "Entry" + { + "MsmKey" = "8:_4547845C796B4CF0A68E77C4B8DBA665" + "OwnerKey" = "8:_UNDEFINED" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_A0A2A3E977294E69B5F2AED96026A031" + "OwnerKey" = "8:_UNDEFINED" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_A0A2A3E977294E69B5F2AED96026A031" + "MsmSig" = "8:_UNDEFINED" + } + } + "Configurations" + { + "Debug" + { + "DisplayName" = "8:Debug" + "IsDebugOnly" = "11:TRUE" + "IsReleaseOnly" = "11:FALSE" + "OutputFilename" = "8:Debug\\Setup1.msi" + "PackageFilesAs" = "3:2" + "PackageFileSize" = "3:-2147483648" + "CabType" = "3:1" + "Compression" = "3:2" + "SignOutput" = "11:FALSE" + "CertificateFile" = "8:" + "PrivateKeyFile" = "8:" + "TimeStampServer" = "8:" + "InstallerBootstrapper" = "3:2" + "BootstrapperCfg:{63ACBE69-63AA-4F98-B2B6-99F9E24495F2}" + { + "Enabled" = "11:TRUE" + "PromptEnabled" = "11:TRUE" + "PrerequisitesLocation" = "2:1" + "Url" = "8:" + "ComponentsUrl" = "8:" + "Items" + { + } + } + } + "Release" + { + "DisplayName" = "8:Release" + "IsDebugOnly" = "11:FALSE" + "IsReleaseOnly" = "11:TRUE" + "OutputFilename" = "8:Release\\SetupWoLManagerv0.1.msi" + "PackageFilesAs" = "3:2" + "PackageFileSize" = "3:-2147483648" + "CabType" = "3:1" + "Compression" = "3:2" + "SignOutput" = "11:FALSE" + "CertificateFile" = "8:" + "PrivateKeyFile" = "8:" + "TimeStampServer" = "8:" + "InstallerBootstrapper" = "3:2" + "BootstrapperCfg:{63ACBE69-63AA-4F98-B2B6-99F9E24495F2}" + { + "Enabled" = "11:TRUE" + "PromptEnabled" = "11:TRUE" + "PrerequisitesLocation" = "2:1" + "Url" = "8:" + "ComponentsUrl" = "8:" + "Items" + { + } + } + } + } + "Deployable" + { + "CustomAction" + { + } + "DefaultFeature" + { + "Name" = "8:DefaultFeature" + "Title" = "8:" + "Description" = "8:" + } + "ExternalPersistence" + { + "LaunchCondition" + { + "{A06ECF26-33A3-4562-8140-9B0E340D4F24}:_D947959A8303481E9682A484EFFA302C" + { + "Name" = "8:.NET Framework" + "Message" = "8:[VSDNETMSG]" + "Version" = "8:2.0.50727" + "AllowLaterVersions" = "11:FALSE" + "InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=9832" + } + } + } + "File" + { + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_4547845C796B4CF0A68E77C4B8DBA665" + { + "SourcePath" = "8:..\\WoL-Manager v0.1\\Magic.ico" + "TargetName" = "8:Magic.ico" + "Tag" = "8:" + "Folder" = "8:_0318ED3C2CDA41828F929243B2F3361C" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Vital" = "11:TRUE" + "ReadOnly" = "11:FALSE" + "Hidden" = "11:FALSE" + "System" = "11:FALSE" + "Permanent" = "11:FALSE" + "SharedLegacy" = "11:FALSE" + "PackageAs" = "3:1" + "Register" = "3:1" + "Exclude" = "11:FALSE" + "IsDependency" = "11:FALSE" + "IsolateTo" = "8:" + } + } + "FileType" + { + } + "Folder" + { + "{3C67513D-01DD-4637-8A68-80971EB9504F}:_0318ED3C2CDA41828F929243B2F3361C" + { + "DefaultLocation" = "8:[ProgramFilesFolder]\\[ProductName]" + "Name" = "8:#1925" + "AlwaysCreate" = "11:FALSE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:TARGETDIR" + "Folders" + { + } + } + "{1525181F-901A-416C-8A58-119130FE478E}:_7D35FA2D1A264BBEAAD10DCF4F8505D8" + { + "Name" = "8:#1916" + "AlwaysCreate" = "11:FALSE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:DesktopFolder" + "Folders" + { + } + } + "{1525181F-901A-416C-8A58-119130FE478E}:_E240CDA889C94B97871BA13F142D01F8" + { + "Name" = "8:#1919" + "AlwaysCreate" = "11:FALSE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:ProgramMenuFolder" + "Folders" + { + "{9EF0B969-E518-4E46-987F-47570745A589}:_0AF2B8D4662941D0904BFF753BFB5661" + { + "Name" = "8:WoL-Manager" + "AlwaysCreate" = "11:FALSE" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Property" = "8:_204DBBF1EAD04185AAEE971C74EA737F" + "Folders" + { + } + } + } + } + } + "LaunchCondition" + { + } + "Locator" + { + } + "MsiBootstrapper" + { + "LangId" = "3:1033" + } + "Product" + { + "Name" = "8:Microsoft Visual Studio" + "ProductName" = "8:WoL-Manager v0.1" + "ProductCode" = "8:{83F8651F-EAAC-461E-9057-A4016FA43964}" + "PackageCode" = "8:{675A7AB7-8CD6-4B70-83BB-D59F8FF74FE0}" + "UpgradeCode" = "8:{34EDCFE1-2847-4269-895C-EFDAC622D369}" + "RestartWWWService" = "11:FALSE" + "RemovePreviousVersions" = "11:TRUE" + "DetectNewerInstalledVersion" = "11:FALSE" + "InstallAllUsers" = "11:FALSE" + "ProductVersion" = "8:0.1.0" + "Manufacturer" = "8:The MatzMan Company" + "ARPHELPTELEPHONE" = "8:" + "ARPHELPLINK" = "8:" + "Title" = "8:WoL-Manager v0.1" + "Subject" = "8:" + "ARPCONTACT" = "8:MatzMan" + "Keywords" = "8:" + "ARPCOMMENTS" = "8:" + "ARPURLINFOABOUT" = "8:" + "ARPPRODUCTICON" = "8:" + "ARPIconIndex" = "3:0" + "SearchPath" = "8:" + "UseSystemSearchPath" = "11:TRUE" + "TargetPlatform" = "3:0" + "PreBuildEvent" = "8:" + "PostBuildEvent" = "8:" + "RunPostBuildEvent" = "3:0" + } + "Registry" + { + "HKLM" + { + "Keys" + { + "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_F7824403F60747509639A8CB1DB98204" + { + "Name" = "8:Software" + "Condition" = "8:" + "AlwaysCreate" = "11:FALSE" + "DeleteAtUninstall" = "11:FALSE" + "Transitive" = "11:FALSE" + "Keys" + { + "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_025F8ACA3A75424C923C45978BF10694" + { + "Name" = "8:[Manufacturer]" + "Condition" = "8:" + "AlwaysCreate" = "11:FALSE" + "DeleteAtUninstall" = "11:FALSE" + "Transitive" = "11:FALSE" + "Keys" + { + } + "Values" + { + } + } + } + "Values" + { + } + } + } + } + "HKCU" + { + "Keys" + { + "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_8CCE1280869042B88479749D175776F9" + { + "Name" = "8:Software" + "Condition" = "8:" + "AlwaysCreate" = "11:FALSE" + "DeleteAtUninstall" = "11:FALSE" + "Transitive" = "11:FALSE" + "Keys" + { + "{60EA8692-D2D5-43EB-80DC-7906BF13D6EF}:_01382B6920564C50BAFC825FF619EE48" + { + "Name" = "8:[Manufacturer]" + "Condition" = "8:" + "AlwaysCreate" = "11:FALSE" + "DeleteAtUninstall" = "11:FALSE" + "Transitive" = "11:FALSE" + "Keys" + { + } + "Values" + { + } + } + } + "Values" + { + } + } + } + } + "HKCR" + { + "Keys" + { + } + } + "HKU" + { + "Keys" + { + } + } + "HKPU" + { + "Keys" + { + } + } + } + "Sequences" + { + } + "Shortcut" + { + "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_68B4CE9D747A4CEF9A00B2C27660A246" + { + "Name" = "8:WoL-Manager v0.1" + "Arguments" = "8:" + "Description" = "8:" + "ShowCmd" = "3:1" + "IconIndex" = "3:0" + "Transitive" = "11:FALSE" + "Target" = "8:_A0A2A3E977294E69B5F2AED96026A031" + "Folder" = "8:_0AF2B8D4662941D0904BFF753BFB5661" + "WorkingFolder" = "8:_0318ED3C2CDA41828F929243B2F3361C" + "Icon" = "8:_4547845C796B4CF0A68E77C4B8DBA665" + "Feature" = "8:" + } + "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_A2FD3F18DCCB43F7A617DF02A795CA1D" + { + "Name" = "8:WoL-Manager v0.1" + "Arguments" = "8:" + "Description" = "8:" + "ShowCmd" = "3:1" + "IconIndex" = "3:0" + "Transitive" = "11:FALSE" + "Target" = "8:_A0A2A3E977294E69B5F2AED96026A031" + "Folder" = "8:_7D35FA2D1A264BBEAAD10DCF4F8505D8" + "WorkingFolder" = "8:_0318ED3C2CDA41828F929243B2F3361C" + "Icon" = "8:_4547845C796B4CF0A68E77C4B8DBA665" + "Feature" = "8:" + } + } + "UserInterface" + { + "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_3C682703E33C42EE896B1FC8661A0BDF" + { + "Name" = "8:#1900" + "Sequence" = "3:1" + "Attributes" = "3:1" + "Dialogs" + { + "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_153A97CA03DF48009D3D29F4157E6E5E" + { + "Sequence" = "3:100" + "DisplayName" = "8:Welcome" + "UseDynamicProperties" = "11:TRUE" + "IsDependency" = "11:FALSE" + "SourcePath" = "8:\\VsdWelcomeDlg.wid" + "Properties" + { + "BannerBitmap" + { + "Name" = "8:BannerBitmap" + "DisplayName" = "8:#1001" + "Description" = "8:#1101" + "Type" = "3:8" + "ContextData" = "8:Bitmap" + "Attributes" = "3:4" + "Setting" = "3:1" + "UsePlugInResources" = "11:TRUE" + } + "CopyrightWarning" + { + "Name" = "8:CopyrightWarning" + "DisplayName" = "8:#1002" + "Description" = "8:#1102" + "Type" = "3:3" + "ContextData" = "8:" + "Attributes" = "3:0" + "Setting" = "3:2" + "Value" = "8:This software is freeware! Everyone is free to share this software without charge. USE AT YOUR OWN RISK!" + "DefaultValue" = "8:#1202" + "UsePlugInResources" = "11:TRUE" + } + "Welcome" + { + "Name" = "8:Welcome" + "DisplayName" = "8:#1003" + "Description" = "8:#1103" + "Type" = "3:3" + "ContextData" = "8:" + "Attributes" = "3:0" + "Setting" = "3:1" + "Value" = "8:#1203" + "DefaultValue" = "8:#1203" + "UsePlugInResources" = "11:TRUE" + } + } + } + "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_3E6CBC03B7EC4D59A9ECA2FED73BEF45" + { + "Sequence" = "3:300" + "DisplayName" = "8:Confirm Installation" + "UseDynamicProperties" = "11:TRUE" + "IsDependency" = "11:FALSE" + "SourcePath" = "8:\\VsdConfirmDlg.wid" + "Properties" + { + "BannerBitmap" + { + "Name" = "8:BannerBitmap" + "DisplayName" = "8:#1001" + "Description" = "8:#1101" + "Type" = "3:8" + "ContextData" = "8:Bitmap" + "Attributes" = "3:4" + "Setting" = "3:1" + "UsePlugInResources" = "11:TRUE" + } + } + } + "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_6B23E6740F5C4B299C956DE46B799D33" + { + "Sequence" = "3:200" + "DisplayName" = "8:Installation Folder" + "UseDynamicProperties" = "11:TRUE" + "IsDependency" = "11:FALSE" + "SourcePath" = "8:\\VsdFolderDlg.wid" + "Properties" + { + "BannerBitmap" + { + "Name" = "8:BannerBitmap" + "DisplayName" = "8:#1001" + "Description" = "8:#1101" + "Type" = "3:8" + "ContextData" = "8:Bitmap" + "Attributes" = "3:4" + "Setting" = "3:1" + "UsePlugInResources" = "11:TRUE" + } + "InstallAllUsersVisible" + { + "Name" = "8:InstallAllUsersVisible" + "DisplayName" = "8:#1059" + "Description" = "8:#1159" + "Type" = "3:5" + "ContextData" = "8:1;True=1;False=0" + "Attributes" = "3:0" + "Setting" = "3:0" + "Value" = "3:1" + "DefaultValue" = "3:1" + "UsePlugInResources" = "11:TRUE" + } + } + } + } + } + "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_467F78B55B014452875E6A13626FC2C1" + { + "Name" = "8:#1902" + "Sequence" = "3:2" + "Attributes" = "3:3" + "Dialogs" + { + "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_6E8CE3E6F610483EB944850B47A83E5C" + { + "Sequence" = "3:100" + "DisplayName" = "8:Finished" + "UseDynamicProperties" = "11:TRUE" + "IsDependency" = "11:FALSE" + "SourcePath" = "8:\\VsdAdminFinishedDlg.wid" + "Properties" + { + "BannerBitmap" + { + "Name" = "8:BannerBitmap" + "DisplayName" = "8:#1001" + "Description" = "8:#1101" + "Type" = "3:8" + "ContextData" = "8:Bitmap" + "Attributes" = "3:4" + "Setting" = "3:1" + "UsePlugInResources" = "11:TRUE" + } + } + } + } + } + "{2479F3F5-0309-486D-8047-8187E2CE5BA0}:_69CF2CBB063C4B8B9B82A4F336B7F512" + { + "UseDynamicProperties" = "11:FALSE" + "IsDependency" = "11:FALSE" + "SourcePath" = "8:\\VsdUserInterface.wim" + } + "{2479F3F5-0309-486D-8047-8187E2CE5BA0}:_8415CC2C00CB497DAC3B70B2102CCCA5" + { + "UseDynamicProperties" = "11:FALSE" + "IsDependency" = "11:FALSE" + "SourcePath" = "8:\\VsdBasicDialogs.wim" + } + "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_94E1DBFBCE874604A8BF7C62340EAF6C" + { + "Name" = "8:#1901" + "Sequence" = "3:1" + "Attributes" = "3:2" + "Dialogs" + { + "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_3DD9CEC027DD404A822DE0C494081180" + { + "Sequence" = "3:100" + "DisplayName" = "8:Progress" + "UseDynamicProperties" = "11:TRUE" + "IsDependency" = "11:FALSE" + "SourcePath" = "8:\\VsdProgressDlg.wid" + "Properties" + { + "BannerBitmap" + { + "Name" = "8:BannerBitmap" + "DisplayName" = "8:#1001" + "Description" = "8:#1101" + "Type" = "3:8" + "ContextData" = "8:Bitmap" + "Attributes" = "3:4" + "Setting" = "3:1" + "UsePlugInResources" = "11:TRUE" + } + "ShowProgress" + { + "Name" = "8:ShowProgress" + "DisplayName" = "8:#1009" + "Description" = "8:#1109" + "Type" = "3:5" + "ContextData" = "8:1;True=1;False=0" + "Attributes" = "3:0" + "Setting" = "3:0" + "Value" = "3:1" + "DefaultValue" = "3:1" + "UsePlugInResources" = "11:TRUE" + } + } + } + } + } + "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_D8730E1BB75944D3A1F4C2FA1E77F3E6" + { + "Name" = "8:#1900" + "Sequence" = "3:2" + "Attributes" = "3:1" + "Dialogs" + { + "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_2E1538FA0A394EB4AC545548B71B0446" + { + "Sequence" = "3:300" + "DisplayName" = "8:Confirm Installation" + "UseDynamicProperties" = "11:TRUE" + "IsDependency" = "11:FALSE" + "SourcePath" = "8:\\VsdAdminConfirmDlg.wid" + "Properties" + { + "BannerBitmap" + { + "Name" = "8:BannerBitmap" + "DisplayName" = "8:#1001" + "Description" = "8:#1101" + "Type" = "3:8" + "ContextData" = "8:Bitmap" + "Attributes" = "3:4" + "Setting" = "3:1" + "UsePlugInResources" = "11:TRUE" + } + } + } + "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_8F0D2DC4156F44E6A86171C84740D57E" + { + "Sequence" = "3:200" + "DisplayName" = "8:Installation Folder" + "UseDynamicProperties" = "11:TRUE" + "IsDependency" = "11:FALSE" + "SourcePath" = "8:\\VsdAdminFolderDlg.wid" + "Properties" + { + "BannerBitmap" + { + "Name" = "8:BannerBitmap" + "DisplayName" = "8:#1001" + "Description" = "8:#1101" + "Type" = "3:8" + "ContextData" = "8:Bitmap" + "Attributes" = "3:4" + "Setting" = "3:1" + "UsePlugInResources" = "11:TRUE" + } + } + } + "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_EAD15FE143394BBA9A521029873DDEBE" + { + "Sequence" = "3:100" + "DisplayName" = "8:Welcome" + "UseDynamicProperties" = "11:TRUE" + "IsDependency" = "11:FALSE" + "SourcePath" = "8:\\VsdAdminWelcomeDlg.wid" + "Properties" + { + "BannerBitmap" + { + "Name" = "8:BannerBitmap" + "DisplayName" = "8:#1001" + "Description" = "8:#1101" + "Type" = "3:8" + "ContextData" = "8:Bitmap" + "Attributes" = "3:4" + "Setting" = "3:1" + "UsePlugInResources" = "11:TRUE" + } + "CopyrightWarning" + { + "Name" = "8:CopyrightWarning" + "DisplayName" = "8:#1002" + "Description" = "8:#1102" + "Type" = "3:3" + "ContextData" = "8:" + "Attributes" = "3:0" + "Setting" = "3:2" + "Value" = "8:This software is freeware! Everyone is free to share this software without charge. USE AT YOUR OWN RISK!" + "DefaultValue" = "8:#1202" + "UsePlugInResources" = "11:TRUE" + } + "Welcome" + { + "Name" = "8:Welcome" + "DisplayName" = "8:#1003" + "Description" = "8:#1103" + "Type" = "3:3" + "ContextData" = "8:" + "Attributes" = "3:0" + "Setting" = "3:1" + "Value" = "8:#1203" + "DefaultValue" = "8:#1203" + "UsePlugInResources" = "11:TRUE" + } + } + } + } + } + "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_F2BCB55046294F55B95F77ED1699D48E" + { + "Name" = "8:#1902" + "Sequence" = "3:1" + "Attributes" = "3:3" + "Dialogs" + { + "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_C4C710BDD95246218A83131A16E79319" + { + "Sequence" = "3:100" + "DisplayName" = "8:Finished" + "UseDynamicProperties" = "11:TRUE" + "IsDependency" = "11:FALSE" + "SourcePath" = "8:\\VsdFinishedDlg.wid" + "Properties" + { + "BannerBitmap" + { + "Name" = "8:BannerBitmap" + "DisplayName" = "8:#1001" + "Description" = "8:#1101" + "Type" = "3:8" + "ContextData" = "8:Bitmap" + "Attributes" = "3:4" + "Setting" = "3:1" + "UsePlugInResources" = "11:TRUE" + } + "UpdateText" + { + "Name" = "8:UpdateText" + "DisplayName" = "8:#1058" + "Description" = "8:#1158" + "Type" = "3:15" + "ContextData" = "8:" + "Attributes" = "3:0" + "Setting" = "3:1" + "Value" = "8:#1258" + "DefaultValue" = "8:#1258" + "UsePlugInResources" = "11:TRUE" + } + } + } + } + } + "{DF760B10-853B-4699-99F2-AFF7185B4A62}:_F5F112ABB3F644C8AE6F0E836D9885A9" + { + "Name" = "8:#1901" + "Sequence" = "3:2" + "Attributes" = "3:2" + "Dialogs" + { + "{688940B3-5CA9-4162-8DEE-2993FA9D8CBC}:_48558DE7263142CCA5B8F528C45E2F64" + { + "Sequence" = "3:100" + "DisplayName" = "8:Progress" + "UseDynamicProperties" = "11:TRUE" + "IsDependency" = "11:FALSE" + "SourcePath" = "8:\\VsdAdminProgressDlg.wid" + "Properties" + { + "BannerBitmap" + { + "Name" = "8:BannerBitmap" + "DisplayName" = "8:#1001" + "Description" = "8:#1101" + "Type" = "3:8" + "ContextData" = "8:Bitmap" + "Attributes" = "3:4" + "Setting" = "3:1" + "UsePlugInResources" = "11:TRUE" + } + "ShowProgress" + { + "Name" = "8:ShowProgress" + "DisplayName" = "8:#1009" + "Description" = "8:#1109" + "Type" = "3:5" + "ContextData" = "8:1;True=1;False=0" + "Attributes" = "3:0" + "Setting" = "3:0" + "Value" = "3:1" + "DefaultValue" = "3:1" + "UsePlugInResources" = "11:TRUE" + } + } + } + } + } + } + "MergeModule" + { + } + "ProjectOutput" + { + "{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_A0A2A3E977294E69B5F2AED96026A031" + { + "SourcePath" = "8:..\\WoL-Manager v0.1\\obj\\Release\\WoL-Manager v0.1.exe" + "TargetName" = "8:" + "Tag" = "8:" + "Folder" = "8:_0318ED3C2CDA41828F929243B2F3361C" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Vital" = "11:TRUE" + "ReadOnly" = "11:FALSE" + "Hidden" = "11:FALSE" + "System" = "11:FALSE" + "Permanent" = "11:FALSE" + "SharedLegacy" = "11:FALSE" + "PackageAs" = "3:1" + "Register" = "3:1" + "Exclude" = "11:FALSE" + "IsDependency" = "11:FALSE" + "IsolateTo" = "8:" + "ProjectOutputGroupRegister" = "3:1" + "OutputConfiguration" = "8:Release|Any CPU" + "OutputGroupCanonicalName" = "8:Built" + "OutputProjectGuid" = "8:{DBBAD321-A9A0-486E-828B-DE9920C77E65}" + "ShowKeyOutput" = "11:TRUE" + "ExcludeFilters" + { + } + } + } + } +} diff --git a/WoL-Manager v0.1.sln b/WoL-Manager v0.1.sln new file mode 100755 index 0000000..c813278 --- /dev/null +++ b/WoL-Manager v0.1.sln @@ -0,0 +1,24 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WoL-Manager v0.1", "WoL-Manager v0.1\WoL-Manager v0.1.csproj", "{DBBAD321-A9A0-486E-828B-DE9920C77E65}" +EndProject +Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "Setup1", "Setup1\Setup1.vdproj", "{3531DD24-71CB-4C84-9DB1-57AB02681FF6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DBBAD321-A9A0-486E-828B-DE9920C77E65}.Debug|Any CPU.ActiveCfg = Release|Any CPU + {DBBAD321-A9A0-486E-828B-DE9920C77E65}.Debug|Any CPU.Build.0 = Release|Any CPU + {DBBAD321-A9A0-486E-828B-DE9920C77E65}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DBBAD321-A9A0-486E-828B-DE9920C77E65}.Release|Any CPU.Build.0 = Release|Any CPU + {3531DD24-71CB-4C84-9DB1-57AB02681FF6}.Debug|Any CPU.ActiveCfg = Debug + {3531DD24-71CB-4C84-9DB1-57AB02681FF6}.Release|Any CPU.ActiveCfg = Release + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/WoL-Manager v0.1.suo b/WoL-Manager v0.1.suo new file mode 100755 index 0000000..3bec282 Binary files /dev/null and b/WoL-Manager v0.1.suo differ diff --git a/WoL-Manager v0.1/AboutWindow.Designer.cs b/WoL-Manager v0.1/AboutWindow.Designer.cs new file mode 100755 index 0000000..e5abe16 --- /dev/null +++ b/WoL-Manager v0.1/AboutWindow.Designer.cs @@ -0,0 +1,112 @@ +namespace WoL_Manager + { + partial class AboutWindow + { + /// + /// 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() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutWindow)); + this.QuitButton1 = new System.Windows.Forms.Button(); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // QuitButton1 + // + this.QuitButton1.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.QuitButton1.Location = new System.Drawing.Point(146, 272); + this.QuitButton1.Name = "QuitButton1"; + this.QuitButton1.Size = new System.Drawing.Size(75, 34); + this.QuitButton1.TabIndex = 0; + this.QuitButton1.Text = "Quit"; + this.QuitButton1.UseVisualStyleBackColor = true; + // + // richTextBox1 + // + this.richTextBox1.Cursor = System.Windows.Forms.Cursors.Default; + this.richTextBox1.Location = new System.Drawing.Point(12, 74); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.ReadOnly = true; + this.richTextBox1.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None; + this.richTextBox1.Size = new System.Drawing.Size(337, 146); + this.richTextBox1.TabIndex = 1; + this.richTextBox1.Text = resources.GetString("richTextBox1.Text"); + this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(12, 18); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(277, 33); + this.label1.TabIndex = 2; + this.label1.Text = "WoL-Manager v0.1"; + this.label1.Click += new System.EventHandler(this.label1_Click); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.Location = new System.Drawing.Point(8, 233); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(120, 19); + this.label2.TabIndex = 3; + this.label2.Text = "© 2006 MatzMan"; + // + // AboutWindow + // + this.AcceptButton = this.QuitButton1; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.CancelButton = this.QuitButton1; + this.ClientSize = new System.Drawing.Size(361, 318); + this.ControlBox = false; + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Controls.Add(this.richTextBox1); + this.Controls.Add(this.QuitButton1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "AboutWindow"; + this.ShowInTaskbar = false; + this.Text = "About..."; + this.Load += new System.EventHandler(this.AboutWindow_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button QuitButton1; + private System.Windows.Forms.RichTextBox richTextBox1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + } + } \ No newline at end of file diff --git a/WoL-Manager v0.1/AboutWindow.cs b/WoL-Manager v0.1/AboutWindow.cs new file mode 100755 index 0000000..fabff50 --- /dev/null +++ b/WoL-Manager v0.1/AboutWindow.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace WoL_Manager + { + public partial class AboutWindow : Form + { + public AboutWindow() + { + InitializeComponent(); + } + + private void AboutWindow_Load(object sender, EventArgs e) + { + QuitButton1.Click += new EventHandler(this.quitEventHandler); + } + + private void quitEventHandler(object sender, EventArgs e) + { + this.Hide(); + this.Close(); + } + + private void label1_Click(object sender, EventArgs e) + { + + } + + private void richTextBox1_TextChanged(object sender, EventArgs e) + { + + } + + + } + } \ No newline at end of file diff --git a/WoL-Manager v0.1/AboutWindow.resx b/WoL-Manager v0.1/AboutWindow.resx new file mode 100755 index 0000000..b3d986c --- /dev/null +++ b/WoL-Manager v0.1/AboutWindow.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + This software is freeware! +Everyone is free to share this software without charge. + +Use at your own risk! +I don't give support and don't take the responsibility for any bugs and problems caused by the use of this software. +I have written this piece of software by reason of learning C# and I didn't have the time for bug-searching and testing the reliability. +So this software should not be used in commercial and critical environments. + + \ No newline at end of file diff --git a/WoL-Manager v0.1/EditHostWindow.cs b/WoL-Manager v0.1/EditHostWindow.cs new file mode 100755 index 0000000..d95d0ec --- /dev/null +++ b/WoL-Manager v0.1/EditHostWindow.cs @@ -0,0 +1,99 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Windows.Forms; + +namespace WoL_Manager + { + class EditHostWindow : NewHostWindow + { + private Host host; + + public EditHostWindow(Host h) : base() + { + host = h; + this.Text = "Edit Host"; + InputName.Text = host.Name; + InputIP.Text = host.IP.ToString(); + InputBroadcast.Text = host.Broadcast.ToString(); + InputMAC.Text = host.MAC; + InputDescription.Text = host.Description; + } + + protected override void NewHostWindow_Load(object sender, EventArgs e) + { + OkButton1.Click += new System.EventHandler(this.buttonEventHandler); + CancelButton1.Click += new System.EventHandler(this.buttonEventHandler); + } + + protected override void buttonEventHandler(object sender, EventArgs e) + { + if (sender == OkButton1) + { + string name = InputName.Text.Trim(); + if (name.Length < 1) + { + MessageBox.Show("There is no name given!", "ERROR", MessageBoxButtons.OK); + return; + } + string mac = InputMAC.Text.Trim().ToUpper(); + if (!MainWindow.checkMAC(mac)) + { + MessageBox.Show("Wasn't able to parse MAC-Address!\nShould be like this: 00AF2C4323D3", + "ERROR", MessageBoxButtons.OK); + return; + } + string description = InputDescription.Text; + System.Net.IPAddress ip_addr; + System.Net.IPAddress bc_addr; + try + { + ip_addr = System.Net.IPAddress.Parse(InputIP.Text); + } + catch (Exception) + { + MessageBox.Show("Wasn't able to parse IP-Address!\nShould be like this: 192.168.0.1", + "ERROR", MessageBoxButtons.OK); + return; + } + try + { + bc_addr = System.Net.IPAddress.Parse(InputBroadcast.Text); + } + catch (Exception) + { + MessageBox.Show("Wasn't able to parse Broadcast-Address!\nShould be like this: 192.168.0.255", + "ERROR", MessageBoxButtons.OK); + return; + } + + host.Name = name; + host.IP = ip_addr; + host.Broadcast = bc_addr; + host.MAC = mac; + host.Description = description; + host.pingThread.stopThread(); + host.pingThread = null; + } + this.Close(); + } + + private void InitializeComponent() + { + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // EditHostWindow + // + this.ClientSize = new System.Drawing.Size(355, 257); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Name = "EditHostWindow"; + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + + } + } diff --git a/WoL-Manager v0.1/EditHostWindow.resx b/WoL-Manager v0.1/EditHostWindow.resx new file mode 100755 index 0000000..ff31a6d --- /dev/null +++ b/WoL-Manager v0.1/EditHostWindow.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/WoL-Manager v0.1/Host.cs b/WoL-Manager v0.1/Host.cs new file mode 100755 index 0000000..39815e6 --- /dev/null +++ b/WoL-Manager v0.1/Host.cs @@ -0,0 +1,346 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Net; +using System.Net.Sockets; +using System.Net.NetworkInformation; +using System.Drawing; +using System.Xml; +using System.Xml.Schema; +using System.IO; + +namespace WoL_Manager + { + class Host + { + private string name; + private IPAddress ip; + private string mac_address; + private IPAddress broadcast; + private string description; + private int status; + private PingThread ping; + private PingReply lastPingReply; + private System.DateTime wakeTime; + + private static MainWindow parent = null; + private static Icon[] iconList = null; + private static List hostList = new List(); + + private Host(string name, IPAddress ip, string mac, + IPAddress broadcast, string description) + { + this.name = name; + this.ip = ip; + this.mac_address = mac; + this.broadcast = broadcast; + this.description = description; + status = 0; + ping = null; + lastPingReply = null; + wakeTime = DateTime.Now; + } + + ~Host() + { + if (ping != null) + { + ping.stopThread(); + } + } + + public static void clearList() + { + hostList.Clear(); + } + + public Icon getStatusIcon() + { + if (iconList != null && iconList.Length > status) + { + return iconList[status]; + } + else + { + return null; + } + } + + public static MainWindow Parent + { + set + { + parent = value; + } + get + { + return parent; + } + } + + public static Icon[] IconList + { + set + { + iconList = value; + } + get + { + return iconList; + } + } + + public PingThread pingThread + { + set + { + ping = value; + } + get + { + return ping; + } + } + + public string getStatusString() + { + switch (status) + { + case 0: + return "Unknown Status"; + case 1: + return string.Format("Host online ({0} ms)",lastPingReply.RoundtripTime); + case 2: + return string.Format("Host not reachable ({0})", lastPingReply.Status); + case 3: + TimeSpan temp = (TimeSpan)(DateTime.Now - wakeTime); + return string.Format("Waking Host (waiting for {0} m {1} s)", temp.Minutes, temp.Seconds); + default: + return "???"; + } + } + + public PingReply LastPingResult + { + get + { + return lastPingReply; + } + set + { + lastPingReply = value; + if (value.Status == IPStatus.Success) + { + status = 1; + } + else if (status == 3) + { + double temp = ((TimeSpan)(DateTime.Now - wakeTime)).TotalSeconds; + if (temp > ManagerSettings.WakeWaitTime) + { + status = 2; + } + } + else if (status != 3) + { + status = 2; + } + parent.updateDataView(); + } + } + + public bool wakeHost() + { + bool temp = Magic_Packet.sendPacket(this); + if (temp) + { + status = 3; + wakeTime = System.DateTime.Now; + } + return temp; + } + + private static void validationEventHandler(object sender, ValidationEventArgs args) + { + valitationResult = false; + } + + private static bool valitationResult = true; + + + public static bool readFromFile(string file) + { + XmlReaderSettings settings = new XmlReaderSettings(); + settings.IgnoreWhitespace = true; + settings.IgnoreComments = true; + settings.IgnoreProcessingInstructions = true; + settings.ProhibitDtd = false; + settings.ValidationType = ValidationType.DTD; + settings.ValidationEventHandler += new ValidationEventHandler(validationEventHandler); + XmlReader reader = XmlReader.Create(file, settings); + while (reader.Read()) + { + if (reader.NodeType == XmlNodeType.Element && reader.LocalName.CompareTo("host") == 0) + { + string name; + string ip; + string bc; + string mac; + string desc; + System.Net.IPAddress ip_adr; + System.Net.IPAddress bc_adr; + reader.Read(); + name = reader.ReadString(); + reader.Read(); + ip = reader.ReadString(); + reader.Read(); + bc = reader.ReadString(); + reader.Read(); + mac = reader.ReadString(); + if (!MainWindow.checkMAC(mac)) + { + reader.Close(); + return false; + } + reader.Read(); + desc = reader.ReadString(); + try + { + ip_adr = System.Net.IPAddress.Parse(ip); + bc_adr = System.Net.IPAddress.Parse(bc); + } + catch (Exception) + { + reader.Close(); + return false; + } + if (valitationResult == false) + { + reader.Close(); + return false; + } + Host.createHost(name, ip_adr, mac, bc_adr, desc); + } + } + reader.Close(); + return true; + } + + public static void createDTD(string file) + { + string temp = "\n\n\n\n\n\n\n\n"; + File.WriteAllText(file, temp); + } + + public static void writeToFile(string file) + { + Host[] hostList = Host.getHostList(); + string temp = "\n\n\n"; + if (hostList != null && hostList.Length > 0) + { + for (int t = 0; t < hostList.Length; t++) + { + temp = String.Concat(temp, "\n\n", hostList[t].Name, ""); + temp = String.Concat(temp, "\n", hostList[t].IP.ToString(), ""); + temp = String.Concat(temp, "\n", hostList[t].Broadcast.ToString(), ""); + temp = String.Concat(temp, "\n", hostList[t].MAC, ""); + temp = String.Concat(temp, "\n", hostList[t].Description, "\n"); + } + } + temp = String.Concat(temp,"\n"); + File.WriteAllText(file,temp); + } + + + public int Status + { + get + { + return status; + } + set + { + status = value; + } + } + + public string Name + { + get + { + return name; + } + set + { + name = value; + } + } + + public IPAddress IP + { + get + { + return ip; + } + set + { + ip = value; + } + } + + public string MAC + { + get + { + return mac_address; + } + set + { + mac_address = value; + } + } + + public IPAddress Broadcast + { + get + { + return broadcast; + } + set + { + broadcast = value; + } + } + + public string Description + { + get + { + return description; + } + set + { + description = value; + } + } + + public static Host createHost(string name, IPAddress ip, string mac, + IPAddress broadcast, string description) + { + Host temp = new Host(name, ip, mac, broadcast, description); + hostList.Add(temp); + return temp; + } + + public static bool deleteHost(Host host) + { + host.pingThread.stopThread(); + return hostList.Remove(host); + } + + public static Host[] getHostList() + { + return hostList.ToArray(); + } + } + } diff --git a/WoL-Manager v0.1/Magic.ico b/WoL-Manager v0.1/Magic.ico new file mode 100755 index 0000000..97daeb6 Binary files /dev/null and b/WoL-Manager v0.1/Magic.ico differ diff --git a/WoL-Manager v0.1/Magic_Packet.cs b/WoL-Manager v0.1/Magic_Packet.cs new file mode 100755 index 0000000..81da189 --- /dev/null +++ b/WoL-Manager v0.1/Magic_Packet.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Net; +using System.Net.Sockets; +using System.Net.NetworkInformation; + +namespace WoL_Manager + { + class Magic_Packet + { + private byte[] data; + + private int size; + + public Magic_Packet(string mac_adress) + { + size = 135; + data = new byte[6]; + for (int t1 = 0; t1 < 6; t1++) + { + data[t1] = byte.Parse(mac_adress.Substring(t1 * 2, 2), System.Globalization.NumberStyles.HexNumber); + } + } + + public int getSerializeLength() + { + return size; + } + + + public int serialize(ref byte[] buffer, int index) + { + if (buffer.Length - index < size) + { + throw new Exception("ERROR:Buffer-Overflow detected"); + } + for (int t = 0; t < 6; t++) + { + buffer[index+t] = 0xFF; + } + for (int t = 0; t < 16; t++) + { + Array.Copy(data, 0, buffer, index + 6 + 6 * t, 6); + } + char[] temp = "\0\0Wake on Lan provided by MatzMan".ToCharArray(); + for (int t = 0; t < 33; t++) + { + buffer[index + 102 + t] = Convert.ToByte(temp[t]); + } + return size; + } + + + public string getPayloadType() + { + return "WoL"; + } + + public static bool sendPacket(Host host) + { + int temp1; + byte[] temp2; + if (!MainWindow.checkMAC(host.MAC)) + { + return false; + } + Magic_Packet packet = new Magic_Packet(host.MAC); + temp1 = packet.getSerializeLength(); + temp2 = new byte[temp1]; + packet.serialize(ref temp2, 0); + Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Raw); + socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AcceptConnection, false); + socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, true); + IPEndPoint ipepServer = new IPEndPoint(host.Broadcast, 0); + EndPoint epServer = (ipepServer); + int temp; + for (int t1 = 0; t1 < 3; t1++) + { + temp = socket.SendTo(temp2, epServer); + } + return true; + } + + } + + } diff --git a/WoL-Manager v0.1/MainWindow.Designer.cs b/WoL-Manager v0.1/MainWindow.Designer.cs new file mode 100755 index 0000000..790ff5b --- /dev/null +++ b/WoL-Manager v0.1/MainWindow.Designer.cs @@ -0,0 +1,395 @@ +namespace WoL_Manager + { + partial class 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.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow)); + this.menuStrip1 = new System.Windows.Forms.MenuStrip(); + this.FileMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.QuitMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.SettingsMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.HelpMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.AboutMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.panel1 = new System.Windows.Forms.Panel(); + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.DataGridHosts = new System.Windows.Forms.DataGridView(); + this.ColumnIcon = new System.Windows.Forms.DataGridViewImageColumn(); + this.ColumnName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ColumnIP = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Status = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ColumnHost = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.DataViewContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); + this.AddMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.EditMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.DeleteMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.WakeMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.OutputTextBox = new System.Windows.Forms.RichTextBox(); + this.ButtonBar1 = new System.Windows.Forms.ToolStrip(); + this.AddMenuItem1 = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); + this.EditMenuItem1 = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); + this.DeleteMenuItem1 = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.WakeMenuItem1 = new System.Windows.Forms.ToolStripButton(); + this.TaskBarIcon = new System.Windows.Forms.NotifyIcon(this.components); + this.menuStrip1.SuspendLayout(); + this.panel1.SuspendLayout(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.DataGridHosts)).BeginInit(); + this.DataViewContextMenu.SuspendLayout(); + this.ButtonBar1.SuspendLayout(); + this.SuspendLayout(); + // + // menuStrip1 + // + this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.FileMenuItem1, + this.SettingsMenuItem1, + this.HelpMenuItem1}); + this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Name = "menuStrip1"; + this.menuStrip1.Size = new System.Drawing.Size(642, 24); + this.menuStrip1.TabIndex = 0; + this.menuStrip1.Text = "menuStrip1"; + // + // FileMenuItem1 + // + this.FileMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.QuitMenuItem1}); + this.FileMenuItem1.Name = "FileMenuItem1"; + this.FileMenuItem1.Size = new System.Drawing.Size(65, 20); + this.FileMenuItem1.Text = "&Program"; + // + // QuitMenuItem1 + // + this.QuitMenuItem1.Name = "QuitMenuItem1"; + this.QuitMenuItem1.Size = new System.Drawing.Size(97, 22); + this.QuitMenuItem1.Text = "&Quit"; + // + // SettingsMenuItem1 + // + this.SettingsMenuItem1.Name = "SettingsMenuItem1"; + this.SettingsMenuItem1.Size = new System.Drawing.Size(61, 20); + this.SettingsMenuItem1.Text = "&Settings"; + // + // HelpMenuItem1 + // + this.HelpMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.AboutMenuItem1}); + this.HelpMenuItem1.Name = "HelpMenuItem1"; + this.HelpMenuItem1.Size = new System.Drawing.Size(44, 20); + this.HelpMenuItem1.Text = "&Help"; + // + // AboutMenuItem1 + // + this.AboutMenuItem1.Name = "AboutMenuItem1"; + this.AboutMenuItem1.Size = new System.Drawing.Size(116, 22); + this.AboutMenuItem1.Text = "&About..."; + // + // panel1 + // + this.panel1.Controls.Add(this.splitContainer1); + this.panel1.Controls.Add(this.ButtonBar1); + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 24); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(642, 422); + this.panel1.TabIndex = 1; + // + // splitContainer1 + // + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.Location = new System.Drawing.Point(0, 25); + this.splitContainer1.Name = "splitContainer1"; + this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.Controls.Add(this.DataGridHosts); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.OutputTextBox); + this.splitContainer1.Size = new System.Drawing.Size(642, 397); + this.splitContainer1.SplitterDistance = 218; + this.splitContainer1.TabIndex = 1; + // + // DataGridHosts + // + this.DataGridHosts.AllowUserToAddRows = false; + this.DataGridHosts.AllowUserToDeleteRows = false; + this.DataGridHosts.AllowUserToOrderColumns = true; + this.DataGridHosts.AllowUserToResizeRows = false; + this.DataGridHosts.BackgroundColor = System.Drawing.SystemColors.Window; + this.DataGridHosts.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.DataGridHosts.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.DataGridHosts.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.ColumnIcon, + this.ColumnName, + this.ColumnIP, + this.Status, + this.ColumnHost}); + this.DataGridHosts.ContextMenuStrip = this.DataViewContextMenu; + this.DataGridHosts.Cursor = System.Windows.Forms.Cursors.Default; + this.DataGridHosts.Dock = System.Windows.Forms.DockStyle.Fill; + this.DataGridHosts.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.DataGridHosts.Location = new System.Drawing.Point(0, 0); + this.DataGridHosts.MultiSelect = false; + this.DataGridHosts.Name = "DataGridHosts"; + this.DataGridHosts.ReadOnly = true; + this.DataGridHosts.RowHeadersVisible = false; + this.DataGridHosts.RowTemplate.Height = 24; + this.DataGridHosts.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.DataGridHosts.ShowEditingIcon = false; + this.DataGridHosts.Size = new System.Drawing.Size(642, 218); + this.DataGridHosts.TabIndex = 0; + // + // ColumnIcon + // + this.ColumnIcon.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; + this.ColumnIcon.HeaderText = ""; + this.ColumnIcon.MinimumWidth = 24; + this.ColumnIcon.Name = "ColumnIcon"; + this.ColumnIcon.ReadOnly = true; + this.ColumnIcon.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.ColumnIcon.Width = 24; + // + // ColumnName + // + this.ColumnName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.ColumnName.HeaderText = "Name"; + this.ColumnName.Name = "ColumnName"; + this.ColumnName.ReadOnly = true; + // + // ColumnIP + // + this.ColumnIP.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.ColumnIP.HeaderText = "IP-Address"; + this.ColumnIP.Name = "ColumnIP"; + this.ColumnIP.ReadOnly = true; + // + // Status + // + this.Status.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.Status.HeaderText = "Status"; + this.Status.Name = "Status"; + this.Status.ReadOnly = true; + // + // ColumnHost + // + this.ColumnHost.HeaderText = ""; + this.ColumnHost.Name = "ColumnHost"; + this.ColumnHost.ReadOnly = true; + this.ColumnHost.Visible = false; + // + // DataViewContextMenu + // + this.DataViewContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.AddMenuItem2, + this.EditMenuItem2, + this.DeleteMenuItem2, + this.WakeMenuItem2}); + this.DataViewContextMenu.Name = "DataViewContextMenu"; + this.DataViewContextMenu.Size = new System.Drawing.Size(136, 92); + // + // AddMenuItem2 + // + this.AddMenuItem2.Name = "AddMenuItem2"; + this.AddMenuItem2.Size = new System.Drawing.Size(135, 22); + this.AddMenuItem2.Text = "Add Host"; + // + // EditMenuItem2 + // + this.EditMenuItem2.Enabled = false; + this.EditMenuItem2.Name = "EditMenuItem2"; + this.EditMenuItem2.Size = new System.Drawing.Size(135, 22); + this.EditMenuItem2.Text = "Edit Host"; + // + // DeleteMenuItem2 + // + this.DeleteMenuItem2.Enabled = false; + this.DeleteMenuItem2.Name = "DeleteMenuItem2"; + this.DeleteMenuItem2.Size = new System.Drawing.Size(135, 22); + this.DeleteMenuItem2.Text = "Delete Host"; + // + // WakeMenuItem2 + // + this.WakeMenuItem2.Enabled = false; + this.WakeMenuItem2.Name = "WakeMenuItem2"; + this.WakeMenuItem2.Size = new System.Drawing.Size(135, 22); + this.WakeMenuItem2.Text = "Wake Host"; + // + // OutputTextBox + // + this.OutputTextBox.DetectUrls = false; + this.OutputTextBox.Dock = System.Windows.Forms.DockStyle.Fill; + this.OutputTextBox.Location = new System.Drawing.Point(0, 0); + this.OutputTextBox.Name = "OutputTextBox"; + this.OutputTextBox.ReadOnly = true; + this.OutputTextBox.Size = new System.Drawing.Size(642, 175); + this.OutputTextBox.TabIndex = 0; + this.OutputTextBox.Text = ""; + // + // ButtonBar1 + // + this.ButtonBar1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.AddMenuItem1, + this.toolStripSeparator3, + this.EditMenuItem1, + this.toolStripSeparator4, + this.DeleteMenuItem1, + this.toolStripSeparator2, + this.WakeMenuItem1}); + this.ButtonBar1.Location = new System.Drawing.Point(0, 0); + this.ButtonBar1.Name = "ButtonBar1"; + this.ButtonBar1.Size = new System.Drawing.Size(642, 25); + this.ButtonBar1.TabIndex = 0; + this.ButtonBar1.Text = "ButtonBar"; + // + // AddMenuItem1 + // + this.AddMenuItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.AddMenuItem1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.AddMenuItem1.Name = "AddMenuItem1"; + this.AddMenuItem1.Size = new System.Drawing.Size(61, 22); + this.AddMenuItem1.Text = "Add Host"; + // + // toolStripSeparator3 + // + this.toolStripSeparator3.Name = "toolStripSeparator3"; + this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25); + // + // EditMenuItem1 + // + this.EditMenuItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.EditMenuItem1.Enabled = false; + this.EditMenuItem1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.EditMenuItem1.Name = "EditMenuItem1"; + this.EditMenuItem1.Size = new System.Drawing.Size(59, 22); + this.EditMenuItem1.Text = "Edit Host"; + // + // toolStripSeparator4 + // + this.toolStripSeparator4.Name = "toolStripSeparator4"; + this.toolStripSeparator4.Size = new System.Drawing.Size(6, 25); + // + // DeleteMenuItem1 + // + this.DeleteMenuItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.DeleteMenuItem1.Enabled = false; + this.DeleteMenuItem1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.DeleteMenuItem1.Name = "DeleteMenuItem1"; + this.DeleteMenuItem1.Size = new System.Drawing.Size(72, 22); + this.DeleteMenuItem1.Text = "Delete Host"; + // + // toolStripSeparator2 + // + this.toolStripSeparator2.Name = "toolStripSeparator2"; + this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); + // + // WakeMenuItem1 + // + this.WakeMenuItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.WakeMenuItem1.Enabled = false; + this.WakeMenuItem1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.WakeMenuItem1.Name = "WakeMenuItem1"; + this.WakeMenuItem1.Size = new System.Drawing.Size(68, 22); + this.WakeMenuItem1.Text = "Wake Host"; + // + // TaskBarIcon + // + this.TaskBarIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("TaskBarIcon.Icon"))); + this.TaskBarIcon.Text = "WoL-Manager"; + this.TaskBarIcon.Visible = true; + // + // MainWindow + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(642, 446); + this.Controls.Add(this.panel1); + this.Controls.Add(this.menuStrip1); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MainMenuStrip = this.menuStrip1; + this.Name = "MainWindow"; + this.Text = "WoL-Manager v0.1 by MatzMan"; + this.Load += new System.EventHandler(this.MainWindow_Load); + this.menuStrip1.ResumeLayout(false); + this.menuStrip1.PerformLayout(); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel2.ResumeLayout(false); + this.splitContainer1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.DataGridHosts)).EndInit(); + this.DataViewContextMenu.ResumeLayout(false); + this.ButtonBar1.ResumeLayout(false); + this.ButtonBar1.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + protected System.Windows.Forms.MenuStrip menuStrip1; + protected System.Windows.Forms.ToolStripMenuItem FileMenuItem1; + protected System.Windows.Forms.ToolStripMenuItem QuitMenuItem1; + protected System.Windows.Forms.ToolStripMenuItem HelpMenuItem1; + protected System.Windows.Forms.ToolStripMenuItem AboutMenuItem1; + protected System.Windows.Forms.Panel panel1; + protected System.Windows.Forms.SplitContainer splitContainer1; + protected System.Windows.Forms.DataGridView DataGridHosts; + protected System.Windows.Forms.ToolStrip ButtonBar1; + protected System.Windows.Forms.RichTextBox OutputTextBox; + protected System.Windows.Forms.ToolStripButton AddMenuItem1; + protected System.Windows.Forms.ToolStripButton WakeMenuItem1; + public System.Windows.Forms.ToolStripButton DeleteMenuItem1; + protected System.Windows.Forms.ToolStripSeparator toolStripSeparator2; + protected System.Windows.Forms.ToolStripButton EditMenuItem1; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; + private System.Windows.Forms.DataGridViewImageColumn ColumnIcon; + private System.Windows.Forms.DataGridViewTextBoxColumn ColumnName; + private System.Windows.Forms.DataGridViewTextBoxColumn ColumnIP; + private System.Windows.Forms.DataGridViewTextBoxColumn Status; + private System.Windows.Forms.DataGridViewTextBoxColumn ColumnHost; + private System.Windows.Forms.ToolStripMenuItem SettingsMenuItem1; + private System.Windows.Forms.NotifyIcon TaskBarIcon; + private System.Windows.Forms.ContextMenuStrip DataViewContextMenu; + private System.Windows.Forms.ToolStripMenuItem AddMenuItem2; + private System.Windows.Forms.ToolStripMenuItem EditMenuItem2; + private System.Windows.Forms.ToolStripMenuItem DeleteMenuItem2; + private System.Windows.Forms.ToolStripMenuItem WakeMenuItem2; + } + } + diff --git a/WoL-Manager v0.1/MainWindow.cs b/WoL-Manager v0.1/MainWindow.cs new file mode 100755 index 0000000..8b385fd --- /dev/null +++ b/WoL-Manager v0.1/MainWindow.cs @@ -0,0 +1,327 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; +using System.Threading; + +namespace WoL_Manager + { + public partial class MainWindow : Form + { + private Host selectedHost; + private int hostIndex; + + public MainWindow() + { + InitializeComponent(); + } + + + public void rebuildDataView() + { + Host[] hostList = Host.getHostList(); + DataGridViewRowCollection rowsColl = DataGridHosts.Rows; + if (hostList != null && hostList.Length > 0) + { + for (int t = 0; t < hostList.Length; t++) + { + object[] temp = new object[5]; + temp[0] = hostList[t].getStatusIcon(); + temp[1] = hostList[t].Name; + temp[2] = hostList[t].IP.ToString(); + temp[3] = hostList[t].getStatusString(); + temp[4] = hostList[t]; + if (rowsColl.Count > t) + { + rowsColl[t].SetValues(temp); + } + else + { + rowsColl.Insert(t, temp); + } + } + if (rowsColl.Count > hostList.Length) + { + for (int t = hostList.Length; t < rowsColl.Count; t++) + { + rowsColl.RemoveAt(t); + } + } + } + else + { + rowsColl.Clear(); + } + DataGridViewSelectedRowCollection tempRows = DataGridHosts.SelectedRows; + if (tempRows != null && tempRows.Count > 0) + { + hostIndex = tempRows[0].Index; + DataGridViewCellCollection cells = tempRows[0].Cells; + selectedHost = (Host)cells[4].Value; + } + } + + + public void updateDataView() + { + DataGridViewRowCollection rowsColl = DataGridHosts.Rows; + for (int t = 0; t < rowsColl.Count; t++) + { + DataGridViewCellCollection cells = rowsColl[t].Cells; + Host host = (Host)cells[4].Value; + if (host != null) + { + cells[0].Value = host.getStatusIcon(); + cells[1].Value = host.Name; + cells[2].Value = host.IP.ToString(); + cells[3].Value = host.getStatusString(); + } + } + } + + + private void createPingThreads() + { + Host[] hostList = Host.getHostList(); + for (int t = 0; t < hostList.Length; t++) + { + PingThread temp = new PingThread(hostList[t].IP, ManagerSettings.PingWaitTime, ManagerSettings.PingTimeOut, hostList[t]); + hostList[t].pingThread = temp; + Thread thread = new Thread(new ThreadStart(temp.threadFunction)); + thread.Start(); + } + } + + public void deletePingThreads() + { + Host[] hostList = Host.getHostList(); + for (int t = 0; t < hostList.Length; t++) + { + hostList[t].pingThread.stopThread(); + hostList[t].pingThread = null; + } + } + + private void updatePingThreads() + { + + Host[] hostList = Host.getHostList(); + for (int t = 0; t < hostList.Length; t++) + { + if (hostList[t].pingThread == null) + { + PingThread temp = new PingThread(hostList[t].IP, ManagerSettings.PingWaitTime, ManagerSettings.PingTimeOut, hostList[t]); + hostList[t].pingThread = temp; + Thread thread = new Thread(new ThreadStart(temp.threadFunction)); + thread.Start(); + } + } + } + + private void MainWindow_Load(object sender, EventArgs e) + { + QuitMenuItem1.Click += new System.EventHandler(this.quitEventHandler); + AboutMenuItem1.Click += new EventHandler(aboutEventHandler); + AddMenuItem1.Click += new EventHandler(newHostEventHandler); + DataGridHosts.SelectionChanged += new EventHandler(this.selectionEventHandler); + DeleteMenuItem1.Click += new EventHandler(this.deleteEventHandler); + EditMenuItem1.Click += new EventHandler(this.editHostEventHandler); + WakeMenuItem1.Click += new EventHandler(wakeHostEventHandler); + SettingsMenuItem1.Click += new EventHandler(settingsEventHandler); + AddMenuItem2.Click +=new EventHandler(newHostEventHandler); + EditMenuItem2.Click += new EventHandler(editHostEventHandler); + DeleteMenuItem2.Click += new EventHandler(deleteEventHandler); + WakeMenuItem2.Click += new EventHandler(wakeHostEventHandler); + createPingThreads(); + selectedHost = null; + rebuildDataView(); + this.Resize += new EventHandler(resizeEventHandler); + TaskBarIcon.Click += new EventHandler(taskBarIconEventHandler); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow)); + Icon[] tempList = new Icon[4]; + tempList[0] = new Icon((Icon)resources.GetObject("icon_gray"),new Size(24, 24)); + tempList[1] = new Icon((Icon)resources.GetObject("icon_green"), new Size(24, 24)); + tempList[2] = new Icon((Icon)resources.GetObject("icon_red"), new Size(24, 24)); + tempList[3] = new Icon((Icon)resources.GetObject("icon_yellow"), new Size(24, 24)); + Host.IconList = tempList; + } + + void settingsEventHandler(object sender, EventArgs e) + { + SettingsWindow window = new SettingsWindow(); + window.StartPosition = FormStartPosition.CenterParent; + window.ShowDialog(this); + window.Activate(); + deletePingThreads(); + updatePingThreads(); + } + + + private void taskBarIconEventHandler(object sender, EventArgs e) + { + this.WindowState = FormWindowState.Normal; + this.Show(); + this.Focus(); + this.BringToFront(); + } + + + private int resizeState = 0; + + private void resizeEventHandler(object sender, EventArgs e) + { + if (this.WindowState == FormWindowState.Minimized) + { + resizeState = 1; + this.ShowInTaskbar = false; + } + else if (resizeState == 1) + { + resizeState = 0; + this.ShowInTaskbar = true; + } + } + + private void wakeHostEventHandler(object sender, EventArgs e) + { + if (selectedHost == null) + return; + selectedHost.wakeHost(); + + } + + private void quitEventHandler(object sender, EventArgs e) + { + this.Close(); + } + + private void aboutEventHandler(object sender, EventArgs e) + { + AboutWindow window = new AboutWindow(); + window.StartPosition = FormStartPosition.CenterParent; + window.ShowDialog(this); + window.Activate(); + } + + private void newHostEventHandler(object sender, EventArgs e) + { + NewHostWindow window = new NewHostWindow(); + window.StartPosition = FormStartPosition.CenterParent; + window.ShowDialog(this); + window.Activate(); + rebuildDataView(); + updatePingThreads(); + } + + private void editHostEventHandler(object sender, EventArgs e) + { + if (selectedHost == null) + { + return; + } + EditHostWindow window = new EditHostWindow(selectedHost); + window.StartPosition = FormStartPosition.CenterParent; + window.ShowDialog(this); + window.Activate(); + updateDataView(); + updatePingThreads(); + } + + + private void deleteEventHandler(object sender, EventArgs e) + { + if (selectedHost == null) + { + return; + } + DialogResult result = MessageBox.Show("Are you sure?", "Delete Host", MessageBoxButtons.OKCancel); + if (result == DialogResult.OK) + { + Host.deleteHost(selectedHost); + rebuildDataView(); + } + } + + + private void selectionEventHandler(object sender, EventArgs e) + { + DataGridViewSelectedRowCollection tempRows = DataGridHosts.SelectedRows; + if (tempRows != null && tempRows.Count > 0) + { + hostIndex = tempRows[0].Index; + DataGridViewCellCollection cells = tempRows[0].Cells; + selectedHost = (Host)cells[4].Value; + WakeMenuItem1.Enabled = true; + DeleteMenuItem1.Enabled = true; + EditMenuItem1.Enabled = true; + EditMenuItem2.Enabled = true; + DeleteMenuItem2.Enabled = true; + WakeMenuItem2.Enabled = true; + Host host = (Host)cells[4].Value; + if (host.Description == null) + { + host.Description = ""; + } + OutputTextBox.Text = String.Format(" Name:\t\t{0}\n IP-Address:\t{1}\n Broadcast:\t{2}\n MAC-Address:\t{3}\n===========================================\n Description:\n\n{4}", + host.Name, host.IP.ToString(), host.Broadcast.ToString(), host.MAC, host.Description); + } + else + { + selectedHost = null; + WakeMenuItem1.Enabled = false; + DeleteMenuItem1.Enabled = false; + EditMenuItem1.Enabled = false; + EditMenuItem2.Enabled = false; + DeleteMenuItem2.Enabled = false; + WakeMenuItem2.Enabled = false; + OutputTextBox.Text = ""; + } + } + + public static bool checkMAC(string mac) + { + if (mac.Length != 12) + { + return false; + } + else + { + for (int t = 0; t < mac.Length; t++) + { + if (Char.IsLetterOrDigit(mac[t])) + { + if (Char.IsLetter(mac[t])) + { + switch (mac[t]) + { + case 'A': + break; + case 'B': + break; + case 'C': + break; + case 'D': + break; + case 'E': + break; + case 'F': + break; + default: + return false; + } + } + } + else + { + return false; + } + } + } + return true; + } + + } + } \ No newline at end of file diff --git a/WoL-Manager v0.1/MainWindow.resx b/WoL-Manager v0.1/MainWindow.resx new file mode 100755 index 0000000..0c1f4f7 --- /dev/null +++ b/WoL-Manager v0.1/MainWindow.resx @@ -0,0 +1,182 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 17, 17 + + + True + + + True + + + True + + + True + + + True + + + 346, 17 + + + 126, 17 + + + 233, 17 + + + + + AAABAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP// + AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiAAAAAAAAAAAAAAAADswAAgAAAAAAAAAAAAAAAAD + AAAIcAAAAAAAAIAAAAAAAAAAAIAAAAAAAACAAwAAMAAAAACHAAAAAAAACDswA7MAAAAACAAAAAAAAAgD + AAAwAAMAAAhwAAAAAAAIAAAAAAA7MAAAgAAAAAAAAIAAAAAAAwAAAIcAAAAAAACAAAAAAAAAAAAIAAAA + AAAAgAMAADAAAAAACHAAAAAAAAg7MAOzAAAAAACAAAAAAAAIAwAMMMAAAAAAhwAAAAAACADA4AAMDgAA + AAgAAAAAAACAAADgAADsAAAIcAAAAAAAjAPAAKAMAMAAAIAAAAAADoA7MAA6CuCgAACHAAAAC8AIowDj + sAAKDLAACAAAAAAAqAAAADCQAKCgAAhwAAAAAAqKCwAAAAkADAAAiHAAAJC5iwkKDQkLC6CgAIAHAAAA + AIADAADQkJcKCwB4BwAAoAC4OzkAAAsJcMDHeABwAACgCQMAAAAA0JeQp8CAcLkACQgNAAAAAA0JCX3q + gAgAAADYAAAAAAAAsNeQfHiAAA0AAIAAAAAAAAkHt3mwAAAAAACAAAAAAAAADQDQAAAA0AAAgAAAAAAA + AAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAD//5//+AMP/+AAj/+AAAf/AAAH/wAA + A/+AACP/gAAh/4AAMP/AAHD/wAB4f8AAeH/gAPw/4AD8P+AA/h/wAT4f8ADfD+AAXw+YA6eH8AHXg/gD + u8PQAqXZ/AVKydwHpQz2D9EUOg/qBvwP9EHvH/oH/x/+398f////v////7///w== + + + + + AAABAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP// + AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiAAAAAAAAAAAAAAAADswAAgAAAAAAAAAAAAAAAAD + AAAIcAAAAAAAAIAAAAAAAAAAAIAAAAAAAACAAwAAMAAAAACHAAAAAAAACDswA7MAAAAACAAAAAAAAAgD + AAAwAAMAAAhwAAAAAAAIAAAAAAA7MAAAgAAAAAAAAIAAAAAAAwAAAIcAAAAAAACAAAAAAAAAAAAIAAAA + AAAAgAMAADAAAAAACHAAAAAAAAg7MAOzAAAAAACAAAAAAAAIAwAMMMAAAAAAhwAAAAAACADA4AAMDgAA + AAgAAAAAAACAAADgAADsAAAIcAAAAAAAjAPAAKAMAMAAAIAAAAAADoA7MAA6CuCgAACHAAAAC8AIowDj + sAAKDLAACAAAAAAAqAAAADCQAKCgAAhwAAAAAAqKCwAAAAkADAAAiHAAAJC5iwkKDQkLC6CgAIAHAAAA + AIADAADQkJcKCwB4BwAAoAC4OzkAAAsJcMDHeABwAACgCQMAAAAA0JeQp8CAcLkACQgNAAAAAA0JCX3q + gAgAAADYAAAAAAAAsNeQfHiAAA0AAIAAAAAAAAkHt3mwAAAAAACAAAAAAAAADQDQAAAA0AAAgAAAAAAA + AAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAD//5//+AMP/+AAj/+AAAf/AAAH/wAA + A/+AACP/gAAh/4AAMP/AAHD/wAB4f8AAeH/gAPw/4AD8P+AA/h/wAT4f8ADfD+AAXw+YA6eH8AHXg/gD + u8PQAqXZ/AVKydwHpQz2D9EUOg/qBvwP9EHvH/oH/x/+398f////v////7///w== + + + \ No newline at end of file diff --git a/WoL-Manager v0.1/ManagerSettings.cs b/WoL-Manager v0.1/ManagerSettings.cs new file mode 100755 index 0000000..f70aab2 --- /dev/null +++ b/WoL-Manager v0.1/ManagerSettings.cs @@ -0,0 +1,140 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Xml; +using System.Xml.Schema; + +namespace WoL_Manager + { + class ManagerSettings + { + private static int ping_timeout = 1000; + private static int ping_waittime = 3; + private static int wake_waittime = 5*60; + + public static int PingTimeOut + { + set + { + ping_timeout = value; + } + get + { + return ping_timeout; + } + } + + public static int PingWaitTime + { + set + { + ping_waittime = value; + } + get + { + return ping_waittime; + } + } + + public static int WakeWaitTime + { + set + { + wake_waittime = value; + } + get + { + return wake_waittime; + } + } + + public static void createDTD(string file) + { + string temp = "\n\n\n\n\n"; + System.IO.File.WriteAllText(file, temp); + } + + public static void writeToFile(string file) + { + string temp = "\n\n\n"; + temp = String.Concat(temp, "\n", ManagerSettings.PingTimeOut.ToString(), ""); + temp = String.Concat(temp, "\n", ManagerSettings.PingWaitTime.ToString(), ""); + temp = String.Concat(temp, "\n", ManagerSettings.WakeWaitTime.ToString(), ""); + temp = String.Concat(temp, "\n"); + System.IO.File.WriteAllText(file, temp); + } + + + private static void validationEventHandler(object sender, ValidationEventArgs args) + { + valitationResult = false; + } + + private static bool valitationResult = true; + + public static bool readFromFile(string file) + { + XmlReaderSettings settings = new XmlReaderSettings(); + settings.IgnoreWhitespace = true; + settings.IgnoreComments = true; + settings.IgnoreProcessingInstructions = true; + settings.ProhibitDtd = false; + settings.ValidationType = ValidationType.DTD; + settings.ValidationEventHandler += new ValidationEventHandler(validationEventHandler); + XmlReader reader = XmlReader.Create(file, settings); + while (reader.Read()) + { + if (reader.NodeType == XmlNodeType.Element && reader.LocalName.CompareTo("settings") == 0) + { + string p_timeout; + string p_waittime; + string w_waittime; + int temp1, temp2, temp3; + reader.Read(); + p_timeout = reader.ReadString(); + reader.Read(); + p_waittime = reader.ReadString(); + reader.Read(); + w_waittime = reader.ReadString(); + + try + { + temp1 = Int32.Parse(p_timeout); + temp2 = Int32.Parse(p_waittime); + temp3 = Int32.Parse(w_waittime); + } + catch (Exception) + { + reader.Close(); + return false; + } + if (temp1 < 1 || temp1 > 30000) + { + reader.Close(); + return false; + } + if (temp2 < 1 || temp2 > 30000) + { + reader.Close(); + return false; + } + if (temp3 < 1 || temp3 > 30000) + { + reader.Close(); + return false; + } + if (valitationResult == false) + { + reader.Close(); + return false; + } + ping_timeout = temp1; + ping_waittime = temp2; + wake_waittime = temp3; + } + } + reader.Close(); + return true; + } + } + } diff --git a/WoL-Manager v0.1/NewHostWindow.Designer.cs b/WoL-Manager v0.1/NewHostWindow.Designer.cs new file mode 100755 index 0000000..ef30a5e --- /dev/null +++ b/WoL-Manager v0.1/NewHostWindow.Designer.cs @@ -0,0 +1,203 @@ +namespace WoL_Manager + { + partial class NewHostWindow + { + /// + /// 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.OkButton1 = new System.Windows.Forms.Button(); + this.CancelButton1 = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.InputDescription = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.InputMAC = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.InputBroadcast = new System.Windows.Forms.TextBox(); + this.InputIP = new System.Windows.Forms.TextBox(); + this.InputName = new System.Windows.Forms.TextBox(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // OkButton1 + // + this.OkButton1.Location = new System.Drawing.Point(283, 217); + this.OkButton1.Name = "OkButton1"; + this.OkButton1.Size = new System.Drawing.Size(60, 28); + this.OkButton1.TabIndex = 0; + this.OkButton1.Text = "OK"; + this.OkButton1.UseVisualStyleBackColor = true; + // + // CancelButton1 + // + this.CancelButton1.Location = new System.Drawing.Point(217, 217); + this.CancelButton1.Name = "CancelButton1"; + this.CancelButton1.Size = new System.Drawing.Size(60, 28); + this.CancelButton1.TabIndex = 1; + this.CancelButton1.Text = "Cancel"; + this.CancelButton1.UseVisualStyleBackColor = true; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(6, 22); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(38, 13); + this.label1.TabIndex = 2; + this.label1.Text = "Name:"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(6, 48); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(61, 13); + this.label2.TabIndex = 3; + this.label2.Text = "IP-Address:"; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.InputDescription); + this.groupBox1.Controls.Add(this.label5); + this.groupBox1.Controls.Add(this.label4); + this.groupBox1.Controls.Add(this.InputMAC); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.InputBroadcast); + this.groupBox1.Controls.Add(this.InputIP); + this.groupBox1.Controls.Add(this.InputName); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.label2); + this.groupBox1.Location = new System.Drawing.Point(12, 12); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(330, 199); + this.groupBox1.TabIndex = 4; + this.groupBox1.TabStop = false; + // + // InputDescription + // + this.InputDescription.Location = new System.Drawing.Point(111, 123); + this.InputDescription.Multiline = true; + this.InputDescription.Name = "InputDescription"; + this.InputDescription.Size = new System.Drawing.Size(202, 63); + this.InputDescription.TabIndex = 11; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(6, 126); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(63, 13); + this.label5.TabIndex = 10; + this.label5.Text = "Description:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(6, 100); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(74, 13); + this.label4.TabIndex = 9; + this.label4.Text = "MAC-Address:"; + // + // InputMAC + // + this.InputMAC.Location = new System.Drawing.Point(111, 97); + this.InputMAC.Name = "InputMAC"; + this.InputMAC.Size = new System.Drawing.Size(202, 20); + this.InputMAC.TabIndex = 8; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(6, 74); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(99, 13); + this.label3.TabIndex = 7; + this.label3.Text = "Broadcast-Address:"; + // + // InputBroadcast + // + this.InputBroadcast.Location = new System.Drawing.Point(111, 71); + this.InputBroadcast.Name = "InputBroadcast"; + this.InputBroadcast.Size = new System.Drawing.Size(202, 20); + this.InputBroadcast.TabIndex = 6; + // + // InputIP + // + this.InputIP.Location = new System.Drawing.Point(111, 45); + this.InputIP.Name = "InputIP"; + this.InputIP.Size = new System.Drawing.Size(202, 20); + this.InputIP.TabIndex = 5; + // + // InputName + // + this.InputName.Location = new System.Drawing.Point(111, 19); + this.InputName.Name = "InputName"; + this.InputName.Size = new System.Drawing.Size(202, 20); + this.InputName.TabIndex = 4; + // + // NewHostWindow + // + this.AccessibleRole = System.Windows.Forms.AccessibleRole.Dialog; + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.ClientSize = new System.Drawing.Size(355, 257); + this.ControlBox = false; + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.CancelButton1); + this.Controls.Add(this.OkButton1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MaximumSize = new System.Drawing.Size(363, 291); + this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(363, 291); + this.Name = "NewHostWindow"; + this.Text = "New Host"; + this.Load += new System.EventHandler(this.NewHostWindow_Load); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + protected System.Windows.Forms.Button OkButton1; + protected System.Windows.Forms.Button CancelButton1; + protected System.Windows.Forms.Label label1; + protected System.Windows.Forms.Label label2; + protected System.Windows.Forms.GroupBox groupBox1; + protected System.Windows.Forms.Label label4; + protected System.Windows.Forms.TextBox InputMAC; + protected System.Windows.Forms.Label label3; + protected System.Windows.Forms.TextBox InputBroadcast; + protected System.Windows.Forms.TextBox InputIP; + protected System.Windows.Forms.TextBox InputName; + protected System.Windows.Forms.TextBox InputDescription; + protected System.Windows.Forms.Label label5; + } + } \ No newline at end of file diff --git a/WoL-Manager v0.1/NewHostWindow.cs b/WoL-Manager v0.1/NewHostWindow.cs new file mode 100755 index 0000000..b4fc83d --- /dev/null +++ b/WoL-Manager v0.1/NewHostWindow.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace WoL_Manager + { + public partial class NewHostWindow : Form + { + public NewHostWindow() + { + InitializeComponent(); + } + + protected virtual void NewHostWindow_Load(object sender, EventArgs e) + { + OkButton1.Click += new System.EventHandler(this.buttonEventHandler); + CancelButton1.Click += new System.EventHandler(this.buttonEventHandler); + } + + protected virtual void buttonEventHandler(object sender, EventArgs e) + { + if (sender == OkButton1) + { + string name = InputName.Text.Trim(); + if (name.Length < 1) + { + MessageBox.Show("There is no name given!", "ERROR", MessageBoxButtons.OK); + return; + } + string mac = InputMAC.Text.Trim().ToUpper(); + if (!MainWindow.checkMAC(mac)) + { + MessageBox.Show("Wasn't able to parse MAC-Address!\nShould be like this: 00AF2C4323D3", + "ERROR", MessageBoxButtons.OK); + return; + } + string description = InputDescription.Text; + System.Net.IPAddress ip_addr; + System.Net.IPAddress bc_addr; + try + { + ip_addr = System.Net.IPAddress.Parse(InputIP.Text); + } + catch (Exception) + { + MessageBox.Show("Wasn't able to parse IP-Address!\nShould be like this: 192.168.0.1", + "ERROR", MessageBoxButtons.OK); + return; + } + try + { + bc_addr = System.Net.IPAddress.Parse(InputBroadcast.Text); + } + catch (Exception) + { + MessageBox.Show("Wasn't able to parse Broadcast-Address!\nShould be like this: 192.168.0.255", + "ERROR", MessageBoxButtons.OK); + return; + } + Host.createHost(name, ip_addr, mac, bc_addr, description); + } + this.Close(); + } + + } + } \ No newline at end of file diff --git a/WoL-Manager v0.1/NewHostWindow.resx b/WoL-Manager v0.1/NewHostWindow.resx new file mode 100755 index 0000000..a764f1c --- /dev/null +++ b/WoL-Manager v0.1/NewHostWindow.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + True + + \ No newline at end of file diff --git a/WoL-Manager v0.1/PingThread.cs b/WoL-Manager v0.1/PingThread.cs new file mode 100755 index 0000000..7c9d129 --- /dev/null +++ b/WoL-Manager v0.1/PingThread.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Net; +using System.Net.NetworkInformation; +using System.Threading; + +namespace WoL_Manager + { + class PingThread + { + private IPAddress ip; + private bool quit; + private int wait_time; + private int timeout; + private Host host; + + public PingThread(IPAddress ip, int wait, int timeout, Host host) + { + this.ip = ip; + quit = false; + wait_time = wait; + this.timeout = timeout; + this.host = host; + } + + public void stopThread() + { + quit = true; + } + + public void threadFunction() + { + string data = "1234 WoL-Manager by MatzMan"; + byte[] buffer = Encoding.ASCII.GetBytes(data); + Ping ping = new Ping(); + PingOptions options = new PingOptions(); + options.Ttl = 64; + options.DontFragment = true; + do + { + PingReply reply = ping.Send(ip, timeout, buffer, options); + host.LastPingResult = reply; + Thread.Sleep(wait_time*1000); + } while (!quit); + } + } + } diff --git a/WoL-Manager v0.1/Program.cs b/WoL-Manager v0.1/Program.cs new file mode 100755 index 0000000..2d6fd86 --- /dev/null +++ b/WoL-Manager v0.1/Program.cs @@ -0,0 +1,88 @@ +using System; +using System.Collections.Generic; +using System.Windows.Forms; +using System.Xml; + +namespace WoL_Manager + { + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + string fileName1 = "hosts.xml"; + string fileName2 = "hosts.dtd"; + string fileName3 = "settings.xml"; + string fileName4 = "settings.dtd"; + + ManagerSettings.createDTD(fileName4); + if (System.IO.File.Exists(fileName3)) + { + bool result; + try + { + result = ManagerSettings.readFromFile(fileName3); + } + catch (Exception) + { + result = false; + } + if (result == false) + { + System.Windows.Forms.MessageBox.Show("Parse Error while reading settings-file!"); + try + { + System.IO.File.Delete(fileName3); + } + catch (Exception) + { + System.Windows.Forms.MessageBox.Show("Couldn't delete file 'settings.xml'!\nPlease delete this file manually."); + return; + } + } + } + + + Host.createDTD(fileName2); + if (System.IO.File.Exists(fileName1)) + { + bool result; + try + { + result = Host.readFromFile(fileName1); + } + catch (Exception) + { + result = false; + } + if (result == false) + { + System.Windows.Forms.MessageBox.Show("Parse Error while reading host-file!"); + try + { + System.IO.File.Delete(fileName1); + } + catch (Exception) + { + System.Windows.Forms.MessageBox.Show("Couldn't delete file 'hosts.xml'!\nPlease delete this file manually."); + return; + } + Host.clearList(); + } + } + + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + MainWindow apps = new MainWindow(); + Host.Parent = apps; + Application.Run(apps); + Host.writeToFile(fileName1); + ManagerSettings.writeToFile(fileName3); + apps.deletePingThreads(); + Application.Exit(); + } + } + } \ No newline at end of file diff --git a/WoL-Manager v0.1/Properties/AssemblyInfo.cs b/WoL-Manager v0.1/Properties/AssemblyInfo.cs new file mode 100755 index 0000000..27043f9 --- /dev/null +++ b/WoL-Manager v0.1/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +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("WoL-Manager v0.1")] +[assembly: AssemblyDescription("Wake on Lan")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("The MatzMan Company")] +[assembly: AssemblyProduct("WoL-Manager")] +[assembly: AssemblyCopyright("Copyright © MatzMan 2006")] +[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("5412f677-3912-4fba-9a97-d6ccb8341555")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/WoL-Manager v0.1/Properties/Resources.Designer.cs b/WoL-Manager v0.1/Properties/Resources.Designer.cs new file mode 100755 index 0000000..f4ed95a --- /dev/null +++ b/WoL-Manager v0.1/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WoL_Manager.Properties { + using System; + + + /// + /// 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", "2.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 (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WoL_Manager.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/WoL-Manager v0.1/Properties/Resources.resx b/WoL-Manager v0.1/Properties/Resources.resx new file mode 100755 index 0000000..ffecec8 --- /dev/null +++ b/WoL-Manager v0.1/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/WoL-Manager v0.1/Properties/Settings.Designer.cs b/WoL-Manager v0.1/Properties/Settings.Designer.cs new file mode 100755 index 0000000..14ec421 --- /dev/null +++ b/WoL-Manager v0.1/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WoL_Manager.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.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/WoL-Manager v0.1/Properties/Settings.settings b/WoL-Manager v0.1/Properties/Settings.settings new file mode 100755 index 0000000..abf36c5 --- /dev/null +++ b/WoL-Manager v0.1/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/WoL-Manager v0.1/SettingsWindow.Designer.cs b/WoL-Manager v0.1/SettingsWindow.Designer.cs new file mode 100755 index 0000000..c4012c3 --- /dev/null +++ b/WoL-Manager v0.1/SettingsWindow.Designer.cs @@ -0,0 +1,157 @@ +namespace WoL_Manager + { + partial class SettingsWindow + { + /// + /// 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() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettingsWindow)); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.InputWakeWaittime = new System.Windows.Forms.TextBox(); + this.InputPingInterval = new System.Windows.Forms.TextBox(); + this.InputPingTimeout = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.OkButton = new System.Windows.Forms.Button(); + this.ClButton = new System.Windows.Forms.Button(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.InputWakeWaittime); + this.groupBox1.Controls.Add(this.InputPingInterval); + this.groupBox1.Controls.Add(this.InputPingTimeout); + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.label2); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Location = new System.Drawing.Point(12, 12); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(357, 104); + this.groupBox1.TabIndex = 0; + this.groupBox1.TabStop = false; + // + // InputWakeWaittime + // + this.InputWakeWaittime.Location = new System.Drawing.Point(133, 71); + this.InputWakeWaittime.Name = "InputWakeWaittime"; + this.InputWakeWaittime.Size = new System.Drawing.Size(212, 20); + this.InputWakeWaittime.TabIndex = 5; + // + // InputPingInterval + // + this.InputPingInterval.Location = new System.Drawing.Point(133, 45); + this.InputPingInterval.Name = "InputPingInterval"; + this.InputPingInterval.Size = new System.Drawing.Size(212, 20); + this.InputPingInterval.TabIndex = 4; + // + // InputPingTimeout + // + this.InputPingTimeout.Location = new System.Drawing.Point(133, 19); + this.InputPingTimeout.Name = "InputPingTimeout"; + this.InputPingTimeout.Size = new System.Drawing.Size(212, 20); + this.InputPingTimeout.TabIndex = 3; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(6, 74); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(121, 13); + this.label3.TabIndex = 2; + this.label3.Text = "Wakeup Waittime (sec):"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(6, 48); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(95, 13); + this.label2.TabIndex = 1; + this.label2.Text = "Ping Interval (sec):"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(6, 22); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(94, 13); + this.label1.TabIndex = 0; + this.label1.Text = "Ping Timeout (ms):"; + // + // OkButton + // + this.OkButton.Location = new System.Drawing.Point(294, 123); + this.OkButton.Name = "OkButton"; + this.OkButton.Size = new System.Drawing.Size(63, 28); + this.OkButton.TabIndex = 1; + this.OkButton.Text = "OK"; + this.OkButton.UseVisualStyleBackColor = true; + // + // ClButton + // + this.ClButton.Location = new System.Drawing.Point(205, 123); + this.ClButton.Name = "ClButton"; + this.ClButton.Size = new System.Drawing.Size(63, 28); + this.ClButton.TabIndex = 2; + this.ClButton.Text = "Cancel"; + this.ClButton.UseVisualStyleBackColor = true; + // + // SettingsWindow + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(380, 182); + this.ControlBox = false; + this.Controls.Add(this.ClButton); + this.Controls.Add(this.OkButton); + this.Controls.Add(this.groupBox1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SettingsWindow"; + this.Text = "Settings"; + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox InputWakeWaittime; + private System.Windows.Forms.TextBox InputPingInterval; + private System.Windows.Forms.TextBox InputPingTimeout; + private System.Windows.Forms.Button OkButton; + private System.Windows.Forms.Button ClButton; + } + } \ No newline at end of file diff --git a/WoL-Manager v0.1/SettingsWindow.cs b/WoL-Manager v0.1/SettingsWindow.cs new file mode 100755 index 0000000..a13cf1a --- /dev/null +++ b/WoL-Manager v0.1/SettingsWindow.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace WoL_Manager + { + public partial class SettingsWindow : Form + { + public SettingsWindow() + { + InitializeComponent(); + this.Load += new EventHandler(SettingsWindow_Load); + } + + void SettingsWindow_Load(object sender, EventArgs e) + { + OkButton.Click += new EventHandler(OkButton_Click); + ClButton.Click += new EventHandler(CancelButton_Click); + InputPingTimeout.Text = ManagerSettings.PingTimeOut.ToString(); + InputPingInterval.Text = ManagerSettings.PingWaitTime.ToString(); + InputWakeWaittime.Text = ManagerSettings.WakeWaitTime.ToString(); + } + + void CancelButton_Click(object sender, EventArgs e) + { + this.Hide(); + this.Close(); + } + + void OkButton_Click(object sender, EventArgs e) + { + int val1, val2, val3; + string temp1 = InputPingTimeout.Text; + string temp2 = InputPingInterval.Text; + string temp3 = InputWakeWaittime.Text; + try + { + val1 = Int32.Parse(temp1); + } + catch (Exception) + { + MessageBox.Show(this, "ERROR: Couldn't parse Ping Timeout!\nShould be a decimal number between 1 and 30000."); + return; + } + try + { + val2 = Int32.Parse(temp2); + } + catch (Exception) + { + MessageBox.Show(this, "ERROR: Couldn't parse Ping Interval!\nShould be a decimal number between 1 and 30000."); + return; + } + try + { + val3 = Int32.Parse(temp3); + } + catch (Exception) + { + MessageBox.Show(this, "ERROR: Couldn't parse Wakeup Waittime!\nShould be a decimal number between 1 and 30000."); + return; + } + if (val1 < 1 || val1 > 30000) + { + MessageBox.Show(this,"Ping Timeout should be between 1 and 30000"); + return; + } + if (val2 < 1 || val2 > 30000) + { + MessageBox.Show(this, "Ping Interval should be between 1 and 30000"); + return; + } + if (val3 < 1 || val3 > 30000) + { + MessageBox.Show(this, "Wakeup Waittime should be between 1 and 30000"); + return; + } + ManagerSettings.PingTimeOut = val1; + ManagerSettings.PingWaitTime = val2; + ManagerSettings.WakeWaitTime = val3; + this.Hide(); + this.Close(); + } + } + } \ No newline at end of file diff --git a/WoL-Manager v0.1/SettingsWindow.resx b/WoL-Manager v0.1/SettingsWindow.resx new file mode 100755 index 0000000..5795e6d --- /dev/null +++ b/WoL-Manager v0.1/SettingsWindow.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + AAABAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP// + AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiAAAAAAAAAAAAAAAADswAAgAAAAAAAAAAAAAAAAD + AAAIcAAAAAAAAIAAAAAAAAAAAIAAAAAAAACAAwAAMAAAAACHAAAAAAAACDswA7MAAAAACAAAAAAAAAgD + AAAwAAMAAAhwAAAAAAAIAAAAAAA7MAAAgAAAAAAAAIAAAAAAAwAAAIcAAAAAAACAAAAAAAAAAAAIAAAA + AAAAgAMAADAAAAAACHAAAAAAAAg7MAOzAAAAAACAAAAAAAAIAwAMMMAAAAAAhwAAAAAACADA4AAMDgAA + AAgAAAAAAACAAADgAADsAAAIcAAAAAAAjAPAAKAMAMAAAIAAAAAADoA7MAA6CuCgAACHAAAAC8AIowDj + sAAKDLAACAAAAAAAqAAAADCQAKCgAAhwAAAAAAqKCwAAAAkADAAAiHAAAJC5iwkKDQkLC6CgAIAHAAAA + AIADAADQkJcKCwB4BwAAoAC4OzkAAAsJcMDHeABwAACgCQMAAAAA0JeQp8CAcLkACQgNAAAAAA0JCX3q + gAgAAADYAAAAAAAAsNeQfHiAAA0AAIAAAAAAAAkHt3mwAAAAAACAAAAAAAAADQDQAAAA0AAAgAAAAAAA + AAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAD//5//+AMP/+AAj/+AAAf/AAAH/wAA + A/+AACP/gAAh/4AAMP/AAHD/wAB4f8AAeH/gAPw/4AD8P+AA/h/wAT4f8ADfD+AAXw+YA6eH8AHXg/gD + u8PQAqXZ/AVKydwHpQz2D9EUOg/qBvwP9EHvH/oH/x/+398f////v////7///w== + + + \ No newline at end of file diff --git a/WoL-Manager v0.1/WoL-Manager v0.1.csproj b/WoL-Manager v0.1/WoL-Manager v0.1.csproj new file mode 100755 index 0000000..c5bdbe7 --- /dev/null +++ b/WoL-Manager v0.1/WoL-Manager v0.1.csproj @@ -0,0 +1,146 @@ + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {DBBAD321-A9A0-486E-828B-DE9920C77E65} + WinExe + Properties + WoL_Manager + WoL-Manager v0.1 + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + Form + + + AboutWindow.cs + + + Form + + + + + Form + + + MainWindow.cs + + + + Form + + + NewHostWindow.cs + + + + + + Designer + AboutWindow.cs + + + Designer + EditHostWindow.cs + + + Designer + MainWindow.cs + + + Designer + NewHostWindow.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + Designer + SettingsWindow.cs + + + True + Resources.resx + True + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + Form + + + SettingsWindow.cs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WoL-Manager v0.1/WoL-Manager v0.1.csproj.user b/WoL-Manager v0.1/WoL-Manager v0.1.csproj.user new file mode 100755 index 0000000..9c0b2d9 --- /dev/null +++ b/WoL-Manager v0.1/WoL-Manager v0.1.csproj.user @@ -0,0 +1,16 @@ + + + publish\ + + + + + + + + + 0 + en-US + false + + \ No newline at end of file diff --git a/WoL-Manager v0.1/bin/Debug/WoL-Manager v0.1.exe b/WoL-Manager v0.1/bin/Debug/WoL-Manager v0.1.exe new file mode 100755 index 0000000..b62f47d Binary files /dev/null and b/WoL-Manager v0.1/bin/Debug/WoL-Manager v0.1.exe differ diff --git a/WoL-Manager v0.1/bin/Debug/WoL-Manager v0.1.pdb b/WoL-Manager v0.1/bin/Debug/WoL-Manager v0.1.pdb new file mode 100755 index 0000000..b23f565 Binary files /dev/null and b/WoL-Manager v0.1/bin/Debug/WoL-Manager v0.1.pdb differ diff --git a/WoL-Manager v0.1/bin/Debug/WoL-Manager v0.1.vshost.exe b/WoL-Manager v0.1/bin/Debug/WoL-Manager v0.1.vshost.exe new file mode 100755 index 0000000..ce3f102 Binary files /dev/null and b/WoL-Manager v0.1/bin/Debug/WoL-Manager v0.1.vshost.exe differ diff --git a/WoL-Manager v0.1/bin/Debug/hosts.dtd b/WoL-Manager v0.1/bin/Debug/hosts.dtd new file mode 100755 index 0000000..8a988f4 --- /dev/null +++ b/WoL-Manager v0.1/bin/Debug/hosts.dtd @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/WoL-Manager v0.1/bin/Debug/hosts.xml b/WoL-Manager v0.1/bin/Debug/hosts.xml new file mode 100755 index 0000000..0e8f91b --- /dev/null +++ b/WoL-Manager v0.1/bin/Debug/hosts.xml @@ -0,0 +1,21 @@ + + + + + +Computer Keller +192.168.0.1 +192.168.0.255 +001109C1A6E5 +AMD Athlon64 3200+ +1024 MB RAM +Geforce 7600 GT 256 MB + + +Router +192.168.0.253 +192.168.0.255 +000000000000 +Microlink ADSL Modem Router + + \ No newline at end of file diff --git a/WoL-Manager v0.1/bin/Debug/settings.dtd b/WoL-Manager v0.1/bin/Debug/settings.dtd new file mode 100755 index 0000000..d216025 --- /dev/null +++ b/WoL-Manager v0.1/bin/Debug/settings.dtd @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/WoL-Manager v0.1/bin/Debug/settings.xml b/WoL-Manager v0.1/bin/Debug/settings.xml new file mode 100755 index 0000000..666f892 --- /dev/null +++ b/WoL-Manager v0.1/bin/Debug/settings.xml @@ -0,0 +1,8 @@ + + + + +1000 +5 +120 + \ No newline at end of file diff --git a/WoL-Manager v0.1/bin/Release/WoL-Manager v0.1.exe b/WoL-Manager v0.1/bin/Release/WoL-Manager v0.1.exe new file mode 100755 index 0000000..f5b892c Binary files /dev/null and b/WoL-Manager v0.1/bin/Release/WoL-Manager v0.1.exe differ diff --git a/WoL-Manager v0.1/bin/Release/WoL-Manager v0.1.pdb b/WoL-Manager v0.1/bin/Release/WoL-Manager v0.1.pdb new file mode 100755 index 0000000..706d8c2 Binary files /dev/null and b/WoL-Manager v0.1/bin/Release/WoL-Manager v0.1.pdb differ diff --git a/WoL-Manager v0.1/bin/Release/WoL-Manager v0.1.vshost.exe b/WoL-Manager v0.1/bin/Release/WoL-Manager v0.1.vshost.exe new file mode 100755 index 0000000..ce3f102 Binary files /dev/null and b/WoL-Manager v0.1/bin/Release/WoL-Manager v0.1.vshost.exe differ diff --git a/WoL-Manager v0.1/hosts.dtd b/WoL-Manager v0.1/hosts.dtd new file mode 100755 index 0000000..222080b --- /dev/null +++ b/WoL-Manager v0.1/hosts.dtd @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/WoL-Manager v0.1/hosts.xml b/WoL-Manager v0.1/hosts.xml new file mode 100755 index 0000000..5430a74 --- /dev/null +++ b/WoL-Manager v0.1/hosts.xml @@ -0,0 +1,21 @@ + + + + + + Computer Keller + 192.168.0.1 + 192.168.0.255 + 001109C1A6E5 + Der Computer im Keller +AMD Athlon64 3200+ - 1 GB RAM - Geforce 7600 GT 256 MB + + + Router + 192.168.0.253 + 192.168.0.255 + 000000000000 + Der Router +Microlink ADSL Modem Router + + \ No newline at end of file diff --git a/WoL-Manager v0.1/hosts.xml.bak b/WoL-Manager v0.1/hosts.xml.bak new file mode 100755 index 0000000..25dc178 --- /dev/null +++ b/WoL-Manager v0.1/hosts.xml.bak @@ -0,0 +1,21 @@ + + + + + + Computer Keller + 192.168.0.1 + 192.168.0.255 + 001109C1A6E5 + Der Computer im Keller +AMD Athlon64 3200+ - 1 GB RAM - Geforce 7600 GT 256 MB + + + Router + 192.168.0.253 + 192.168.0.255 + 000000000000 + Der Router +Microlink ADSL Modem Router + + \ No newline at end of file diff --git a/WoL-Manager v0.1/icon_frage.ico b/WoL-Manager v0.1/icon_frage.ico new file mode 100755 index 0000000..1827c25 Binary files /dev/null and b/WoL-Manager v0.1/icon_frage.ico differ diff --git a/WoL-Manager v0.1/icon_gray.ico b/WoL-Manager v0.1/icon_gray.ico new file mode 100755 index 0000000..2e52886 Binary files /dev/null and b/WoL-Manager v0.1/icon_gray.ico differ diff --git a/WoL-Manager v0.1/icon_gray2.ico b/WoL-Manager v0.1/icon_gray2.ico new file mode 100755 index 0000000..4f6a434 Binary files /dev/null and b/WoL-Manager v0.1/icon_gray2.ico differ diff --git a/WoL-Manager v0.1/icon_green.ico b/WoL-Manager v0.1/icon_green.ico new file mode 100755 index 0000000..309f2ef Binary files /dev/null and b/WoL-Manager v0.1/icon_green.ico differ diff --git a/WoL-Manager v0.1/icon_green2.ico b/WoL-Manager v0.1/icon_green2.ico new file mode 100755 index 0000000..74e7ea2 Binary files /dev/null and b/WoL-Manager v0.1/icon_green2.ico differ diff --git a/WoL-Manager v0.1/icon_red.ico b/WoL-Manager v0.1/icon_red.ico new file mode 100755 index 0000000..6d4caa7 Binary files /dev/null and b/WoL-Manager v0.1/icon_red.ico differ diff --git a/WoL-Manager v0.1/icon_red2.ico b/WoL-Manager v0.1/icon_red2.ico new file mode 100755 index 0000000..dc5c6cf Binary files /dev/null and b/WoL-Manager v0.1/icon_red2.ico differ diff --git a/WoL-Manager v0.1/icon_yellow2.ico b/WoL-Manager v0.1/icon_yellow2.ico new file mode 100755 index 0000000..59e2c73 Binary files /dev/null and b/WoL-Manager v0.1/icon_yellow2.ico differ diff --git a/WoL-Manager v0.1/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/WoL-Manager v0.1/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll new file mode 100755 index 0000000..ee6e68e Binary files /dev/null and b/WoL-Manager v0.1/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll differ diff --git a/WoL-Manager v0.1/obj/Debug/TempPE/Resources.Designer.cs.dll b/WoL-Manager v0.1/obj/Debug/TempPE/Resources.Designer.cs.dll new file mode 100755 index 0000000..9b968dd Binary files /dev/null and b/WoL-Manager v0.1/obj/Debug/TempPE/Resources.Designer.cs.dll differ diff --git a/WoL-Manager v0.1/obj/Debug/WoL-Manager v0.1.csproj.GenerateResource.Cache b/WoL-Manager v0.1/obj/Debug/WoL-Manager v0.1.csproj.GenerateResource.Cache new file mode 100755 index 0000000..288f934 Binary files /dev/null and b/WoL-Manager v0.1/obj/Debug/WoL-Manager v0.1.csproj.GenerateResource.Cache differ diff --git a/WoL-Manager v0.1/obj/Debug/WoL-Manager v0.1.exe b/WoL-Manager v0.1/obj/Debug/WoL-Manager v0.1.exe new file mode 100755 index 0000000..b62f47d Binary files /dev/null and b/WoL-Manager v0.1/obj/Debug/WoL-Manager v0.1.exe differ diff --git a/WoL-Manager v0.1/obj/Debug/WoL-Manager v0.1.pdb b/WoL-Manager v0.1/obj/Debug/WoL-Manager v0.1.pdb new file mode 100755 index 0000000..b23f565 Binary files /dev/null and b/WoL-Manager v0.1/obj/Debug/WoL-Manager v0.1.pdb differ diff --git a/WoL-Manager v0.1/obj/Debug/WoL_Manager.AboutWindow.resources b/WoL-Manager v0.1/obj/Debug/WoL_Manager.AboutWindow.resources new file mode 100755 index 0000000..ff3b411 Binary files /dev/null and b/WoL-Manager v0.1/obj/Debug/WoL_Manager.AboutWindow.resources differ diff --git a/WoL-Manager v0.1/obj/Debug/WoL_Manager.EditHostWindow.resources b/WoL-Manager v0.1/obj/Debug/WoL_Manager.EditHostWindow.resources new file mode 100755 index 0000000..06c24d0 Binary files /dev/null and b/WoL-Manager v0.1/obj/Debug/WoL_Manager.EditHostWindow.resources differ diff --git a/WoL-Manager v0.1/obj/Debug/WoL_Manager.MainWindow.resources b/WoL-Manager v0.1/obj/Debug/WoL_Manager.MainWindow.resources new file mode 100755 index 0000000..11439bc Binary files /dev/null and b/WoL-Manager v0.1/obj/Debug/WoL_Manager.MainWindow.resources differ diff --git a/WoL-Manager v0.1/obj/Debug/WoL_Manager.NewHostWindow.resources b/WoL-Manager v0.1/obj/Debug/WoL_Manager.NewHostWindow.resources new file mode 100755 index 0000000..06c24d0 Binary files /dev/null and b/WoL-Manager v0.1/obj/Debug/WoL_Manager.NewHostWindow.resources differ diff --git a/WoL-Manager v0.1/obj/Debug/WoL_Manager.SettingsWindow.resources b/WoL-Manager v0.1/obj/Debug/WoL_Manager.SettingsWindow.resources new file mode 100755 index 0000000..44caa5e Binary files /dev/null and b/WoL-Manager v0.1/obj/Debug/WoL_Manager.SettingsWindow.resources differ diff --git a/WoL-Manager v0.1/obj/Debug/WoL_Manager_v0._1.Properties.Resources.resources b/WoL-Manager v0.1/obj/Debug/WoL_Manager_v0._1.Properties.Resources.resources new file mode 100755 index 0000000..06c24d0 Binary files /dev/null and b/WoL-Manager v0.1/obj/Debug/WoL_Manager_v0._1.Properties.Resources.resources differ diff --git a/WoL-Manager v0.1/obj/Release/TempPE/Properties.Resources.Designer.cs.dll b/WoL-Manager v0.1/obj/Release/TempPE/Properties.Resources.Designer.cs.dll new file mode 100755 index 0000000..38bf3c1 Binary files /dev/null and b/WoL-Manager v0.1/obj/Release/TempPE/Properties.Resources.Designer.cs.dll differ diff --git a/WoL-Manager v0.1/obj/Release/WoL-Manager v0.1.csproj.GenerateResource.Cache b/WoL-Manager v0.1/obj/Release/WoL-Manager v0.1.csproj.GenerateResource.Cache new file mode 100755 index 0000000..288f934 Binary files /dev/null and b/WoL-Manager v0.1/obj/Release/WoL-Manager v0.1.csproj.GenerateResource.Cache differ diff --git a/WoL-Manager v0.1/obj/Release/WoL-Manager v0.1.exe b/WoL-Manager v0.1/obj/Release/WoL-Manager v0.1.exe new file mode 100755 index 0000000..f5b892c Binary files /dev/null and b/WoL-Manager v0.1/obj/Release/WoL-Manager v0.1.exe differ diff --git a/WoL-Manager v0.1/obj/Release/WoL-Manager v0.1.pdb b/WoL-Manager v0.1/obj/Release/WoL-Manager v0.1.pdb new file mode 100755 index 0000000..706d8c2 Binary files /dev/null and b/WoL-Manager v0.1/obj/Release/WoL-Manager v0.1.pdb differ diff --git a/WoL-Manager v0.1/obj/Release/WoL_Manager.AboutWindow.resources b/WoL-Manager v0.1/obj/Release/WoL_Manager.AboutWindow.resources new file mode 100755 index 0000000..ff3b411 Binary files /dev/null and b/WoL-Manager v0.1/obj/Release/WoL_Manager.AboutWindow.resources differ diff --git a/WoL-Manager v0.1/obj/Release/WoL_Manager.EditHostWindow.resources b/WoL-Manager v0.1/obj/Release/WoL_Manager.EditHostWindow.resources new file mode 100755 index 0000000..06c24d0 Binary files /dev/null and b/WoL-Manager v0.1/obj/Release/WoL_Manager.EditHostWindow.resources differ diff --git a/WoL-Manager v0.1/obj/Release/WoL_Manager.MainWindow.resources b/WoL-Manager v0.1/obj/Release/WoL_Manager.MainWindow.resources new file mode 100755 index 0000000..11439bc Binary files /dev/null and b/WoL-Manager v0.1/obj/Release/WoL_Manager.MainWindow.resources differ diff --git a/WoL-Manager v0.1/obj/Release/WoL_Manager.NewHostWindow.resources b/WoL-Manager v0.1/obj/Release/WoL_Manager.NewHostWindow.resources new file mode 100755 index 0000000..06c24d0 Binary files /dev/null and b/WoL-Manager v0.1/obj/Release/WoL_Manager.NewHostWindow.resources differ diff --git a/WoL-Manager v0.1/obj/Release/WoL_Manager.Properties.Resources.resources b/WoL-Manager v0.1/obj/Release/WoL_Manager.Properties.Resources.resources new file mode 100755 index 0000000..06c24d0 Binary files /dev/null and b/WoL-Manager v0.1/obj/Release/WoL_Manager.Properties.Resources.resources differ diff --git a/WoL-Manager v0.1/obj/Release/WoL_Manager.SettingsWindow.resources b/WoL-Manager v0.1/obj/Release/WoL_Manager.SettingsWindow.resources new file mode 100755 index 0000000..44caa5e Binary files /dev/null and b/WoL-Manager v0.1/obj/Release/WoL_Manager.SettingsWindow.resources differ diff --git a/WoL-Manager v0.1/obj/WoL-Manager v0.1.csproj.FileList.txt b/WoL-Manager v0.1/obj/WoL-Manager v0.1.csproj.FileList.txt new file mode 100755 index 0000000..124eb9d --- /dev/null +++ b/WoL-Manager v0.1/obj/WoL-Manager v0.1.csproj.FileList.txt @@ -0,0 +1,24 @@ +bin\Debug\WoL-Manager v0.1.exe +bin\Debug\WoL-Manager v0.1.pdb +obj\Debug\ResolveAssemblyReference.cache +obj\Debug\WoL_Manager_v0._1.Properties.Resources.resources +obj\Debug\WoL-Manager v0.1.csproj.GenerateResource.Cache +obj\Debug\WoL-Manager v0.1.exe +obj\Debug\WoL-Manager v0.1.pdb +obj\Debug\WoL_Manager.AboutWindow.resources +obj\Debug\WoL_Manager.MainWindow.resources +obj\Debug\WoL_Manager.NewHostWindow.resources +obj\Debug\WoL_Manager.SettingsWindow.resources +obj\Debug\WoL_Manager.EditHostWindow.resources +bin\Release\WoL-Manager v0.1.exe +bin\Release\WoL-Manager v0.1.pdb +obj\Release\ResolveAssemblyReference.cache +obj\Release\WoL_Manager.AboutWindow.resources +obj\Release\WoL_Manager.EditHostWindow.resources +obj\Release\WoL_Manager.MainWindow.resources +obj\Release\WoL_Manager.NewHostWindow.resources +obj\Release\WoL_Manager.Properties.Resources.resources +obj\Release\WoL_Manager.SettingsWindow.resources +obj\Release\WoL-Manager v0.1.csproj.GenerateResource.Cache +obj\Release\WoL-Manager v0.1.exe +obj\Release\WoL-Manager v0.1.pdb diff --git a/WoL-Manager v0.1/settings.dtd b/WoL-Manager v0.1/settings.dtd new file mode 100755 index 0000000..7fa6084 --- /dev/null +++ b/WoL-Manager v0.1/settings.dtd @@ -0,0 +1,6 @@ + + + + + + diff --git a/WoL-Manager v0.1/settings.xml b/WoL-Manager v0.1/settings.xml new file mode 100755 index 0000000..4befd7b --- /dev/null +++ b/WoL-Manager v0.1/settings.xml @@ -0,0 +1,8 @@ + + + + + 1000 + 2000 + 120 + \ No newline at end of file diff --git a/WoL-Manager v0.1/settings.xml.bak b/WoL-Manager v0.1/settings.xml.bak new file mode 100755 index 0000000..15cf0db --- /dev/null +++ b/WoL-Manager v0.1/settings.xml.bak @@ -0,0 +1,8 @@ + + + + + 1000 + 2000 + 120 + \ No newline at end of file diff --git a/WoL-Manager v0.1/test.xml.bak b/WoL-Manager v0.1/test.xml.bak new file mode 100755 index 0000000..caae587 --- /dev/null +++ b/WoL-Manager v0.1/test.xml.bak @@ -0,0 +1,18 @@ + + + Computer Keller + 192.168.0.1 + 192.168.0.255 + 00:11:09:c1:a6:e5 + Der Computer im Keller +AMD Athlon64 3200 - 2 GB RAM - Geforce 7600 GT 256 MB + + + Router + 192.168.0.253 + 192.168.0.255 + 00:00:00:00:00:00 + Der Router +Microlink ADSL Modem Router + + \ No newline at end of file