mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-12-23 08:56:02 +01:00
138e5884b6
Use two separate feature flags, `guefi` and `guefi-secureboot`, with the following rules: - If the feature is disabled, then the option is hidden in XenCenter. - If the feature is enabled and experimental, then the option is visible and a warning is displayed in XenCenter (in the New Vm and Import wizards). Also show the reason why a boot mode option is greyed out (when the uefi/uefi-secure boot mode is not supported in the selected template). (On the Page_InstallationMedia control, I moved the BootModeContol and PvBootBox controls inside the TableLayoutPanel, to allow better alignment and for better visibility in the design mode) Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
152 lines
7.3 KiB
C#
152 lines
7.3 KiB
C#
using System.Drawing;
|
|
|
|
namespace XenAdmin.Wizards
|
|
{
|
|
partial class BootModesControl
|
|
{
|
|
/// <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 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(BootModesControl));
|
|
this.groupBoxBootMode = new System.Windows.Forms.GroupBox();
|
|
this.tableLayoutPanelBootMode = new System.Windows.Forms.TableLayoutPanel();
|
|
this.radioButtonUEFISecureBoot = new System.Windows.Forms.RadioButton();
|
|
this.radioButtonBIOSBoot = new System.Windows.Forms.RadioButton();
|
|
this.radioButtonUEFIBoot = new System.Windows.Forms.RadioButton();
|
|
this.warningsTable = new System.Windows.Forms.TableLayoutPanel();
|
|
this.imgExperimental = new System.Windows.Forms.PictureBox();
|
|
this.labelExperimental = new System.Windows.Forms.Label();
|
|
this.imgUnsupported = new System.Windows.Forms.PictureBox();
|
|
this.labelUnsupported = new System.Windows.Forms.Label();
|
|
this.groupBoxBootMode.SuspendLayout();
|
|
this.tableLayoutPanelBootMode.SuspendLayout();
|
|
this.warningsTable.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.imgExperimental)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.imgUnsupported)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// groupBoxBootMode
|
|
//
|
|
this.groupBoxBootMode.Controls.Add(this.tableLayoutPanelBootMode);
|
|
resources.ApplyResources(this.groupBoxBootMode, "groupBoxBootMode");
|
|
this.groupBoxBootMode.Name = "groupBoxBootMode";
|
|
this.groupBoxBootMode.TabStop = false;
|
|
//
|
|
// tableLayoutPanelBootMode
|
|
//
|
|
this.tableLayoutPanelBootMode.Controls.Add(this.radioButtonUEFISecureBoot, 0, 2);
|
|
this.tableLayoutPanelBootMode.Controls.Add(this.radioButtonBIOSBoot, 0, 0);
|
|
this.tableLayoutPanelBootMode.Controls.Add(this.radioButtonUEFIBoot, 0, 1);
|
|
resources.ApplyResources(this.tableLayoutPanelBootMode, "tableLayoutPanelBootMode");
|
|
this.tableLayoutPanelBootMode.Name = "tableLayoutPanelBootMode";
|
|
//
|
|
// radioButtonUEFISecureBoot
|
|
//
|
|
resources.ApplyResources(this.radioButtonUEFISecureBoot, "radioButtonUEFISecureBoot");
|
|
this.radioButtonUEFISecureBoot.Name = "radioButtonUEFISecureBoot";
|
|
this.radioButtonUEFISecureBoot.UseVisualStyleBackColor = true;
|
|
//
|
|
// radioButtonBIOSBoot
|
|
//
|
|
resources.ApplyResources(this.radioButtonBIOSBoot, "radioButtonBIOSBoot");
|
|
this.radioButtonBIOSBoot.Name = "radioButtonBIOSBoot";
|
|
this.radioButtonBIOSBoot.UseVisualStyleBackColor = true;
|
|
//
|
|
// radioButtonUEFIBoot
|
|
//
|
|
resources.ApplyResources(this.radioButtonUEFIBoot, "radioButtonUEFIBoot");
|
|
this.radioButtonUEFIBoot.Name = "radioButtonUEFIBoot";
|
|
this.radioButtonUEFIBoot.UseVisualStyleBackColor = true;
|
|
//
|
|
// warningsTable
|
|
//
|
|
resources.ApplyResources(this.warningsTable, "warningsTable");
|
|
this.warningsTable.Controls.Add(this.labelUnsupported, 1, 0);
|
|
this.warningsTable.Controls.Add(this.imgExperimental, 0, 1);
|
|
this.warningsTable.Controls.Add(this.labelExperimental, 1, 1);
|
|
this.warningsTable.Controls.Add(this.imgUnsupported, 0, 0);
|
|
this.warningsTable.Name = "warningsTable";
|
|
//
|
|
// imgExperimental
|
|
//
|
|
this.imgExperimental.Image = global::XenAdmin.Properties.Resources._000_Alert2_h32bit_16;
|
|
resources.ApplyResources(this.imgExperimental, "imgExperimental");
|
|
this.imgExperimental.Name = "imgExperimental";
|
|
this.imgExperimental.TabStop = false;
|
|
//
|
|
// labelExperimental
|
|
//
|
|
resources.ApplyResources(this.labelExperimental, "labelExperimental");
|
|
this.labelExperimental.Name = "labelExperimental";
|
|
//
|
|
// imgUnsupported
|
|
//
|
|
resources.ApplyResources(this.imgUnsupported, "imgUnsupported");
|
|
this.imgUnsupported.Image = global::XenAdmin.Properties.Resources._000_Info3_h32bit_16;
|
|
this.imgUnsupported.Name = "imgUnsupported";
|
|
this.imgUnsupported.TabStop = false;
|
|
//
|
|
// labelUnsupported
|
|
//
|
|
resources.ApplyResources(this.labelUnsupported, "labelUnsupported");
|
|
this.labelUnsupported.Name = "labelUnsupported";
|
|
//
|
|
// BootModesControl
|
|
//
|
|
resources.ApplyResources(this, "$this");
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.BackColor = System.Drawing.SystemColors.Control;
|
|
this.Controls.Add(this.warningsTable);
|
|
this.Controls.Add(this.groupBoxBootMode);
|
|
this.DoubleBuffered = true;
|
|
this.Name = "BootModesControl";
|
|
this.groupBoxBootMode.ResumeLayout(false);
|
|
this.tableLayoutPanelBootMode.ResumeLayout(false);
|
|
this.tableLayoutPanelBootMode.PerformLayout();
|
|
this.warningsTable.ResumeLayout(false);
|
|
this.warningsTable.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.imgExperimental)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.imgUnsupported)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.GroupBox groupBoxBootMode;
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelBootMode;
|
|
private System.Windows.Forms.RadioButton radioButtonUEFISecureBoot;
|
|
private System.Windows.Forms.RadioButton radioButtonBIOSBoot;
|
|
private System.Windows.Forms.RadioButton radioButtonUEFIBoot;
|
|
private System.Windows.Forms.TableLayoutPanel warningsTable;
|
|
private System.Windows.Forms.PictureBox imgExperimental;
|
|
private System.Windows.Forms.Label labelExperimental;
|
|
private System.Windows.Forms.PictureBox imgUnsupported;
|
|
private System.Windows.Forms.Label labelUnsupported;
|
|
}
|
|
}
|