Removed VNC Smart Size feature. This allows the use of VNCSharp via nuget instead of distributing our own version of it)

This commit is contained in:
Faryan Rezagholi
2021-08-15 16:32:31 +02:00
parent 6cbe1c92d5
commit 745e402da9
2 changed files with 1 additions and 51 deletions

View File

@@ -11,24 +11,8 @@ using mRemoteNG.UI.Forms;
namespace mRemoteNG.Connection.Protocol.VNC
{
public class ProtocolVNC : ProtocolBase, ISupportsViewOnly
public class ProtocolVNC : ProtocolBase
{
#region Properties
public bool SmartSize
{
get => _vnc.Scaled;
set => _vnc.Scaled = value;
}
public bool ViewOnly
{
get => _vnc.ViewOnly;
set => _vnc.ViewOnly = value;
}
#endregion
#region Private Declarations
private VncSharp.RemoteDesktop _vnc;
@@ -123,36 +107,6 @@ namespace mRemoteNG.Connection.Protocol.VNC
}
}
public void ToggleSmartSize()
{
try
{
SmartSize = !SmartSize;
RefreshScreen();
}
catch (Exception ex)
{
Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg,
Language.VncToggleSmartSizeFailed + Environment.NewLine +
ex.Message, true);
}
}
public void ToggleViewOnly()
{
try
{
ViewOnly = !ViewOnly;
}
catch (Exception ex)
{
Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg,
Language.VncToggleViewOnlyFailed + Environment.NewLine +
ex.Message, true);
}
}
public void StartChat()
{
throw new NotImplementedException();

View File

@@ -393,7 +393,6 @@ namespace mRemoteNG.UI.Window
cmenTabStartChat.Visible = true;
cmenTabRefreshScreen.Visible = true;
cmenTabTransferFile.Visible = false;
cmenTabSmartSize.Checked = vnc.SmartSize;
}
else
{
@@ -435,9 +434,6 @@ namespace mRemoteNG.UI.Window
case RdpProtocol6 rdp:
rdp.ToggleSmartSize();
break;
case ProtocolVNC vnc:
vnc.ToggleSmartSize();
break;
}
}
catch (Exception ex)