Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Belim committed Jul 15, 2021
1 parent 62af630 commit 7077633
Show file tree
Hide file tree
Showing 15 changed files with 2,100 additions and 791 deletions.
213 changes: 42 additions & 171 deletions src/RSV/EmbeddedResource.Designer.cs

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

10 changes: 2 additions & 8 deletions src/RSV/EmbeddedResource.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,11 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="amdsupport" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\amdsupport.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="bypass" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\bypass.reg;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="intelsupport" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\intelsupport.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="qualcommsupport" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\qualcommsupport.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
<data name="supportedCPU" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\supportedCPU.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="undo_bypass" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\undo_bypass.reg;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
Expand Down
26 changes: 24 additions & 2 deletions src/RSV/Helpers/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ public static void AppUpdate()
}
else // new version
{
if (MessageBox.Show("A new app version " + LatestVersion + " is available.\nDo you want to goto the Github update page?" + Environment.NewLine + versionContent, Locales.Locale.updateTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) // New release available!
if (MessageBox.Show("A new app version " + LatestVersion + " is available.\nDo you want to goto the Github update page?" + Environment.NewLine + versionContent, Locales.Locale.infoUpdate, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) // New release available!
{
Process.Start(Strings.Uri.GitUpdateRepo + LatestVersion);
}
}
}
catch { MessageBox.Show("App update check failed...", "", MessageBoxButtons.OK, MessageBoxIcon.Error); }
catch
{ MessageBox.Show(Locales.Locale.errorUpdate + Environment.NewLine + Locales.Locale.errorInternet); }
}

public static String FormatBytes(long byteCount)
Expand All @@ -61,5 +62,26 @@ public static String FormatBytes(long byteCount)
double num = Math.Round(bytes / Math.Pow(1024, place), 1);
return (Math.Sign(byteCount) * num).ToString() + suf[place];
}

/// <summary>
/// Launch Urls in richSumming control
/// </summary>
/// <param name="url"></param>
public static void LaunchUri(string url)
{
if (IsHttpURL(url)) Process.Start(url);
}

/// <summary>
/// Check Urls in richSumming control
/// </summary>
/// <param name="url"></param>
/// <returns></returns>
public static bool IsHttpURL(string url)
{
return
((!string.IsNullOrWhiteSpace(url)) &&
(url.ToLower().StartsWith("http")));
}
}
}
Loading

0 comments on commit 7077633

Please sign in to comment.