Skip to content

Commit

Permalink
Removed UWP related features.
Browse files Browse the repository at this point in the history
  • Loading branch information
wiresock committed Nov 17, 2023
1 parent f9c61cb commit e096a39
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 178 deletions.
38 changes: 0 additions & 38 deletions WireSockUI/Extensions/GitHubExtensions.cs

This file was deleted.

8 changes: 0 additions & 8 deletions WireSockUI/Forms/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,6 @@ private void UpdateState(ConnectionState state, bool notify = true)

if (!_tunnelStateWorker.IsBusy)
_tunnelStateWorker.RunWorkerAsync();

if (notify)
Notifications.Notifications.Notify(Resources.ToastActiveTitle,
string.Format(Resources.ToastActiveMessage, _wiresock.ProfileName));
break;
case ConnectionState.Disconnected:
btnActivate.Text = Resources.ButtonInactive;
Expand Down Expand Up @@ -318,10 +314,6 @@ private void UpdateState(ConnectionState state, bool notify = true)
gbxState.Visible = false;
_tunnelStateWorker.CancelAsync();

if (notify)
Notifications.Notifications.Notify(Resources.ToastInactiveTitle,
string.Format(Resources.ToastInactiveMessage, _wiresock.ProfileName));

_wiresock.Disconnect();
break;
}
Expand Down
95 changes: 0 additions & 95 deletions WireSockUI/Notifications/Notifications.cs

This file was deleted.

32 changes: 0 additions & 32 deletions WireSockUI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ private static void Main()
Environment.Exit(1);
}

CheckVersion();

Application.Run(new FrmMain());
}

Expand Down Expand Up @@ -69,36 +67,6 @@ private static string GetRepository()
return null;
}

/// <summary>
/// Compare the local product version against the latest GitHub repository release tag
/// </summary>
/// <remarks>If auto update is enabled, repository is known and there is a new version, open up a browser window.</remarks>
private static void CheckVersion()
{
if (!Settings.Default.AutoUpdate) return;

try
{
var repository = GetRepository();

if (!string.IsNullOrWhiteSpace(repository))
{
var currentVersion = new Version(Application.ProductVersion);
var latestVersion = GitHubExtensions.GetLatestRelease(repository);

if (currentVersion != null && latestVersion != null && latestVersion > currentVersion)
{
MessageBox.Show(Resources.AppUpdateMessage, Resources.AppUpdateTitle, MessageBoxButtons.OK,
MessageBoxIcon.Information);
OpenBrowser($"https://github.com/{repository}/releases");
}
}
}
catch
{
}
}

/// <summary>
/// Determine if the WireSock library components are installed.
/// </summary>
Expand Down
5 changes: 0 additions & 5 deletions WireSockUI/WireSockUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,10 @@
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.InteropServices.WindowsRuntime" />
<Reference Include="System.Windows.Forms" />
<Reference Include="Windows.Data" />
<Reference Include="Windows.Foundation" />
<Reference Include="Windows.UI" />
</ItemGroup>
<ItemGroup>
<Compile Include="Config\Curve25519.cs" />
<Compile Include="Extensions\BitmapExtensions.cs" />
<Compile Include="Extensions\GitHubExtensions.cs" />
<Compile Include="Extensions\MenuTextExtender.cs">
<SubType>Component</SubType>
</Compile>
Expand Down Expand Up @@ -133,7 +129,6 @@
<Compile Include="Config\Profile.cs" />
<Compile Include="Native\ProcessEntry.cs" />
<Compile Include="Native\WindowsApplicationContext.cs" />
<Compile Include="Notifications\Notifications.cs" />
<Compile Include="Native\ProcessList.cs" />
<Compile Include="Native\CommonControlExtensions.cs" />
<Compile Include="Native\WindowsIcons.cs" />
Expand Down

0 comments on commit e096a39

Please sign in to comment.