mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
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:
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user