Permalink
Browse files

Added Scaled and ViewOnly get/set properties to RemoteDesktop control.

  • Loading branch information...
Riley McArdle
Riley McArdle committed Jan 17, 2010
1 parent e8847b0 commit 976c2478f4a349f563130c8e2ad8000c25d9b83e
Showing with 46 additions and 7 deletions.
  1. +4 −0 CHANGELOG.txt
  2. +7 −6 VncSharp/Properties/AssemblyInfo.cs
  3. +34 −0 VncSharp/RemoteDesktop.cs
  4. +1 −1 VncSharp/VncSharp.csproj
View
@@ -1,6 +1,10 @@
Change Log
----------
+* Version 1.1
+
+- Added Scaled and ViewOnly get/set properties to RemoteDesktop control
+
* Version 1.0
- Added ZRLE (Gr�goire Pailler) using the BSD licensed zlib.NET version 1.04 (http://www.componentace.com/zlib_NET.htm)
@@ -1,13 +1,14 @@
using System.Reflection;
using System.Runtime.CompilerServices;
-[assembly: AssemblyTitle("VncSharp")]
+[assembly: AssemblyTitle("VncSharpNG")]
[assembly: AssemblyDescription(".NET VNC Client Library")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("David Humphrey")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("GPL 2")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("VncSharpNG")]
+[assembly: AssemblyCopyright("Copyright © 2004-2010 David Humphrey, Riley McArdle")]
[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
+[assembly: AssemblyCulture("")]
-[assembly: AssemblyVersion("1.0.0")]
+[assembly: AssemblyVersion("1.1.0")]
+[assembly: AssemblyFileVersionAttribute("1.1.0")]
View
@@ -395,6 +395,23 @@ public void SetInputMode(bool viewOnly)
vnc.SetInputMode(viewOnly);
}
+ [DefaultValue(false)]
+ [Description("True if view-only mode is desired (no mouse/keyboard events will be sent)")]
+ /// <summary>
+ /// True if view-only mode is desired (no mouse/keyboard events will be sent).
+ /// </summary>
+ public bool ViewOnly
+ {
+ get
+ {
+ return vnc.IsViewOnly;
+ }
+ set
+ {
+ SetInputMode(value);
+ }
+ }
+
/// <summary>
/// Set the remote desktop's scaling mode.
/// </summary>
@@ -413,6 +430,23 @@ public void SetScalingMode(bool scaled)
Invalidate();
}
+ [DefaultValue(false)]
+ [Description("Determines whether to use desktop scaling or leave it normal and clip")]
+ /// <summary>
+ /// Determines whether to use desktop scaling or leave it normal and clip.
+ /// </summary>
+ public bool Scaled
+ {
+ get
+ {
+ return desktopPolicy.GetType() == typeof(VncScaledDesktopPolicy);
+ }
+ set
+ {
+ SetScalingMode(value);
+ }
+ }
+
/// <summary>
/// After protocol-level initialization and connecting is complete, the local GUI objects have to be set-up, and requests for updates to the remote host begun.
/// </summary>
View
@@ -8,7 +8,7 @@
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>VncSharp</RootNamespace>
- <AssemblyName>VncSharp</AssemblyName>
+ <AssemblyName>VncSharpNG</AssemblyName>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>VncSharpKey.snk</AssemblyOriginatorKeyFile>
<ApplicationIcon>vncviewer.ico</ApplicationIcon>

0 comments on commit 976c247

Please sign in to comment.