Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 0aa0c07af5c954dc968480f1d9c11686a2ad5fb0 @pjmagee committed May 6, 2012
Showing with 13,255 additions and 0 deletions.
  1. +17 −0 .gitignore
  2. +6 −0 .nuget/NuGet.Config
  3. BIN .nuget/NuGet.exe
  4. +71 −0 .nuget/NuGet.targets
  5. +1 −0 4chandownloader
  6. +91 −0 4chandownloader.sln
  7. +116 −0 Downloader.Console/Downloader.Console.csproj
  8. +122 −0 Downloader.Console/Program.cs
  9. +36 −0 Downloader.Console/Properties/AssemblyInfo.cs
  10. +1 −0 Downloader.Console/README.markdown
  11. +21 −0 Downloader.Console/config.xml
  12. BIN Downloader.Console/favicon.ico
  13. +88 −0 Downloader.GUI/Downloader.GUI.csproj
  14. +549 −0 Downloader.GUI/Main.Designer.cs
  15. +129 −0 Downloader.GUI/Main.cs
  16. +129 −0 Downloader.GUI/Main.resx
  17. +21 −0 Downloader.GUI/Program.cs
  18. +36 −0 Downloader.GUI/Properties/AssemblyInfo.cs
  19. +71 −0 Downloader.GUI/Properties/Resources.Designer.cs
  20. +117 −0 Downloader.GUI/Properties/Resources.resx
  21. +30 −0 Downloader.GUI/Properties/Settings.Designer.cs
  22. +7 −0 Downloader.GUI/Properties/Settings.settings
  23. +1 −0 Downloader.GUI/README.markdown
  24. +82 −0 Downloader.Tests/BoardTests.cs
  25. +102 −0 Downloader.Tests/ConfigTests.cs
  26. +77 −0 Downloader.Tests/Downloader.Tests.csproj
  27. +35 −0 Downloader.Tests/Properties/AssemblyInfo.cs
  28. +1 −0 Downloader.Tests/README.markdown
  29. +51 −0 Downloader.Tests/StartupTests.cs
  30. +4 −0 Downloader.Tests/packages.config
  31. +164 −0 Downloader/Board.cs
  32. +20 −0 Downloader/BoardConfig.cs
  33. +43 −0 Downloader/BoardSetup.cs
  34. +11 −0 Downloader/BoardThread.cs
  35. +15 −0 Downloader/BoardThreadFilter.cs
  36. +24 −0 Downloader/BoardTimer.cs
  37. +64 −0 Downloader/Downloader.csproj
  38. +36 −0 Downloader/Properties/AssemblyInfo.cs
  39. +1 −0 Downloader/README.markdown
  40. +1 −0 README.markdown
  41. BIN packages/NUnit.2.6.0.12054/NUnit.2.6.0.12054.nupkg
  42. BIN packages/NUnit.2.6.0.12054/lib/nunit.framework.dll
  43. +10,845 −0 packages/NUnit.2.6.0.12054/lib/nunit.framework.xml
  44. +15 −0 packages/NUnit.2.6.0.12054/license.txt
  45. +4 −0 packages/repositories.config
