mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
9a26478a16
1. Update AddVGPUDialog title; 2. Add label above the combobox; 3. In the combobox, add text to the entry saying if multiple vGPU is supported; 4. When the dialog is open, focus on the combobox; 5. Preselect the vGPU type if there is only one option available; 6. Setup the Help ID for dialog; 7. Optimize vGPU adding and deleting in GpuAssignAction. Signed-off-by: Michael Z <michael.zhao@citrix.com>
90 lines
3.7 KiB
C#
90 lines
3.7 KiB
C#
namespace XenAdmin.Dialogs
|
|
{
|
|
partial class AddVGPUDialog
|
|
{
|
|
/// <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)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form 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(AddVGPUDialog));
|
|
this.buttonAdd = new System.Windows.Forms.Button();
|
|
this.buttonCancel = new System.Windows.Forms.Button();
|
|
this.comboBoxTypes = new XenAdmin.Controls.VgpuComboBox();
|
|
this.labelType = new System.Windows.Forms.Label();
|
|
this.SuspendLayout();
|
|
//
|
|
// buttonAdd
|
|
//
|
|
this.buttonAdd.DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
resources.ApplyResources(this.buttonAdd, "buttonAdd");
|
|
this.buttonAdd.Name = "buttonAdd";
|
|
this.buttonAdd.UseVisualStyleBackColor = true;
|
|
this.buttonAdd.Click += new System.EventHandler(this.buttonAdd_Click);
|
|
//
|
|
// buttonCancel
|
|
//
|
|
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
resources.ApplyResources(this.buttonCancel, "buttonCancel");
|
|
this.buttonCancel.Name = "buttonCancel";
|
|
this.buttonCancel.UseVisualStyleBackColor = true;
|
|
//
|
|
// comboBoxTypes
|
|
//
|
|
this.comboBoxTypes.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
|
|
this.comboBoxTypes.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
resources.ApplyResources(this.comboBoxTypes, "comboBoxTypes");
|
|
this.comboBoxTypes.FormattingEnabled = true;
|
|
this.comboBoxTypes.Name = "comboBoxTypes";
|
|
this.comboBoxTypes.SelectedIndexChanged += new System.EventHandler(this.comboBoxTypes_SelectedIndexChanged);
|
|
//
|
|
// labelType
|
|
//
|
|
resources.ApplyResources(this.labelType, "labelType");
|
|
this.labelType.Name = "labelType";
|
|
//
|
|
// AddVGPUDialog
|
|
//
|
|
this.AcceptButton = this.buttonAdd;
|
|
resources.ApplyResources(this, "$this");
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.CancelButton = this.buttonCancel;
|
|
this.Controls.Add(this.labelType);
|
|
this.Controls.Add(this.comboBoxTypes);
|
|
this.Controls.Add(this.buttonCancel);
|
|
this.Controls.Add(this.buttonAdd);
|
|
this.Name = "AddVGPUDialog";
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Button buttonAdd;
|
|
private System.Windows.Forms.Button buttonCancel;
|
|
private Controls.VgpuComboBox comboBoxTypes;
|
|
private System.Windows.Forms.Label labelType;
|
|
}
|
|
} |