mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-24 22:06:59 +01:00
bfc8141391
- Handle validation for OVF files with a name different from the containing OVA package. Other corrections to wrong validation logic. - Show validation warnings on a dialog that can be turned off. - Clean up extracted files after an OVA package has been imported. - Plus code refactoring and simplification. Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
142 lines
7.2 KiB
C#
142 lines
7.2 KiB
C#
namespace XenAdmin.Dialogs
|
|
{
|
|
partial class OvfValidationDialog
|
|
{
|
|
/// <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(OvfValidationDialog));
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
|
this.buttonContinue = new System.Windows.Forms.Button();
|
|
this.buttonCancel = new System.Windows.Forms.Button();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.dataGridViewEx1 = new XenAdmin.Controls.DataGridViewEx.DataGridViewEx();
|
|
this.columnWarning = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
|
this.tableLayoutPanel1.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridViewEx1)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// tableLayoutPanel1
|
|
//
|
|
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
|
|
this.tableLayoutPanel1.Controls.Add(this.buttonContinue, 1, 3);
|
|
this.tableLayoutPanel1.Controls.Add(this.buttonCancel, 2, 3);
|
|
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
|
|
this.tableLayoutPanel1.Controls.Add(this.dataGridViewEx1, 0, 1);
|
|
this.tableLayoutPanel1.Controls.Add(this.checkBox1, 0, 2);
|
|
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
|
//
|
|
// buttonContinue
|
|
//
|
|
resources.ApplyResources(this.buttonContinue, "buttonContinue");
|
|
this.buttonContinue.DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
this.buttonContinue.Name = "buttonContinue";
|
|
this.buttonContinue.UseVisualStyleBackColor = true;
|
|
//
|
|
// buttonCancel
|
|
//
|
|
resources.ApplyResources(this.buttonCancel, "buttonCancel");
|
|
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.buttonCancel.Name = "buttonCancel";
|
|
this.buttonCancel.UseVisualStyleBackColor = true;
|
|
//
|
|
// label1
|
|
//
|
|
resources.ApplyResources(this.label1, "label1");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.label1, 3);
|
|
this.label1.Name = "label1";
|
|
//
|
|
// dataGridViewEx1
|
|
//
|
|
dataGridViewCellStyle1.BackColor = System.Drawing.Color.AliceBlue;
|
|
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.AliceBlue;
|
|
this.dataGridViewEx1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
|
this.dataGridViewEx1.BackgroundColor = System.Drawing.SystemColors.Window;
|
|
this.dataGridViewEx1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
|
|
this.dataGridViewEx1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
|
this.dataGridViewEx1.ColumnHeadersVisible = false;
|
|
this.dataGridViewEx1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
this.columnWarning});
|
|
this.tableLayoutPanel1.SetColumnSpan(this.dataGridViewEx1, 3);
|
|
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
|
|
dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Window;
|
|
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.ControlText;
|
|
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
|
this.dataGridViewEx1.DefaultCellStyle = dataGridViewCellStyle2;
|
|
resources.ApplyResources(this.dataGridViewEx1, "dataGridViewEx1");
|
|
this.dataGridViewEx1.HideSelection = true;
|
|
this.dataGridViewEx1.Name = "dataGridViewEx1";
|
|
this.dataGridViewEx1.ReadOnly = true;
|
|
//
|
|
// columnWarning
|
|
//
|
|
resources.ApplyResources(this.columnWarning, "columnWarning");
|
|
this.columnWarning.Name = "columnWarning";
|
|
this.columnWarning.ReadOnly = true;
|
|
//
|
|
// checkBox1
|
|
//
|
|
resources.ApplyResources(this.checkBox1, "checkBox1");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.checkBox1, 3);
|
|
this.checkBox1.Name = "checkBox1";
|
|
this.checkBox1.UseVisualStyleBackColor = true;
|
|
//
|
|
// OvfValidationDialog
|
|
//
|
|
this.AcceptButton = this.buttonContinue;
|
|
resources.ApplyResources(this, "$this");
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.CancelButton = this.buttonCancel;
|
|
this.Controls.Add(this.tableLayoutPanel1);
|
|
this.HelpButton = false;
|
|
this.Name = "OvfValidationDialog";
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.OvfValidationDialog_FormClosing);
|
|
this.tableLayoutPanel1.ResumeLayout(false);
|
|
this.tableLayoutPanel1.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridViewEx1)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
|
private System.Windows.Forms.Button buttonContinue;
|
|
private System.Windows.Forms.Button buttonCancel;
|
|
private System.Windows.Forms.Label label1;
|
|
private Controls.DataGridViewEx.DataGridViewEx dataGridViewEx1;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn columnWarning;
|
|
private System.Windows.Forms.CheckBox checkBox1;
|
|
}
|
|
}
|
|
|