mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 12:30:50 +01:00
9ec3dc3127
Disposing the vncTabView disconnects the RdpClient and should not be called after base.Dispose() is called on VNCView, because the latter has released the COM objects and causes an InvalidComObjectException to be thrown. Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
81 lines
2.9 KiB
C#
81 lines
2.9 KiB
C#
namespace XenAdmin.ConsoleView
|
|
{
|
|
partial class VNCView
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
Program.AssertOnEventThread();
|
|
|
|
UnregisterEventListeners();
|
|
|
|
if (this.undockedForm != null)
|
|
{
|
|
undockedForm.Hide();
|
|
undockedForm.Dispose();
|
|
}
|
|
|
|
if (disposing)
|
|
{
|
|
if (vncTabView != null && !vncTabView.IsDisposed)
|
|
vncTabView.Dispose();
|
|
|
|
if (components != null)
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Component Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(VNCView));
|
|
this.findConsoleButton = new System.Windows.Forms.Button();
|
|
this.reattachConsoleButton = new System.Windows.Forms.Button();
|
|
this.SuspendLayout();
|
|
//
|
|
// findConsoleButton
|
|
//
|
|
resources.ApplyResources(this.findConsoleButton, "findConsoleButton");
|
|
this.findConsoleButton.Name = "findConsoleButton";
|
|
this.findConsoleButton.UseVisualStyleBackColor = true;
|
|
this.findConsoleButton.Click += new System.EventHandler(this.findConsoleButton_Click);
|
|
//
|
|
// reattachConsoleButton
|
|
//
|
|
resources.ApplyResources(this.reattachConsoleButton, "reattachConsoleButton");
|
|
this.reattachConsoleButton.Name = "reattachConsoleButton";
|
|
this.reattachConsoleButton.UseVisualStyleBackColor = true;
|
|
this.reattachConsoleButton.Click += new System.EventHandler(this.reattachConsoleButton_Click);
|
|
//
|
|
// VNCView
|
|
//
|
|
resources.ApplyResources(this, "$this");
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.Controls.Add(this.reattachConsoleButton);
|
|
this.Controls.Add(this.findConsoleButton);
|
|
this.Name = "VNCView";
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Button findConsoleButton;
|
|
private System.Windows.Forms.Button reattachConsoleButton;
|
|
}
|
|
}
|