Updated for SDRSharp 1811

This commit is contained in:
EnderIce2 2021-05-10 13:22:46 +03:00
parent 0b51536839
commit bf44bd1076
3 changed files with 8 additions and 12 deletions

View File

@ -20,7 +20,7 @@ namespace EnderIce2.SDRSharpPlugin
bool RPCalreadyLoaded;
private ISharpControl _control;
bool playedBefore;
private SDRSharp.FrontEnds.SpyServer.ControllerPanel controllerPanel;
//private SDRSharp.FrontEnds.SpyServer.ControllerPanel controllerPanel;
private TopWindowMessages windowMessages;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0044:Add readonly modifier", Justification = "<Pending>")]
private RichPresence presence = new RichPresence()
@ -43,7 +43,6 @@ namespace EnderIce2.SDRSharpPlugin
public void Initialize(ISharpControl control)
{
IConfigurationPanelProvider configurationPanelProvider;
if (Utils.GetBooleanSetting("ShowWelcomePage", true))
{
new WelcomeForm().ShowDialog();
@ -132,7 +131,7 @@ namespace EnderIce2.SDRSharpPlugin
try
{
configurationPanelProvider = (IConfigurationPanelProvider)_control.Source;
controllerPanel = (SDRSharp.FrontEnds.SpyServer.ControllerPanel)configurationPanelProvider.Gui;
//controllerPanel = (SDRSharp.FrontEnds.SpyServer.ControllerPanel)configurationPanelProvider.Gui;
}
catch (Exception ex)
{
@ -229,9 +228,9 @@ namespace EnderIce2.SDRSharpPlugin
LogWriter.WriteToFile("Setting secret...");
try
{
string sdr_url = "sdr://" + controllerPanel.Host + ":" + controllerPanel.Port + "/";
LogWriter.WriteToFile(sdr_url);
presence.Secrets.JoinSecret = sdr_url;
//string sdr_url = "sdr://" + controllerPanel.Host + ":" + controllerPanel.Port + "/";
//LogWriter.WriteToFile(sdr_url);
//presence.Secrets.JoinSecret = sdr_url;
}
catch (Exception ex)
{

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.0.1")]
[assembly: AssemblyFileVersion("1.0.0.1")]

View File

@ -46,10 +46,6 @@
<HintPath>packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="SDRSharp, Version=1.0.0.1765, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Downloads\sdrsharp-x86\SDRSharp.exe</HintPath>
</Reference>
<Reference Include="SDRSharp.Common, Version=0.0.0.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\sdrsharp-x86\SDRSharp.Common.dll</HintPath>
@ -65,6 +61,7 @@
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Runtime" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />