public RemoteDeskForm(string ownerID, string nickName, RemoteHelpStyle style, bool remoteControl) { InitializeComponent(); this.RemoteHelpEnded += delegate { }; this.isRemoteControl = remoteControl; this.owner = ownerID; this.ownerName = nickName; this.remoteDesktopStyle = style; this.desktopConnector1.Visible = false; this.desktopConnector1.WatchingOnly = false; //可以操控桌面 this.desktopConnector1.ConnectEnded += new CbGeneric <ConnectResult>(desktopConnector1_ConnectEnded); this.desktopConnector1.Disconnected += new CbGeneric <ConnectorDisconnectedType>(desktopConnector1_Disconnected); if (!remoteControl) { this.Text = string.Format("远程协助{0} - {1}", this.remoteDesktopStyle == RemoteHelpStyle.PartScreen ? "(指定屏幕区域)" : "", this.ownerName); this.Cursor = Cursors.WaitCursor; this.skinLabel_tip.Visible = false; this.desktopConnector1.BeginConnect(ownerID); } else { this.Text = string.Format("远程控制 - {0}", this.ownerName); this.skinLabel_msg.Visible = false; } }
public RemoteHelpForm(string ownerID, string nickName, RemoteHelpStyle style) { InitializeComponent(); this.CanResize = true; this.RemoteHelpEnded += delegate { }; this.ownerName = nickName; this.Text = string.Format("远程协助{0} - {1}", this.remoteDesktopStyle == RemoteHelpStyle.PartScreen ? "(指定屏幕区域)" : "", this.ownerName); this.Cursor = Cursors.WaitCursor; this.desktopConnector1.Visible = false; this.desktopConnector1.WatchingOnly = false; //可以操控桌面 this.desktopConnector1.ConnectEnded += new CbGeneric <ConnectResult>(desktopConnector1_ConnectEnded); this.desktopConnector1.Disconnected += new CbGeneric <ConnectorDisconnectedType>(desktopConnector1_Disconnected); this.desktopConnector1.BeginConnect(ownerID); }
public RemoteHelpForm(string ownerID, string nickName ,RemoteHelpStyle style) { InitializeComponent(); this.CanResize = true; this.RemoteHelpEnded += delegate { }; this.ownerName = nickName; this.Text = string.Format("远程协助{0} - {1}", this.remoteDesktopStyle == RemoteHelpStyle.PartScreen ? "(指定屏幕区域)" : "", this.ownerName); this.Cursor = Cursors.WaitCursor; this.desktopConnector1.Visible = false; this.desktopConnector1.WatchingOnly = false; //可以操控桌面 this.desktopConnector1.ConnectEnded += new CbGeneric<ConnectResult>(desktopConnector1_ConnectEnded); this.desktopConnector1.Disconnected += new CbGeneric<ConnectorDisconnectedType>(desktopConnector1_Disconnected); this.desktopConnector1.BeginConnect(ownerID); }
public void SetRemoteDesktopStyle(RemoteHelpStyle style) { this.remoteDesktopStyle = style; }
public void SetRemoteDesktopStyle(RemoteHelpStyle style) { this.remoteDesktopStyle = style; this.skinLabel1.Text = "对方向您请求远程协助 . . ."; }