Skip to content

Commit

Permalink
Retail
Browse files Browse the repository at this point in the history
  • Loading branch information
pudingus committed Apr 9, 2018
1 parent fc920a7 commit a987367
Show file tree
Hide file tree
Showing 9 changed files with 217 additions and 14 deletions.
4 changes: 2 additions & 2 deletions downloader3/AddHelpWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
<Bold>Zippyshare.com</Bold>
<LineBreak/>
- e.g.
<Italic>http://www50.zippyshare.com/v/1VHXCUpf/file.html</Italic>
<Italic>http://www92.zippyshare.com/v/36tzFR3Z/file.html</Italic>
<LineBreak/>
<Bold>Openload.co</Bold>
<LineBreak/>
- e.g.
<Italic>https://openload.co/f/w3GB-1rb5FI/</Italic>
<Italic>https://openload.co/f/UQ_iPCg8oyU</Italic>
</Paragraph>
</FlowDocument>
</RichTextBox>
Expand Down
206 changes: 206 additions & 0 deletions downloader3/ClassDiagram.cd
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
<?xml version="1.0" encoding="utf-8"?>
<ClassDiagram MajorVersion="1" MinorVersion="1">
<Class Name="downloader3.AddHelpWindow" Collapsed="true" BaseTypeListCollapsed="true">
<Position X="4.5" Y="6.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAA=</HashCode>
<FileName>AddHelpWindow.xaml.cs</FileName>
</TypeIdentifier>
<Lollipop Position="0.2" Collapsed="true" />
</Class>
<Class Name="downloader3.AddWindow" Collapsed="true" BaseTypeListCollapsed="true">
<Position X="4.5" Y="5.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAIAEAABAAAkAAAAAAAAAAAAAQAAAAAA=</HashCode>
<FileName>AddWindow.xaml.cs</FileName>
</TypeIdentifier>
<Lollipop Position="0.212" Collapsed="true" />
</Class>
<Class Name="downloader3.App" Collapsed="true">
<Position X="2.75" Y="4.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAA=</HashCode>
<FileName>App.xaml.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="downloader3.BandwidthWindow" Collapsed="true" BaseTypeListCollapsed="true">
<Position X="2.75" Y="5.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAARAAAgAEAAAAAAIAAAAAAAAgAA=</HashCode>
<FileName>BandwidthWindow.xaml.cs</FileName>
</TypeIdentifier>
<Lollipop Position="0.2" Collapsed="true" />
</Class>
<Class Name="downloader3.DownloadClient" Collapsed="true">
<Position X="8.5" Y="2" Width="1.5" />
<Compartments>
<Compartment Name="Methods" Collapsed="true" />
</Compartments>
<NestedTypes>
<Delegate Name="downloader3.DownloadClient.DownloadError" Collapsed="true">
<TypeIdentifier>
<NewMemberFileName>DownloadClient.cs</NewMemberFileName>
</TypeIdentifier>
</Delegate>
<Delegate Name="downloader3.DownloadClient.DownloadCompleted" Collapsed="true">
<TypeIdentifier>
<NewMemberFileName>DownloadClient.cs</NewMemberFileName>
</TypeIdentifier>
</Delegate>
<Delegate Name="downloader3.DownloadClient.DownloadInit" Collapsed="true">
<TypeIdentifier>
<NewMemberFileName>DownloadClient.cs</NewMemberFileName>
</TypeIdentifier>
</Delegate>
<Delegate Name="downloader3.DownloadClient.DownloadStateChanged" Collapsed="true">
<TypeIdentifier>
<NewMemberFileName>DownloadClient.cs</NewMemberFileName>
</TypeIdentifier>
</Delegate>
</NestedTypes>
<TypeIdentifier>
<HashCode>CERgABQARGQIBATMCASACAAEYIEAQBAACJEAFABDgAA=</HashCode>
<FileName>DownloadClient.cs</FileName>
</TypeIdentifier>
<ShowAsAssociation>
<Field Name="provider" />
<Property Name="Item" />
<Property Name="State" />
</ShowAsAssociation>
</Class>
<Class Name="downloader3.Lang" Collapsed="true">
<Position X="2.25" Y="3.5" Width="1.5" />
<Compartments>
<Compartment Name="Methods" Collapsed="true" />
</Compartments>
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAEAAAAAAA=</HashCode>
<FileName>Lang.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="downloader3.Link" Collapsed="true">
<Position X="4.5" Y="1.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAABAAAAQAAAAAAAAAAAAAAAAAABAACAAAAABAAAA=</HashCode>
<FileName>LinksStorage.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="downloader3.LinksStorage" Collapsed="true">
<Position X="4.5" Y="2.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAgIBAAAAAAAAAAAACAAAAAAAAAAAAAAAACAAAAAI=</HashCode>
<FileName>LinksStorage.cs</FileName>
</TypeIdentifier>
<ShowAsCollectionAssociation>
<Field Name="List" />
</ShowAsCollectionAssociation>
</Class>
<Class Name="downloader3.LvData" Collapsed="true">
<Position X="8.25" Y="3.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAABAAAABAgAAAAAAAAAQBAAAAAAAgAAAAAEGAAEQ=</HashCode>
<FileName>LvData.cs</FileName>
</TypeIdentifier>
<ShowAsAssociation>
<Property Name="Client" />
</ShowAsAssociation>
</Class>
<Class Name="downloader3.MainWindow" Collapsed="true" BaseTypeListCollapsed="true">
<Position X="4.5" Y="4.75" Width="2.75" />
<TypeIdentifier>
<HashCode>CQYAASIAEAAIAABgABggEBgEBCGAAAAAFACAAQAABAg=</HashCode>
<FileName>MainWindow.xaml.cs</FileName>
</TypeIdentifier>
<ShowAsAssociation>
<Field Name="lastItem" />
<Field Name="settings" />
</ShowAsAssociation>
<Lollipop Position="0.2" Collapsed="true" />
</Class>
<Class Name="downloader3.RemoveWindow" Collapsed="true" BaseTypeListCollapsed="true">
<Position X="6.25" Y="5.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAIAAgAEAAAAAAIAAAAAAAAAAA=</HashCode>
<FileName>RemoveWindow.xaml.cs</FileName>
</TypeIdentifier>
<Lollipop Position="0.2" Collapsed="true" />
</Class>
<Class Name="downloader3.RenameWindow" Collapsed="true" BaseTypeListCollapsed="true">
<Position X="8.25" Y="5.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAQAAAgAEBAAAAAIAAAAAAAAgAA=</HashCode>
<FileName>RenameWindow.xaml.cs</FileName>
</TypeIdentifier>
<ShowAsAssociation>
<Field Name="_item" />
</ShowAsAssociation>
<Lollipop Position="0.2" Collapsed="true" />
</Class>
<Class Name="downloader3.SettingsStorage" Collapsed="true">
<Position X="6.5" Y="2.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAgIAADAQAAAAAAAACAAgAAAAAAAAAQAAACAAEAAA=</HashCode>
<FileName>SettingsStorage.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="downloader3.SettingsWindow" Collapsed="true" BaseTypeListCollapsed="true">
<Position X="4.5" Y="3.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAEAABAAAAAEAAAAAAABAAAAAAAgAA=</HashCode>
<FileName>SettingsWindow.xaml.cs</FileName>
</TypeIdentifier>
<Lollipop Position="0.2" Collapsed="true" />
</Class>
<Class Name="downloader3.Util" Collapsed="true">
<Position X="2.25" Y="2.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAIAAAAEAAAAAAAAAAAAAAQAAAAAAAAAAAAIAAAA=</HashCode>
<FileName>Util.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="downloader3.Properties.Resources" Collapsed="true">
<Position X="2.25" Y="1.25" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAABEAAAAQAAAAACAAAAAAAAAIA=</HashCode>
</TypeIdentifier>
</Class>
<Class Name="ShellIcon" Collapsed="true">
<Position X="2.25" Y="2" Width="1.5" />
<NestedTypes>
<Struct Name="ShellIcon.SHFILEINFO" Collapsed="true">
<TypeIdentifier>
<NewMemberFileName>ShellIcon.cs</NewMemberFileName>
</TypeIdentifier>
</Struct>
<Enum Name="ShellIcon.SHGFI" Collapsed="true">
<TypeIdentifier>
<NewMemberFileName>ShellIcon.cs</NewMemberFileName>
</TypeIdentifier>
</Enum>
<Class Name="ShellIcon.Win32" Collapsed="true">
<TypeIdentifier>
<NewMemberFileName>ShellIcon.cs</NewMemberFileName>
</TypeIdentifier>
</Class>
</NestedTypes>
<TypeIdentifier>
<HashCode>EBAAABAAAACAAACAAAAAAAAAAAEAAgAAAAAEACAAAAA=</HashCode>
<FileName>ShellIcon.cs</FileName>
</TypeIdentifier>
</Class>
<Enum Name="downloader3.States" Collapsed="true">
<Position X="8.5" Y="0.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAgAIAAEAAAAQIAgAAAAAAAQAAAAAAAAAAAAAAAAAA=</HashCode>
<FileName>DownloadClient.cs</FileName>
</TypeIdentifier>
</Enum>
<Enum Name="downloader3.Providers" Collapsed="true">
<Position X="6.75" Y="0.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAABABAAAAAAAAAAAAIA=</HashCode>
<FileName>DownloadClient.cs</FileName>
</TypeIdentifier>
</Enum>
<Font Name="Segoe UI" Size="9" />
</ClassDiagram>
4 changes: 0 additions & 4 deletions downloader3/DownloadClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ public class DownloadClient
{
public delegate void DownloadError(DownloadClient client, LvData item, string message);
public delegate void DownloadCompleted(DownloadClient client, LvData item);

public delegate void DownloadInit(DownloadClient client, LvData item);

public delegate void DownloadStateChanged(DownloadClient client, LvData item, States oldState, States newState);

/// <summary>
Expand All @@ -55,7 +53,6 @@ public class DownloadClient
/// Nastane když se změní stav stahování
/// </summary>
public event DownloadStateChanged OnDownloadStateChanged;


/// <summary>
/// Získá celkovou velikost souboru v bajtech
Expand Down Expand Up @@ -92,7 +89,6 @@ public class DownloadClient
/// </summary>
public long SpeedLimit { get; set; }


/// <summary>
/// Získá úplnou cestu ke stahovanému souboru
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions downloader3/Lang.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ public static void SetLanguage(string culture)

Thread.CurrentThread.CurrentCulture = new CultureInfo(culture);
Thread.CurrentThread.CurrentUICulture = new CultureInfo(culture);
}
}
}

