Skip to content

Commit

Permalink
Merge pull request #8 from fediachov/master
Browse files Browse the repository at this point in the history
Update form about, new icons, .net framework 4.5
  • Loading branch information
RadiumByte authored Apr 3, 2020
2 parents a6d4e91 + 7f9a2a3 commit 1f7c583
Show file tree
Hide file tree
Showing 12 changed files with 1,050 additions and 465 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![SevenConverter](https://raw.githubusercontent.com/SevenbytesSoftware/SevenConverter/master/assets/SevenConverter.PNG)

**Seven Converter** is a simple tool for converting media files into various formats. The program is distributed for free under the Apache 2.0 license. It uses an open source libraries FFMPEG (build by http://ffmpeg.zeranoe.com/). The main goal of the program was to create an easy-to-use interface over FFMPEG console utilities with a minimum of additional settings. The project used icons from the Open Icon Library.
**Seven Converter** is a simple tool for converting media files into various formats. The program is distributed for free under the Apache 2.0 license. It uses an open source libraries FFMPEG (build by http://ffmpeg.zeranoe.com/). The main goal of the program was to create an easy-to-use interface over FFMPEG console utilities with a minimum of additional settings.

## Features

Expand Down
9 changes: 9 additions & 0 deletions SevenConverter/Forms/About.Designer.cs

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

46 changes: 45 additions & 1 deletion SevenConverter/Forms/About.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ partial class About : Form
{
#region Public Constructors

private const string latestURL = "https://github.com/SevenbytesSoftware/SevenConverter/releases/latest";

public About()
{
InitializeComponent();
Expand Down Expand Up @@ -105,9 +107,51 @@ public string AssemblyVersion

private void LinkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("explorer.exe", linkLabel1.Text);
Process.Start(linkLabel1.Text);
}

#endregion Private Methods

private void btnUpdates_Click(object sender, EventArgs e)
{
Update update = new Update(latestURL);
bool checkResult = false;
try
{
try
{
this.Cursor = Cursors.WaitCursor;
checkResult = update.Check(
AssemblyVersion.Substring(0, AssemblyVersion.LastIndexOf('.')));
}
finally
{
this.Cursor = Cursors.Default;
}

if (checkResult)
{
MessageBox.Show(
Properties.strings.SevenConverterIsUpToDate,
Properties.strings.UpToDate);
}
else
{
if (MessageBox.Show(
String.Format(Properties.strings.SevenConverterIsAvailable, update.AvailableVersion),
String.Format(Properties.strings.NewVersionIsAvailable, update.AvailableVersion),
MessageBoxButtons.YesNo,
MessageBoxIcon.Information,
MessageBoxDefaultButton.Button1) == DialogResult.Yes)
{
Process.Start(latestURL);
}
}
}
catch (Exception exception)
{
MessageBox.Show(exception.Message);
}
}
}
}
Loading

0 comments on commit 1f7c583

Please sign in to comment.