diff --git a/EX/VNC.xaml b/EX/VNC.xaml
index 231b05c..2f2c371 100644
--- a/EX/VNC.xaml
+++ b/EX/VNC.xaml
@@ -5,14 +5,15 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SunlightCentralizedControlManagement_SCCM_.EX"
xmlns:lang="clr-namespace:SunlightCentralizedControlManagement_SCCM_.Properties"
+ xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
xmlns:vnc="clr-namespace:VncSharp;assembly=VncSharp"
mc:Ignorable="d" Loaded="Window_Loaded"
Title="VNC" Height="450" Width="800">
-
+
-
+
diff --git a/EX/VNC.xaml.cs b/EX/VNC.xaml.cs
index e6b93fe..50f0e93 100644
--- a/EX/VNC.xaml.cs
+++ b/EX/VNC.xaml.cs
@@ -25,7 +25,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.EX
{
string host = "127.0.0.1"; // 替换为你的 VNC 服务器地址
int port = 5901; // 替换为你的 VNC 服务器端口
- string password = " "; // 替换为你的 VNC 服务器密码
+ string password = "123456"; // 替换为你的 VNC 服务器密码
public VNC()
{
@@ -70,7 +70,8 @@ namespace SunlightCentralizedControlManagement_SCCM_.EX
public void Parameter(object IP,object PROT,object USER ,object PASSWD)
{// host = IP.ToString();
//port =Convert.ToInt16( PROT);
- password = PASSWD.ToString(); }
+ // password = PASSWD.ToString();
+ }
/* private Window_Loaded(object sender, RoutedEventArgs e)
{
@@ -85,7 +86,9 @@ namespace SunlightCentralizedControlManagement_SCCM_.EX
if (!vnc.IsConnected)
{
vnc.VncPort = port;
- vnc.Connect(host, false, true);
+ vnc.GetPassword();
+ vnc.Connect(host, true, true);
+ // vnc.Authenticate(password);
//System.Windows.MessageBox.Show("VNC 连接成功!");
}
diff --git a/SunlightCentralizedControlManagement_SCCM_.csproj b/SunlightCentralizedControlManagement_SCCM_.csproj
index ccbea34..6443586 100644
--- a/SunlightCentralizedControlManagement_SCCM_.csproj
+++ b/SunlightCentralizedControlManagement_SCCM_.csproj
@@ -93,6 +93,7 @@
+