mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
5559fb9049
- If failed to retrieve the config parameters, then make the ConfigDriveTemplate textbox read-only and display the reason why it is not editable (similar with what we do for running VMs). - In the New VM Wizard, if the action on "Reset to Default" button fails, then popup a message box with an error saying that we were unable to retrieve the default parameters. In this case, the ConfigDriveTemplate textbox remains unchanged. Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
141 lines
6.8 KiB
C#
141 lines
6.8 KiB
C#
namespace XenAdmin.Wizards.NewVMWizard
|
|
{
|
|
partial class Page_CloudConfigParameters
|
|
{
|
|
/// <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(Page_CloudConfigParameters));
|
|
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
|
this.warningsTable = new System.Windows.Forms.TableLayoutPanel();
|
|
this.imgStopVM = new System.Windows.Forms.PictureBox();
|
|
this.labelWarning = new System.Windows.Forms.Label();
|
|
this.topLabel = new System.Windows.Forms.Label();
|
|
this.ConfigDriveTemplateTextBox = new System.Windows.Forms.TextBox();
|
|
this.ConfigDriveTemplateLabel = new System.Windows.Forms.Label();
|
|
this.IncludeConfigDriveCheckBox = new System.Windows.Forms.CheckBox();
|
|
this.reloadDefaults = new System.Windows.Forms.Button();
|
|
this.tableLayoutPanel1.SuspendLayout();
|
|
this.warningsTable.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.imgStopVM)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// tableLayoutPanel1
|
|
//
|
|
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
|
|
this.tableLayoutPanel1.Controls.Add(this.warningsTable, 0, 4);
|
|
this.tableLayoutPanel1.Controls.Add(this.topLabel, 0, 0);
|
|
this.tableLayoutPanel1.Controls.Add(this.ConfigDriveTemplateTextBox, 1, 2);
|
|
this.tableLayoutPanel1.Controls.Add(this.ConfigDriveTemplateLabel, 0, 2);
|
|
this.tableLayoutPanel1.Controls.Add(this.IncludeConfigDriveCheckBox, 0, 1);
|
|
this.tableLayoutPanel1.Controls.Add(this.reloadDefaults, 0, 3);
|
|
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
|
//
|
|
// warningsTable
|
|
//
|
|
resources.ApplyResources(this.warningsTable, "warningsTable");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.warningsTable, 2);
|
|
this.warningsTable.Controls.Add(this.imgStopVM, 0, 0);
|
|
this.warningsTable.Controls.Add(this.labelWarning, 1, 0);
|
|
this.warningsTable.Name = "warningsTable";
|
|
//
|
|
// imgStopVM
|
|
//
|
|
resources.ApplyResources(this.imgStopVM, "imgStopVM");
|
|
this.imgStopVM.Image = global::XenAdmin.Properties.Resources._000_Info3_h32bit_16;
|
|
this.imgStopVM.Name = "imgStopVM";
|
|
this.imgStopVM.TabStop = false;
|
|
//
|
|
// labelWarning
|
|
//
|
|
resources.ApplyResources(this.labelWarning, "labelWarning");
|
|
this.labelWarning.Name = "labelWarning";
|
|
//
|
|
// topLabel
|
|
//
|
|
resources.ApplyResources(this.topLabel, "topLabel");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.topLabel, 2);
|
|
this.topLabel.Name = "topLabel";
|
|
//
|
|
// ConfigDriveTemplateTextBox
|
|
//
|
|
this.ConfigDriveTemplateTextBox.AcceptsReturn = true;
|
|
resources.ApplyResources(this.ConfigDriveTemplateTextBox, "ConfigDriveTemplateTextBox");
|
|
this.ConfigDriveTemplateTextBox.Name = "ConfigDriveTemplateTextBox";
|
|
this.tableLayoutPanel1.SetRowSpan(this.ConfigDriveTemplateTextBox, 2);
|
|
this.ConfigDriveTemplateTextBox.TextChanged += new System.EventHandler(this.ConfigDriveTemplateTextBox_TextChanged);
|
|
//
|
|
// ConfigDriveTemplateLabel
|
|
//
|
|
resources.ApplyResources(this.ConfigDriveTemplateLabel, "ConfigDriveTemplateLabel");
|
|
this.ConfigDriveTemplateLabel.Name = "ConfigDriveTemplateLabel";
|
|
//
|
|
// IncludeConfigDriveCheckBox
|
|
//
|
|
resources.ApplyResources(this.IncludeConfigDriveCheckBox, "IncludeConfigDriveCheckBox");
|
|
this.IncludeConfigDriveCheckBox.Checked = true;
|
|
this.IncludeConfigDriveCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
this.tableLayoutPanel1.SetColumnSpan(this.IncludeConfigDriveCheckBox, 2);
|
|
this.IncludeConfigDriveCheckBox.Name = "IncludeConfigDriveCheckBox";
|
|
this.IncludeConfigDriveCheckBox.UseVisualStyleBackColor = true;
|
|
this.IncludeConfigDriveCheckBox.CheckedChanged += new System.EventHandler(this.IncludeConfigDriveCheckBox_CheckedChanged);
|
|
//
|
|
// reloadDefaults
|
|
//
|
|
resources.ApplyResources(this.reloadDefaults, "reloadDefaults");
|
|
this.reloadDefaults.Name = "reloadDefaults";
|
|
this.reloadDefaults.UseVisualStyleBackColor = true;
|
|
this.reloadDefaults.Click += new System.EventHandler(this.reloadDefaults_Click);
|
|
//
|
|
// Page_CloudConfigParameters
|
|
//
|
|
resources.ApplyResources(this, "$this");
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.Controls.Add(this.tableLayoutPanel1);
|
|
this.Name = "Page_CloudConfigParameters";
|
|
this.tableLayoutPanel1.ResumeLayout(false);
|
|
this.tableLayoutPanel1.PerformLayout();
|
|
this.warningsTable.ResumeLayout(false);
|
|
this.warningsTable.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.imgStopVM)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.TextBox ConfigDriveTemplateTextBox;
|
|
private System.Windows.Forms.Label ConfigDriveTemplateLabel;
|
|
private System.Windows.Forms.Label topLabel;
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
|
private System.Windows.Forms.CheckBox IncludeConfigDriveCheckBox;
|
|
private System.Windows.Forms.Button reloadDefaults;
|
|
private System.Windows.Forms.TableLayoutPanel warningsTable;
|
|
private System.Windows.Forms.PictureBox imgStopVM;
|
|
private System.Windows.Forms.Label labelWarning;
|
|
}
|
|
}
|