Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
增加断点续传(测试) 修复若干bug 详细更新请看更新记录
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrs4s committed Nov 19, 2016
1 parent 45ffa0a commit 47fa3ba
Show file tree
Hide file tree
Showing 26 changed files with 898 additions and 2,121 deletions.
45 changes: 3 additions & 42 deletions BaiduPanDownload/BaiduPanDownload.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,6 @@
<Compile Include="Forms\AddDownload.Designer.cs">
<DependentUpon>AddDownload.cs</DependentUpon>
</Compile>
<Compile Include="Forms\DownloadInfo.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\DownloadInfo.Designer.cs">
<DependentUpon>DownloadInfo.cs</DependentUpon>
</Compile>
<Compile Include="Forms\InPutCode.cs">
<SubType>Form</SubType>
</Compile>
Expand All @@ -134,34 +128,23 @@
<Compile Include="Forms\NewDir.Designer.cs">
<DependentUpon>NewDir.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Video.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Video.Designer.cs">
<DependentUpon>Video.cs</DependentUpon>
</Compile>
<Compile Include="HttpTool\DownloadThread.cs" />
<Compile Include="HttpTool\HttpTask.cs" />
<Compile Include="HttpTool\SuperDownload.cs" />
<Compile Include="HttpTool\Download\DownloadInfo.cs" />
<Compile Include="HttpTool\Download\DownloadThread.cs" />
<Compile Include="HttpTool\Download\HttpDownload.cs" />
<Compile Include="Managers\CopyManager.cs" />
<Compile Include="Managers\TaskManager.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Util\DiskAPI.cs" />
<Compile Include="Util\FileTool\FileOperation.cs" />
<Compile Include="Util\FileTool\Config.cs" />
<Compile Include="HttpTool\HttpDownload.cs" />
<Compile Include="HttpTool\HttpUpload.cs" />
<Compile Include="HttpTool\WebTool.cs" />
<Compile Include="Util\FileTool\HashTool.cs" />
<Compile Include="Util\ShowCommands.cs" />
<Compile Include="Util\TaskState.cs" />
<EmbeddedResource Include="Forms\AddDownload.resx">
<DependentUpon>AddDownload.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\DownloadInfo.resx">
<DependentUpon>DownloadInfo.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\InPutCode.resx">
<DependentUpon>InPutCode.cs</DependentUpon>
</EmbeddedResource>
Expand All @@ -174,9 +157,6 @@
<EmbeddedResource Include="Forms\NewDir.resx">
<DependentUpon>NewDir.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Video.resx">
<DependentUpon>Video.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
Expand Down Expand Up @@ -221,25 +201,6 @@
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<COMReference Include="AxWMPLib">
<Guid>{6BF52A50-394A-11D3-B153-00C04F79FAA6}</Guid>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>aximp</WrapperTool>
<Isolated>False</Isolated>
</COMReference>
<COMReference Include="WMPLib">
<Guid>{6BF52A50-394A-11D3-B153-00C04F79FAA6}</Guid>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
19 changes: 12 additions & 7 deletions BaiduPanDownload/Forms/AddDownload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ private void button2_Click(object sender, EventArgs e)
{
this.button2.Enabled = false;
this.button2.Text = "添加中...";
if (info.isdir == 1)
{
MessageBox.Show("即将添加文件夹下载,程序可能未响应一段时间!");
}
AddDownloadButton();
}

Expand All @@ -94,7 +90,16 @@ void AddDownloadButton()
}
if (!Directory.Exists(textBox1.Text))
{
MessageBox.Show("下载文件夹不存在!");
MessageBox.Show("下载路径不存在!");
this.button2.Enabled = true;
this.button2.Text = "添加下载";
return;
}
if (info.size <= Program.config.NetSpeed)
{
MessageBox.Show("文件太小,无法下载!");
this.button2.Enabled = true;
this.button2.Text = "添加下载";
return;
}
if (info.isdir == 1)
Expand All @@ -107,12 +112,12 @@ void AddDownloadButton()
{
Directory.CreateDirectory(downloadPath);
}
main.AddDownloadFile(dfi, downloadPath, dfi.getName(),getSizeMB(dfi.size)>Program.config.SuperDownloadSize);
main.AddDownloadFile(dfi, downloadPath, dfi.getName());
}
this.Close();
return;
}
main.AddDownloadFile(info, textBox1.Text, info.getName(), getSizeMB(info.size) > Program.config.SuperDownloadSize);
main.AddDownloadFile(info, textBox1.Text, info.getName());
this.Close();
}
}
Expand Down
129 changes: 0 additions & 129 deletions BaiduPanDownload/Forms/DownloadInfo.Designer.cs

This file was deleted.

81 changes: 0 additions & 81 deletions BaiduPanDownload/Forms/DownloadInfo.cs

This file was deleted.

Loading

0 comments on commit 47fa3ba

Please sign in to comment.