Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
ennerperez committed Dec 26, 2017
2 parents 6a280c1 + 85cb254 commit 9315828
Show file tree
Hide file tree
Showing 23 changed files with 449 additions and 284 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.8]
### Changed
- Camera tile view fix
- Missing translations
- Moved to .NET 4.6.2

### Added
- Automatic update checker

## [1.0.7]
### Changed
- Minors bugs fixes
Expand Down
35 changes: 32 additions & 3 deletions CameraToolkit/CameraToolkit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,26 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Toolkit</RootNamespace>
<AssemblyName>CameraToolkit</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<IsWebBootstrapper>false</IsWebBootstrapper>
<TargetFrameworkProfile />
<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>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -24,6 +40,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -33,6 +50,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>App.ico</ApplicationIcon>
Expand All @@ -53,12 +71,16 @@
<HintPath>..\packages\AForge.Video.DirectShow.2.2.5\lib\AForge.Video.DirectShow.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Octokit, Version=0.28.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Octokit.0.28.0\lib\net45\Octokit.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing.Pictograms, Version=1.1.15.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\System.Drawing.Pictograms.1.1.15.0\lib\net40\System.Drawing.Pictograms.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms.Pictograms, Version=1.1.15.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\System.Windows.Forms.Pictograms.1.1.15.0\lib\net40\System.Windows.Forms.Pictograms.dll</HintPath>
<Private>True</Private>
Expand Down Expand Up @@ -126,7 +148,7 @@
<DependentUpon>Messages.resx</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Messages.resx">
<Generator>ResXFileCodeGenerator</Generator>
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Messages.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
Expand Down Expand Up @@ -160,10 +182,17 @@
<Content Include="App.ico" />
<Content Include="ILMergeOrder.txt" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>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=322105. The missing file is {0}.</ErrorText>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\MSBuild.ILMerge.Task.1.0.5\build\MSBuild.ILMerge.Task.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSBuild.ILMerge.Task.1.0.5\build\MSBuild.ILMerge.Task.props'))" />
<Error Condition="!Exists('..\packages\MSBuild.ILMerge.Task.1.0.5\build\MSBuild.ILMerge.Task.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSBuild.ILMerge.Task.1.0.5\build\MSBuild.ILMerge.Task.targets'))" />
Expand Down
32 changes: 20 additions & 12 deletions CameraToolkit/Forms/FormAbout.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Reflection;
using System.Text;
using System.Windows.Forms;

namespace Toolkit.Forms
Expand All @@ -15,30 +12,41 @@ public FormAbout()
{
InitializeComponent();

Icon = Icon.ExtractAssociatedIcon(System.Reflection.Assembly.GetEntryAssembly().Location);
Icon = Icon.ExtractAssociatedIcon(Assembly.GetEntryAssembly().Location);

labelAbout.Text = string.Format(labelAbout.Text,
ApplicationInfo.Description,
ApplicationInfo.Version.ToString(),
ApplicationInfo.CopyrightHolder);
ApplicationInfo.Copyright);

richTextBoxChangeLog.Text = System.Text.Encoding.UTF8.GetString(Properties.Resources.CHANGELOG);
richTextBoxLicense.Text = System.Text.Encoding.UTF8.GetString(Properties.Resources.LICENSE);

pictureBoxIcon.Image = Icon.ToBitmap();
linkLabelWeb.Text = GitHubInfo.Repo;
buttonUpdate.Visible = (GitHubInfo.LatestRelease != null && (GitHubInfo.LatestRelease.GetVersion() > ApplicationInfo.Version));

pictureBoxIcon.Image = Icon.ToBitmap();
}

private void buttonClose_Click(object sender, EventArgs e)
private void ButtonClose_Click(object sender, EventArgs e)
{
this.Close();
}

private void linkLabelWeb_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
private void LinkLabelWeb_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start((sender as LinkLabel).Text);
Process.Start((sender as LinkLabel).Text);
}


private void ButtonUpdate_Click(object sender, EventArgs e)
{
Process.Start(GitHubInfo.Repo);
}

private async void FormAbout_Load(object sender, EventArgs e)
{
if (GitHubInfo.LatestRelease == null) await GitHubInfo.GetLatestReleaseAsync();
buttonUpdate.Visible = (GitHubInfo.LatestRelease != null && (GitHubInfo.LatestRelease.GetVersion() > ApplicationInfo.Version));
}
}
}
}
15 changes: 13 additions & 2 deletions CameraToolkit/Forms/FormAbout.designer.cs

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

3 changes: 3 additions & 0 deletions CameraToolkit/Forms/FormAbout.es.resx
Original file line number Diff line number Diff line change
Expand Up @@ -749,4 +749,7 @@
<data name="$this.Text" xml:space="preserve">
<value>Acerca de...</value>
</data>
<data name="buttonUpdate.Text" xml:space="preserve">
<value>Act&amp;ualizar</value>
</data>
</root>
35 changes: 34 additions & 1 deletion CameraToolkit/Forms/FormAbout.resx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;buttonClose.ZOrder" xml:space="preserve">
<value>4</value>
<value>5</value>
</data>
<data name="labelAbout.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
Expand Down Expand Up @@ -364,6 +364,39 @@
<data name="&gt;&gt;tabControl1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="buttonUpdate.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="buttonUpdate.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonUpdate.Location" type="System.Drawing.Point, System.Drawing">
<value>456, 403</value>
</data>
<data name="buttonUpdate.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 26</value>
</data>
<data name="buttonUpdate.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="buttonUpdate.Text" xml:space="preserve">
<value>&amp;Update</value>
</data>
<data name="buttonUpdate.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="&gt;&gt;buttonUpdate.Name" xml:space="preserve">
<value>buttonUpdate</value>
</data>
<data name="&gt;&gt;buttonUpdate.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonUpdate.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;buttonUpdate.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
Expand Down
Loading

0 comments on commit 9315828

Please sign in to comment.