@@ -0,0 +1,17 @@
+# ignore directories created for the build process
+bin/*
+obj/*
+
+[Oo]bj
+[Bb]in
+*.user
+*.suo
+*.[Cc]ache
+*.bak
+*.ncb
+*.log
+*.DS_Store
+[Tt]humbs.db
+_ReSharper.*
+*.resharper
+Ankh.NoLoad
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <solution>
+ <add key="disableSourceControlIntegration" value="true" />
+ </solution>
+</configuration>
Binary file not shown.
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
+
+ <!-- Windows specific commands -->
+ <NuGetToolsPath Condition=" '$(OS)' == 'Windows_NT'">$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
+ <PackagesConfig Condition=" '$(OS)' == 'Windows_NT'">$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
+ <PackagesDir Condition=" '$(OS)' == 'Windows_NT'">$([System.IO.Path]::Combine($(SolutionDir), "packages"))</PackagesDir>
+
+ <!-- We need to launch nuget.exe with the mono command if we're not on windows -->
+ <NuGetToolsPath Condition=" '$(OS)' != 'Windows_NT'">$(SolutionDir).nuget</NuGetToolsPath>
+ <PackagesConfig Condition=" '$(OS)' != 'Windows_NT' ">packages.config</PackagesConfig>
+ <PackagesDir Condition=" '$(OS)' != 'Windows_NT'">$(SolutionDir)packages</PackagesDir>
+
+ <!-- NuGet command -->
+ <NuGetExePath>$(NuGetToolsPath)\nuget.exe</NuGetExePath>
+ <NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
+ <NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
+
+ <PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
+
+ <!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
+ <PackageSources>""</PackageSources>
+
+ <!-- Enable the restore command to run before builds -->
+ <RestorePackages Condition="$(RestorePackages) == ''">false</RestorePackages>
+
+ <!-- Property that enables building a package from a project -->
+ <BuildPackage Condition="$(BuildPackage) == ''">false</BuildPackage>
+
+ <!-- Commands -->
+ <RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source $(PackageSources) -o "$(PackagesDir)"</RestoreCommand>
+ <BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
+
+ <!-- Make the build depend on restore packages -->
+ <BuildDependsOn Condition="$(RestorePackages) == 'true'">
+ RestorePackages;
+ $(BuildDependsOn);
+ </BuildDependsOn>
+
+ <!-- Make the build depend on restore packages -->
+ <BuildDependsOn Condition="$(BuildPackage) == 'true'">
+ $(BuildDependsOn);
+ BuildPackage;
+ </BuildDependsOn>
+ </PropertyGroup>
+
+ <Target Name="CheckPrerequisites">
+ <!-- Raise an error if we're unable to locate nuget.exe -->
+ <Error Condition="!Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
+ </Target>
+
+ <Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(RestoreCommand)"
+ Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
+
+ <Exec Command="$(RestoreCommand)"
+ LogStandardErrorAsError="true"
+ Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
+ </Target>
+
+ <Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(BuildCommand)"
+ Condition=" '$(OS)' != 'Windows_NT' " />
+
+ <Exec Command="$(BuildCommand)"
+ LogStandardErrorAsError="true"
+ Condition=" '$(OS)' == 'Windows_NT' " />
+ </Target>
+</Project>
Submodule 4chandownloader added at 70df7b
@@ -0,0 +1,91 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Downloader", "Downloader\Downloader.csproj", "{B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E2A1E721-B4CB-44CD-995F-BEEEAA611A58}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Downloader.GUI", "Downloader.GUI\Downloader.GUI.csproj", "{B0100FD3-5E1B-4224-AE12-1E25D4D0F83F}"
+ ProjectSection(ProjectDependencies) = postProject
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC} = {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Downloader.Tests", "Downloader.Tests\Downloader.Tests.csproj", "{78144C04-B1A9-45CA-916E-47C17CF639D0}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Downloader.Console", "Downloader.Console\Downloader.Console.csproj", "{6088982E-820C-4885-BA8B-9E31DE269568}"
+ ProjectSection(ProjectDependencies) = postProject
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC} = {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}
+ EndProjectSection
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{F5A6635D-A6D9-4CE4-B74C-E8E7EC627CEE}"
+ ProjectSection(SolutionItems) = preProject
+ .nuget\NuGet.exe = .nuget\NuGet.exe
+ .nuget\NuGet.targets = .nuget\NuGet.targets
+ EndProjectSection
+EndProject
+Global
+ GlobalSection(TestCaseManagementSettings) = postSolution
+ CategoryFile = 4chandownloader-v3.vsmdi
+ EndGlobalSection
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|Mixed Platforms = Debug|Mixed Platforms
+ Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
+ Release|Mixed Platforms = Release|Mixed Platforms
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}.Debug|x86.Build.0 = Debug|Any CPU
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}.Release|x86.ActiveCfg = Release|Any CPU
+ {B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}.Release|x86.Build.0 = Release|Any CPU
+ {B0100FD3-5E1B-4224-AE12-1E25D4D0F83F}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {B0100FD3-5E1B-4224-AE12-1E25D4D0F83F}.Debug|Any CPU.Build.0 = Debug|x86
+ {B0100FD3-5E1B-4224-AE12-1E25D4D0F83F}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {B0100FD3-5E1B-4224-AE12-1E25D4D0F83F}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {B0100FD3-5E1B-4224-AE12-1E25D4D0F83F}.Debug|x86.ActiveCfg = Debug|x86
+ {B0100FD3-5E1B-4224-AE12-1E25D4D0F83F}.Debug|x86.Build.0 = Debug|x86
+ {B0100FD3-5E1B-4224-AE12-1E25D4D0F83F}.Release|Any CPU.ActiveCfg = Release|x86
+ {B0100FD3-5E1B-4224-AE12-1E25D4D0F83F}.Release|Any CPU.Build.0 = Release|x86
+ {B0100FD3-5E1B-4224-AE12-1E25D4D0F83F}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {B0100FD3-5E1B-4224-AE12-1E25D4D0F83F}.Release|Mixed Platforms.Build.0 = Release|x86
+ {B0100FD3-5E1B-4224-AE12-1E25D4D0F83F}.Release|x86.ActiveCfg = Release|x86
+ {B0100FD3-5E1B-4224-AE12-1E25D4D0F83F}.Release|x86.Build.0 = Release|x86
+ {78144C04-B1A9-45CA-916E-47C17CF639D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {78144C04-B1A9-45CA-916E-47C17CF639D0}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {78144C04-B1A9-45CA-916E-47C17CF639D0}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {78144C04-B1A9-45CA-916E-47C17CF639D0}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {78144C04-B1A9-45CA-916E-47C17CF639D0}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {78144C04-B1A9-45CA-916E-47C17CF639D0}.Debug|x86.Build.0 = Debug|Any CPU
+ {78144C04-B1A9-45CA-916E-47C17CF639D0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {78144C04-B1A9-45CA-916E-47C17CF639D0}.Release|Any CPU.Build.0 = Release|Any CPU
+ {78144C04-B1A9-45CA-916E-47C17CF639D0}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {78144C04-B1A9-45CA-916E-47C17CF639D0}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {78144C04-B1A9-45CA-916E-47C17CF639D0}.Release|x86.ActiveCfg = Release|Any CPU
+ {78144C04-B1A9-45CA-916E-47C17CF639D0}.Release|x86.Build.0 = Release|Any CPU
+ {6088982E-820C-4885-BA8B-9E31DE269568}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {6088982E-820C-4885-BA8B-9E31DE269568}.Debug|Any CPU.Build.0 = Debug|x86
+ {6088982E-820C-4885-BA8B-9E31DE269568}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {6088982E-820C-4885-BA8B-9E31DE269568}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {6088982E-820C-4885-BA8B-9E31DE269568}.Debug|x86.ActiveCfg = Debug|x86
+ {6088982E-820C-4885-BA8B-9E31DE269568}.Debug|x86.Build.0 = Debug|x86
+ {6088982E-820C-4885-BA8B-9E31DE269568}.Release|Any CPU.ActiveCfg = Release|x86
+ {6088982E-820C-4885-BA8B-9E31DE269568}.Release|Any CPU.Build.0 = Release|x86
+ {6088982E-820C-4885-BA8B-9E31DE269568}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {6088982E-820C-4885-BA8B-9E31DE269568}.Release|Mixed Platforms.Build.0 = Release|x86
+ {6088982E-820C-4885-BA8B-9E31DE269568}.Release|x86.ActiveCfg = Release|x86
+ {6088982E-820C-4885-BA8B-9E31DE269568}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{6088982E-820C-4885-BA8B-9E31DE269568}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Downloader.Console</RootNamespace>
+ <AssemblyName>Downloader.Console</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ <PublishUrl>publish\</PublishUrl>
+ <Install>true</Install>
+ <InstallFrom>Disk</InstallFrom>
+ <UpdateEnabled>false</UpdateEnabled>
+ <UpdateMode>Foreground</UpdateMode>
+ <UpdateInterval>7</UpdateInterval>
+ <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+ <UpdatePeriodically>false</UpdatePeriodically>
+ <UpdateRequired>false</UpdateRequired>
+ <MapFileExtensions>true</MapFileExtensions>
+ <ApplicationRevision>0</ApplicationRevision>
+ <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+ <IsWebBootstrapper>false</IsWebBootstrapper>
+ <UseApplicationTrust>false</UseApplicationTrust>
+ <BootstrapperEnabled>true</BootstrapperEnabled>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup>
+ <ApplicationIcon>favicon.ico</ApplicationIcon>
+ </PropertyGroup>
+ <PropertyGroup>
+ <StartupObject>Downloader.Console.Program</StartupObject>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Downloader\Downloader.csproj">
+ <Project>{B3A3CBF0-1D72-4753-A56F-5CC6803B86AC}</Project>
+ <Name>Downloader</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <BootstrapperPackage Include=".NETFramework,Version=v4.0,Profile=Client">
+ <Visible>False</Visible>
+ <ProductName>Microsoft .NET Framework 4 Client Profile %28x86 and x64%29</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
+ <Visible>False</Visible>
+ <ProductName>Windows Installer 3.1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="config.xml">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="favicon.ico" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="README.markdown" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
Oops, something went wrong.

0 comments on commit 0aa0c07

Please sign in to comment.