Skip to content

Commit

Permalink
0.5 Release
Browse files Browse the repository at this point in the history
Added ability to download files in queue, seperated download buttons and
some bug fixes with some repos.
  • Loading branch information
PythEch committed Apr 26, 2014
1 parent f9df2b0 commit 32e7c49
Show file tree
Hide file tree
Showing 164 changed files with 60,566 additions and 262 deletions.
28 changes: 14 additions & 14 deletions Cygnus/AlertView.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 5 additions & 11 deletions Cygnus/AlertView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,10 @@ private void btnCancel_Click(object sender, EventArgs e)

private void btnEdit_Click(object sender, EventArgs e)
{
if (Uri.IsWellFormedUriString(this.txtSource.Text, UriKind.Absolute))
{
this.Canceled = false;
this.Close();
}
else
{
errorProvider1.Clear();
errorProvider1.SetError(this.txtSource, "URL is not valid!");
}
btnAdd_Click(null, null);
// I want to do this explictly,
// yes I do know I could point Event handler
// to btnAdd_Click from the designer.
}

private void txtSource_KeyDown(object sender, KeyEventArgs e)
Expand All @@ -107,4 +101,4 @@ private void txtSource_KeyDown(object sender, KeyEventArgs e)

#endregion Methods
}
}
}
18 changes: 15 additions & 3 deletions Cygnus/App.config
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="Cygnus.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
<userSettings>
<Cygnus.Properties.Settings>
Expand All @@ -27,4 +27,16 @@
</setting>
</Cygnus.Properties.Settings>
</userSettings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
34 changes: 32 additions & 2 deletions Cygnus/Cygnus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,30 @@
<ApplicationIcon>Cygnus.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Threading.Tasks">
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Threading.Tasks.Extensions">
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Threading.Tasks.Extensions.Desktop">
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="System" />
<Reference Include="System.IO">
<HintPath>..\packages\Microsoft.Bcl.1.1.8\lib\net40\System.IO.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System.Net" />
<Reference Include="System.Runtime">
<HintPath>..\packages\Microsoft.Bcl.1.1.8\lib\net40\System.Runtime.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System.Threading.Tasks">
<HintPath>..\packages\Microsoft.Bcl.1.1.8\lib\net40\System.Threading.Tasks.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System.XML" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Drawing" />
Expand All @@ -46,6 +69,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Extensions.cs" />
<Compile Include="MainForm.APT.cs">
<SubType>Form</SubType>
</Compile>
Expand Down Expand Up @@ -88,6 +112,7 @@
<EmbeddedResource Include="AlertView.resx">
<DependentUpon>AlertView.cs</DependentUpon>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
Expand Down Expand Up @@ -134,11 +159,16 @@
<Content Include="Cygnus.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
<Import Project="..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" />
<Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''">
<Error Condition="!Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" />
<Error Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
</Target>
<!-- 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>
</Project>
112 changes: 112 additions & 0 deletions Cygnus/Extensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
namespace Cygnus.Extensions
{
using System;
using XPTable.Models;

/// <summary>
/// Some String extensions that I find useful.
/// </summary>
public static class StringExtensions
{
/// <summary>
/// Converts string to a proper URL format.
/// </summary>
/// <example>
/// HTtp://Apt.SaURik.com -> http://apt.saurik.com/
/// </example>
/// <param name="str">The string to normalize.</param>
/// <returns>Normalized URL.</returns>
public static string toValidURL(this String str)
{
return new Uri(str).ToString();
}

/// <summary>
/// Makes it possible to check if a string contains something case-insensitively.
/// </summary>
/// <param name="str">The extension string.</param>
/// <param name="toCheck">The string to check.</param>
/// <returns>true if toCheck is in string, otherwise false.</returns>
/// <remarks>
/// Credits: http://stackoverflow.com/a/444818
/// </remarks>
public static bool ContainsIgnoreCase(this String str, string toCheck)
{
return str.IndexOf(toCheck, StringComparison.InvariantCultureIgnoreCase) >= 0;
}

/// <summary>
/// String.IsNullOrWhite"S"pace() shortcut.
/// </summary>
/// <param name="str">The string to test.</param>
/// <returns>True if string contains whitespace, else false.</returns>
public static bool IsNullOrWhitespace(this String str)
{
return String.IsNullOrWhiteSpace(str);
}

/// <summary>
/// String.Format() shortcut that I can't live without.
/// </summary>
/// <param name="str">The string to format.</param>
/// <param name="arg0">Argument #0.</param>
/// <returns>Formatted string.</returns>
public static string FormatWith(this String str, object arg0)
{
return String.Format(str, arg0);
}

/// <summary>
/// String.Format() shortcut that I can't live without.
/// </summary>
/// <param name="str">The string to format.</param>
/// <param name="arg0">Argument #0.</param>
/// <param name="arg1">Argument #1.</param>
/// <returns>Formatted string.</returns>
public static string FormatWith(this String str, object arg0, object arg1)
{
return String.Format(str, arg0, arg1);
}

/// <summary>
/// String.Format() shortcut that I can't live without.
/// </summary>
/// <param name="str">The string to format.</param>
/// <param name="arg0">Argument #0.</param>
/// <param name="arg1">Argument #1.</param>
/// <param name="arg2">Argument #2.</param>
/// <returns>Formatted string.</returns>
public static string FormatWith(this String str, object arg0, object arg1, object arg2)
{
return String.Format(str, arg0, arg1, arg2);
}

/// <summary>
/// String.Format() shortcut that I can't live without.
/// </summary>
/// <param name="str">The string to format.</param>
/// <param name="args">The arguments to send.</param>
/// <returns>Formatted string.</returns>
public static string FormatWith(this String str, params object[] args)
{
return String.Format(str, args);
}
}

public static class XPTableExtensions
{
/// <summary>
/// Row equivalent of XPTable.CellAt() method.
/// Will only work when XPTable.EnableWordWrap is false.
/// </summary>
/// <param name="tableModel">TableModel to extend.</param>
/// <param name="yPosition">Y-Position of Row to check.</param>
/// <returns>The row at given position. Null if it doesn't exist.</returns>
public static Row RowAt(this TableModel tableModel, int yPosition)
{
int rowIndex = yPosition / tableModel.RowHeight;

return tableModel.Rows[rowIndex];
}
}
}
12 changes: 6 additions & 6 deletions Cygnus/LoadingView.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cygnus/LoadingView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ public LoadingView()

#endregion Methods
}
}
}
Loading

0 comments on commit 32e7c49

Please sign in to comment.