diff --git a/Loginform.Designer.cs b/Loginform.Designer.cs index b30c8affa72371e089942d81dd035bdf5bc12f3f..ce6cc03219cf66f4a809f1b5c3a0cd617dd72261 100644 --- a/Loginform.Designer.cs +++ b/Loginform.Designer.cs @@ -54,7 +54,6 @@ this.label2.Size = new System.Drawing.Size(62, 12); this.label2.TabIndex = 1; this.label2.Text = "Password"; - this.label2.Click += new System.EventHandler(this.label2_Click); // // Email_txt // @@ -97,7 +96,6 @@ this.MinimizeBox = false; this.Name = "Loginform"; this.Text = "LoginForm"; - this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Loginform_KeyDown); this.ResumeLayout(false); this.PerformLayout(); diff --git a/Loginform.cs b/Loginform.cs index 178588a96bd2459f7134715127ff01bc3f2ca429..604b63cac4eb05dd2f8a5f65a96d24f234c4aa0c 100644 --- a/Loginform.cs +++ b/Loginform.cs @@ -36,11 +36,6 @@ namespace RDPClient InitializeComponent(); } - private void label2_Click(object sender, EventArgs e) - { - - } - /*private void Login_button_Click(object sender, EventArgs e) { //등록된 아디 비번, khr9603@naver.com, 1234 @@ -88,11 +83,6 @@ namespace RDPClient }*/ - private void Loginform_KeyDown(object sender, KeyEventArgs e) - { - - } - private void PW_txt_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) @@ -130,7 +120,6 @@ namespace RDPClient Application.Exit(); } - /*if (ID == "khr9603" && PW == "1234") { this.Hide(); diff --git a/RDPClient.Designer.cs b/RDPClient.Designer.cs index 6d58006fe2c6c8242b714850c7cbec0a5296ec8a..ba856d30bba456f9fd5d1a81e0d7ec5cf215bd51 100644 --- a/RDPClient.Designer.cs +++ b/RDPClient.Designer.cs @@ -33,6 +33,9 @@ this.VMListView = new System.Windows.Forms.ListView(); this.Connect_button = new System.Windows.Forms.Button(); this.InformationBox = new System.Windows.Forms.GroupBox(); + this.start_stop_btn = new System.Windows.Forms.Button(); + this.Status_label = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); this.CPU_label = new System.Windows.Forms.Label(); this.Memory_label = new System.Windows.Forms.Label(); this.OS_label = new System.Windows.Forms.Label(); @@ -40,15 +43,12 @@ this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.Close_button = new System.Windows.Forms.Button(); - this.RDPContainer = new System.Windows.Forms.GroupBox(); - this.label5 = new System.Windows.Forms.Label(); - this.Status_label = new System.Windows.Forms.Label(); - this.start_stop_btn = new System.Windows.Forms.Button(); this.axMsRdpClient9NotSafeForScripting1 = new AxMSTSCLib.AxMsRdpClient9NotSafeForScripting(); + this.RDPContainer = new System.Windows.Forms.GroupBox(); this.VMListBox.SuspendLayout(); this.InformationBox.SuspendLayout(); - this.RDPContainer.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.axMsRdpClient9NotSafeForScripting1)).BeginInit(); + this.RDPContainer.SuspendLayout(); this.SuspendLayout(); // // VMListBox @@ -75,6 +75,7 @@ // // Connect_button // + this.Connect_button.Enabled = false; this.Connect_button.Location = new System.Drawing.Point(276, 308); this.Connect_button.Name = "Connect_button"; this.Connect_button.Size = new System.Drawing.Size(75, 23); @@ -101,6 +102,33 @@ this.InformationBox.TabStop = false; this.InformationBox.Text = "Information"; // + // start_stop_btn + // + this.start_stop_btn.Location = new System.Drawing.Point(134, 157); + this.start_stop_btn.Name = "start_stop_btn"; + this.start_stop_btn.Size = new System.Drawing.Size(40, 23); + this.start_stop_btn.TabIndex = 8; + this.start_stop_btn.Text = "시작"; + this.start_stop_btn.UseVisualStyleBackColor = true; + this.start_stop_btn.Click += new System.EventHandler(this.start_stop_btn_Click); + // + // Status_label + // + this.Status_label.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.Status_label.Location = new System.Drawing.Point(65, 157); + this.Status_label.Name = "Status_label"; + this.Status_label.Size = new System.Drawing.Size(63, 23); + this.Status_label.TabIndex = 7; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(6, 158); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(29, 12); + this.label5.TabIndex = 6; + this.label5.Text = "상태"; + // // CPU_label // this.CPU_label.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; @@ -116,7 +144,6 @@ this.Memory_label.Name = "Memory_label"; this.Memory_label.Size = new System.Drawing.Size(100, 22); this.Memory_label.TabIndex = 4; - this.Memory_label.Click += new System.EventHandler(this.Memory_label_Click); // // OS_label // @@ -163,46 +190,6 @@ this.Close_button.UseVisualStyleBackColor = true; this.Close_button.Click += new System.EventHandler(this.close_button_Click_1); // - // RDPContainer - // - this.RDPContainer.AutoSize = true; - this.RDPContainer.Controls.Add(this.axMsRdpClient9NotSafeForScripting1); - this.RDPContainer.Location = new System.Drawing.Point(0, 0); - this.RDPContainer.Name = "RDPContainer"; - this.RDPContainer.Size = new System.Drawing.Size(495, 278); - this.RDPContainer.TabIndex = 7; - this.RDPContainer.TabStop = false; - this.RDPContainer.Text = "RDPContainer"; - this.RDPContainer.Visible = false; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(6, 158); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(29, 12); - this.label5.TabIndex = 6; - this.label5.Text = "상태"; - this.label5.Click += new System.EventHandler(this.Status_label_Click); - // - // Status_label - // - this.Status_label.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.Status_label.Location = new System.Drawing.Point(65, 157); - this.Status_label.Name = "Status_label"; - this.Status_label.Size = new System.Drawing.Size(63, 23); - this.Status_label.TabIndex = 7; - // - // start_stop_btn - // - this.start_stop_btn.Location = new System.Drawing.Point(134, 157); - this.start_stop_btn.Name = "start_stop_btn"; - this.start_stop_btn.Size = new System.Drawing.Size(40, 23); - this.start_stop_btn.TabIndex = 8; - this.start_stop_btn.Text = "시작"; - this.start_stop_btn.UseVisualStyleBackColor = true; - this.start_stop_btn.Click += new System.EventHandler(this.start_stop_btn_Click); - // // axMsRdpClient9NotSafeForScripting1 // this.axMsRdpClient9NotSafeForScripting1.Dock = System.Windows.Forms.DockStyle.Fill; @@ -210,12 +197,23 @@ this.axMsRdpClient9NotSafeForScripting1.Location = new System.Drawing.Point(3, 17); this.axMsRdpClient9NotSafeForScripting1.Name = "axMsRdpClient9NotSafeForScripting1"; this.axMsRdpClient9NotSafeForScripting1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMsRdpClient9NotSafeForScripting1.OcxState"))); - this.axMsRdpClient9NotSafeForScripting1.Size = new System.Drawing.Size(489, 258); + this.axMsRdpClient9NotSafeForScripting1.Size = new System.Drawing.Size(519, 282); this.axMsRdpClient9NotSafeForScripting1.TabIndex = 6; this.axMsRdpClient9NotSafeForScripting1.Visible = false; - this.axMsRdpClient9NotSafeForScripting1.OnConnecting += new System.EventHandler(this.axMsRdpClient9NotSafeForScripting1_OnConnecting); this.axMsRdpClient9NotSafeForScripting1.OnDisconnected += new AxMSTSCLib.IMsTscAxEvents_OnDisconnectedEventHandler(this.axMsRdpClient9NotSafeForScripting1_OnDisconnected); // + // RDPContainer + // + this.RDPContainer.AutoSize = true; + this.RDPContainer.Controls.Add(this.axMsRdpClient9NotSafeForScripting1); + this.RDPContainer.Location = new System.Drawing.Point(0, 0); + this.RDPContainer.Name = "RDPContainer"; + this.RDPContainer.Size = new System.Drawing.Size(525, 302); + this.RDPContainer.TabIndex = 7; + this.RDPContainer.TabStop = false; + this.RDPContainer.Text = "RDPContainer"; + this.RDPContainer.Visible = false; + // // RDPClient // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); @@ -230,12 +228,11 @@ this.Name = "RDPClient"; this.Text = "RDP Client"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.RDPClient_FormClosing); - this.Load += new System.EventHandler(this.RDPClient_Load); this.VMListBox.ResumeLayout(false); this.InformationBox.ResumeLayout(false); this.InformationBox.PerformLayout(); - this.RDPContainer.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.axMsRdpClient9NotSafeForScripting1)).EndInit(); + this.RDPContainer.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); @@ -254,11 +251,11 @@ private System.Windows.Forms.Label label2; private System.Windows.Forms.ListView VMListView; private System.Windows.Forms.Button Close_button; - private System.Windows.Forms.GroupBox RDPContainer; - private AxMSTSCLib.AxMsRdpClient9NotSafeForScripting axMsRdpClient9NotSafeForScripting1; private System.Windows.Forms.Label label5; private System.Windows.Forms.Label Status_label; private System.Windows.Forms.Button start_stop_btn; + private AxMSTSCLib.AxMsRdpClient9NotSafeForScripting axMsRdpClient9NotSafeForScripting1; + private System.Windows.Forms.GroupBox RDPContainer; } } diff --git a/RDPClient.cs b/RDPClient.cs index 2848b907e3d3c8169e9e10013eb6cc9b3161b5e2..be4f4edfe902e23dbee50a84a456143bcdcde527 100644 --- a/RDPClient.cs +++ b/RDPClient.cs @@ -40,7 +40,6 @@ namespace RDPClient } - public void client_OnConnecting(object sender, EventArgs e) { AxMsRdpClient9NotSafeForScripting client = sender as AxMsRdpClient9NotSafeForScripting; @@ -48,12 +47,6 @@ namespace RDPClient private void Connect_button_Click(object sender, EventArgs e) { - /*string IP_address = "20.41.83.165"; - - string server = IP_address; - int port = 3389; - string userID = "Halim"; - string password = "dldbfrhr@2eE";*/ string server; int port = 3389; string userID; @@ -96,13 +89,7 @@ namespace RDPClient axMsRdpClient9NotSafeForScripting1.Connect(); } } - - - } - private void RDPClient_Load(object sender, EventArgs e) - { - } private void close_button_Click_1(object sender, EventArgs e) @@ -115,11 +102,6 @@ namespace RDPClient Application.Exit(); } - private void axMsRdpClient9NotSafeForScripting1_OnConnecting(object sender, EventArgs e) - { - - } - static string CallApi(string url, string token) { ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; @@ -208,16 +190,6 @@ namespace RDPClient } } - private void Status_label_Click(object sender, EventArgs e) - { - - } - - private void Memory_label_Click(object sender, EventArgs e) - { - - } - private void axMsRdpClient9NotSafeForScripting1_OnDisconnected(object sender, IMsTscAxEvents_OnDisconnectedEvent e) { this.Hide(); diff --git a/bin/Debug/AxInterop.MSTSCLib.dll b/bin/Debug/AxInterop.MSTSCLib.dll index 0fccc6f5200e9bfe3030a4b42cf19ea9edbc0552..17514e241ad6f2819e3f894eceb64751fbed5393 100644 Binary files a/bin/Debug/AxInterop.MSTSCLib.dll and b/bin/Debug/AxInterop.MSTSCLib.dll differ diff --git a/bin/Debug/Interop.MSTSCLib.dll b/bin/Debug/Interop.MSTSCLib.dll index 7700dc503a63d85f2dd1877162df963fb9d3c0e8..f6bb55f370f088a6839832e023b9edaac7fdc8f3 100644 Binary files a/bin/Debug/Interop.MSTSCLib.dll and b/bin/Debug/Interop.MSTSCLib.dll differ diff --git a/bin/Debug/RDPClient.exe b/bin/Debug/RDPClient.exe index 2b36ca23cbcb8c1cf95d6d3714b615ca90a1acdc..7ef854cb4f6d060074ef8376fdd50e3035c4bc51 100644 Binary files a/bin/Debug/RDPClient.exe and b/bin/Debug/RDPClient.exe differ diff --git a/bin/Debug/RDPClient.pdb b/bin/Debug/RDPClient.pdb index b8fa5e000a94c00d9d233dfdd9422000dda66939..550a731d0527ec4818f11bdbb499cab876475a75 100644 Binary files a/bin/Debug/RDPClient.pdb and b/bin/Debug/RDPClient.pdb differ diff --git a/bin/Release/RDPClient.exe b/bin/Release/RDPClient.exe index 08361da6f2c6e36616e4e65f847a1821e3bc91ae..6cea27d035cfc0a4fa755d23a4eff983833645ad 100644 Binary files a/bin/Release/RDPClient.exe and b/bin/Release/RDPClient.exe differ diff --git a/bin/Release/RDPClient.pdb b/bin/Release/RDPClient.pdb index f4fa59072ad6486dee18bb332d4b06817b54f2c5..efe755bbbed0676c0c7bdc2b28ab829f66be5a2d 100644 Binary files a/bin/Release/RDPClient.pdb and b/bin/Release/RDPClient.pdb differ diff --git a/obj/Debug/AxInterop.MSTSCLib.dll b/obj/Debug/AxInterop.MSTSCLib.dll index 0fccc6f5200e9bfe3030a4b42cf19ea9edbc0552..17514e241ad6f2819e3f894eceb64751fbed5393 100644 Binary files a/obj/Debug/AxInterop.MSTSCLib.dll and b/obj/Debug/AxInterop.MSTSCLib.dll differ diff --git a/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 32b556a506f9d5e7eea33eae5145010a63cc6f52..3d97fefe2450940b27f3d37a62400f76fc69b1ab 100644 Binary files a/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/obj/Debug/Interop.MSTSCLib.dll b/obj/Debug/Interop.MSTSCLib.dll index 7700dc503a63d85f2dd1877162df963fb9d3c0e8..f6bb55f370f088a6839832e023b9edaac7fdc8f3 100644 Binary files a/obj/Debug/Interop.MSTSCLib.dll and b/obj/Debug/Interop.MSTSCLib.dll differ diff --git a/obj/Debug/RDPClient.csproj.GenerateResource.cache b/obj/Debug/RDPClient.csproj.GenerateResource.cache index 4266481da7bd2417ebbf3c202ff534017da3425c..53475ffdfc121aa67aaa8078acfea283a3fa2314 100644 Binary files a/obj/Debug/RDPClient.csproj.GenerateResource.cache and b/obj/Debug/RDPClient.csproj.GenerateResource.cache differ diff --git a/obj/Debug/RDPClient.csprojAssemblyReference.cache b/obj/Debug/RDPClient.csprojAssemblyReference.cache index 7559238100fd55ee1d0c4edf6e7b3bbb77677f6e..917d60ada8abc4505846d09e14bdf3c5021166d0 100644 Binary files a/obj/Debug/RDPClient.csprojAssemblyReference.cache and b/obj/Debug/RDPClient.csprojAssemblyReference.cache differ diff --git a/obj/Debug/RDPClient.exe b/obj/Debug/RDPClient.exe index 2b36ca23cbcb8c1cf95d6d3714b615ca90a1acdc..7ef854cb4f6d060074ef8376fdd50e3035c4bc51 100644 Binary files a/obj/Debug/RDPClient.exe and b/obj/Debug/RDPClient.exe differ diff --git a/obj/Debug/RDPClient.pdb b/obj/Debug/RDPClient.pdb index b8fa5e000a94c00d9d233dfdd9422000dda66939..550a731d0527ec4818f11bdbb499cab876475a75 100644 Binary files a/obj/Debug/RDPClient.pdb and b/obj/Debug/RDPClient.pdb differ diff --git a/obj/Release/RDPClient.csproj.GenerateResource.cache b/obj/Release/RDPClient.csproj.GenerateResource.cache index b81a8ba31f2e25749d1ea61900a41a5a9cc36214..9e0491465cf6caeeba9f557178e23d90782fa137 100644 Binary files a/obj/Release/RDPClient.csproj.GenerateResource.cache and b/obj/Release/RDPClient.csproj.GenerateResource.cache differ diff --git a/obj/Release/RDPClient.exe b/obj/Release/RDPClient.exe index 08361da6f2c6e36616e4e65f847a1821e3bc91ae..6cea27d035cfc0a4fa755d23a4eff983833645ad 100644 Binary files a/obj/Release/RDPClient.exe and b/obj/Release/RDPClient.exe differ diff --git a/obj/Release/RDPClient.pdb b/obj/Release/RDPClient.pdb index f4fa59072ad6486dee18bb332d4b06817b54f2c5..efe755bbbed0676c0c7bdc2b28ab829f66be5a2d 100644 Binary files a/obj/Release/RDPClient.pdb and b/obj/Release/RDPClient.pdb differ