mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Remove more announcement stuff
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace mRemoteNG.App.Update
|
||||
{
|
||||
public class AnnouncementInfo
|
||||
{
|
||||
#region Public Properties
|
||||
public bool IsValid { get; set; }
|
||||
public string Name { get; set; }
|
||||
public Uri Address { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
public static AnnouncementInfo FromString(string input)
|
||||
{
|
||||
AnnouncementInfo newInfo = new AnnouncementInfo();
|
||||
if (string.IsNullOrEmpty(input))
|
||||
{
|
||||
newInfo.IsValid = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
UpdateFile updateFile = new UpdateFile(input);
|
||||
newInfo.Name = updateFile.GetString("Name");
|
||||
newInfo.Address = updateFile.GetUri("URL");
|
||||
newInfo.IsValid = true;
|
||||
}
|
||||
return newInfo;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -116,7 +116,6 @@
|
||||
<Compile Include="App\Shutdown.cs" />
|
||||
<Compile Include="App\Startup.cs" />
|
||||
<Compile Include="App\SupportedCultures.cs" />
|
||||
<Compile Include="App\Update\AnnouncementInfo.cs" />
|
||||
<Compile Include="App\Update\AppUpdater.cs" />
|
||||
<Compile Include="App\Export.cs" />
|
||||
<Compile Include="App\Import.cs" />
|
||||
|
||||
Reference in New Issue
Block a user