/// <summary>
/// Vyhledá zadaný prostředek v přostředcích aplikace a vrátí odpovídající řetězec
/// </summary>
/// <param name="resource"></param>
/// <returns></returns>
/// <returns>Vrátí nalezený řetězec</returns>
public static string Translate(string resource)
{
string result = (string)Application.Current.TryFindResource(resource);
Expand Down
2 changes: 1 addition & 1 deletion downloader3/LinksStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class LinksStorage
/// <summary>
/// Načte seznam odkazů
/// </summary>
/// <returns></returns>
/// <returns>Vrátí instanci objektu typu <see cref="LinksStorage"/></returns>
public LinksStorage Load()
{
LinksStorage linksStorage = this;
Expand Down
4 changes: 2 additions & 2 deletions downloader3/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
[assembly: AssemblyTitle(App.appName)]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCompany("Martin Dočekal")]
[assembly: AssemblyProduct(App.appName)]
[assembly: AssemblyCopyright("Copyright © 2016-2018")]
[assembly: AssemblyCopyright("Copyright © Martin Dočekal 2016-2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down
2 changes: 1 addition & 1 deletion downloader3/SettingsStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class SettingsStorage
/// <summary>
/// Načte nastavení
/// </summary>
/// <returns>Vrací referenci na objekt</returns>
/// <returns>Vrací instanci objektu typu <see cref="SettingsStorage"/></returns>
public SettingsStorage Load()
{
SettingsStorage storage = this;
Expand Down
4 changes: 2 additions & 2 deletions downloader3/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static bool IsValidPath(string path)
/// Převede bajty do čitelného formátu a vrátí řetězec
/// </summary>
/// <param name="bytes">Bajty</param>
/// <returns></returns>
/// <returns>Vrátí bajty s jednotkou jako řetězec</returns>
public static string ConvertBytes(long bytes)
{
double KB = Math.Pow(1024, 1);
Expand All @@ -68,7 +68,7 @@ public static string ConvertBytes(long bytes)
/// Převede sekundy do čitelného formátu a vrátí řetězec
/// </summary>
/// <param name="sec">Sekundy</param>
/// <returns></returns>
/// <returns>Vrátí naformátovaný řetězec</returns>
public static string ConvertTime(long sec)
{
string str = " ";
Expand Down
1 change: 1 addition & 0 deletions downloader3/downloader3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
<SubType>Designer</SubType>
</None>
<AppDesigner Include="Properties\" />
<None Include="ClassDiagram.cd" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit a987367

Please sign in to comment.