mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-12-23 08:56:02 +01:00
5b79b1dc94
hidden and in all other cases it was set by the implementing control, i.e. the label was not reusable, hence no reason to have it in the control and risk layout issues. This means that the SrPicker does not need to be a control encapsulating a CustomTreeVIew, but simply derive from the latter. Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
227 lines
11 KiB
C#
227 lines
11 KiB
C#
using System;
|
|
|
|
namespace XenAdmin.Dialogs
|
|
{
|
|
partial class NewDiskDialog
|
|
{
|
|
/// <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(NewDiskDialog));
|
|
this.DiskSizeNumericUpDown = new System.Windows.Forms.NumericUpDown();
|
|
this.SrListBox = new XenAdmin.Controls.SrPicker();
|
|
this.CloseButton = new System.Windows.Forms.Button();
|
|
this.OkButton = new System.Windows.Forms.Button();
|
|
this.NameTextBox = new System.Windows.Forms.TextBox();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.DescriptionTextBox = new System.Windows.Forms.TextBox();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
|
this.tableLayoutPanelError = new System.Windows.Forms.TableLayoutPanel();
|
|
this.labelError = new System.Windows.Forms.Label();
|
|
this.pictureBoxError = new System.Windows.Forms.PictureBox();
|
|
this.comboBoxUnits = new System.Windows.Forms.ComboBox();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.label6 = new System.Windows.Forms.Label();
|
|
((System.ComponentModel.ISupportInitialize)(this.DiskSizeNumericUpDown)).BeginInit();
|
|
this.tableLayoutPanel1.SuspendLayout();
|
|
this.tableLayoutPanelError.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxError)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// DiskSizeNumericUpDown
|
|
//
|
|
resources.ApplyResources(this.DiskSizeNumericUpDown, "DiskSizeNumericUpDown");
|
|
this.DiskSizeNumericUpDown.Maximum = new decimal(new int[] {
|
|
1000000000,
|
|
0,
|
|
0,
|
|
0});
|
|
this.DiskSizeNumericUpDown.Name = "DiskSizeNumericUpDown";
|
|
this.DiskSizeNumericUpDown.Value = new decimal(new int[] {
|
|
1,
|
|
0,
|
|
0,
|
|
0});
|
|
this.DiskSizeNumericUpDown.ValueChanged += new System.EventHandler(this.DiskSizeNumericUpDown_ValueChanged);
|
|
this.DiskSizeNumericUpDown.KeyUp += new System.Windows.Forms.KeyEventHandler(this.DiskSizeNumericUpDown_KeyUp);
|
|
//
|
|
// SrListBox
|
|
//
|
|
this.tableLayoutPanel1.SetColumnSpan(this.SrListBox, 4);
|
|
this.SrListBox.Connection = null;
|
|
resources.ApplyResources(this.SrListBox, "SrListBox");
|
|
this.SrListBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
|
|
this.SrListBox.Name = "SrListBox";
|
|
this.SrListBox.SrSelectionChanged += new System.Action<object>(this.SrListBox_SrSelectionChanged);
|
|
this.SrListBox.SelectedIndexChanged += new System.EventHandler(this.srListBox_SelectedIndexChanged);
|
|
//
|
|
// CloseButton
|
|
//
|
|
resources.ApplyResources(this.CloseButton, "CloseButton");
|
|
this.CloseButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.CloseButton.Name = "CloseButton";
|
|
this.CloseButton.UseVisualStyleBackColor = true;
|
|
this.CloseButton.Click += new System.EventHandler(this.CloseButton_Click);
|
|
//
|
|
// OkButton
|
|
//
|
|
resources.ApplyResources(this.OkButton, "OkButton");
|
|
this.OkButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.OkButton.Name = "OkButton";
|
|
this.OkButton.UseVisualStyleBackColor = true;
|
|
this.OkButton.Click += new System.EventHandler(this.OkButton_Click);
|
|
//
|
|
// NameTextBox
|
|
//
|
|
this.tableLayoutPanel1.SetColumnSpan(this.NameTextBox, 4);
|
|
resources.ApplyResources(this.NameTextBox, "NameTextBox");
|
|
this.NameTextBox.Name = "NameTextBox";
|
|
this.NameTextBox.TextChanged += new System.EventHandler(this.NameTextBox_TextChanged);
|
|
//
|
|
// label2
|
|
//
|
|
resources.ApplyResources(this.label2, "label2");
|
|
this.label2.Name = "label2";
|
|
//
|
|
// DescriptionTextBox
|
|
//
|
|
this.tableLayoutPanel1.SetColumnSpan(this.DescriptionTextBox, 4);
|
|
resources.ApplyResources(this.DescriptionTextBox, "DescriptionTextBox");
|
|
this.DescriptionTextBox.Name = "DescriptionTextBox";
|
|
this.DescriptionTextBox.TextChanged += new System.EventHandler(this.NameTextBox_TextChanged);
|
|
//
|
|
// label3
|
|
//
|
|
resources.ApplyResources(this.label3, "label3");
|
|
this.label3.Name = "label3";
|
|
//
|
|
// label1
|
|
//
|
|
resources.ApplyResources(this.label1, "label1");
|
|
this.label1.Name = "label1";
|
|
//
|
|
// tableLayoutPanel1
|
|
//
|
|
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
|
|
this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanelError, 3, 4);
|
|
this.tableLayoutPanel1.Controls.Add(this.comboBoxUnits, 2, 4);
|
|
this.tableLayoutPanel1.Controls.Add(this.CloseButton, 4, 9);
|
|
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 2);
|
|
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 4);
|
|
this.tableLayoutPanel1.Controls.Add(this.NameTextBox, 1, 2);
|
|
this.tableLayoutPanel1.Controls.Add(this.DescriptionTextBox, 1, 3);
|
|
this.tableLayoutPanel1.Controls.Add(this.SrListBox, 1, 5);
|
|
this.tableLayoutPanel1.Controls.Add(this.label3, 0, 3);
|
|
this.tableLayoutPanel1.Controls.Add(this.DiskSizeNumericUpDown, 1, 4);
|
|
this.tableLayoutPanel1.Controls.Add(this.label4, 0, 5);
|
|
this.tableLayoutPanel1.Controls.Add(this.label6, 0, 1);
|
|
this.tableLayoutPanel1.Controls.Add(this.OkButton, 3, 9);
|
|
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
|
//
|
|
// tableLayoutPanelError
|
|
//
|
|
resources.ApplyResources(this.tableLayoutPanelError, "tableLayoutPanelError");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.tableLayoutPanelError, 2);
|
|
this.tableLayoutPanelError.Controls.Add(this.labelError, 1, 0);
|
|
this.tableLayoutPanelError.Controls.Add(this.pictureBoxError, 0, 0);
|
|
this.tableLayoutPanelError.Name = "tableLayoutPanelError";
|
|
//
|
|
// labelError
|
|
//
|
|
resources.ApplyResources(this.labelError, "labelError");
|
|
this.labelError.ForeColor = System.Drawing.Color.Red;
|
|
this.labelError.Name = "labelError";
|
|
//
|
|
// pictureBoxError
|
|
//
|
|
resources.ApplyResources(this.pictureBoxError, "pictureBoxError");
|
|
this.pictureBoxError.Name = "pictureBoxError";
|
|
this.pictureBoxError.TabStop = false;
|
|
//
|
|
// comboBoxUnits
|
|
//
|
|
this.comboBoxUnits.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
resources.ApplyResources(this.comboBoxUnits, "comboBoxUnits");
|
|
this.comboBoxUnits.FormattingEnabled = true;
|
|
this.comboBoxUnits.Items.AddRange(new object[] {
|
|
resources.GetString("comboBoxUnits.Items"),
|
|
resources.GetString("comboBoxUnits.Items1")});
|
|
this.comboBoxUnits.Name = "comboBoxUnits";
|
|
//
|
|
// label4
|
|
//
|
|
resources.ApplyResources(this.label4, "label4");
|
|
this.label4.Name = "label4";
|
|
//
|
|
// label6
|
|
//
|
|
resources.ApplyResources(this.label6, "label6");
|
|
this.tableLayoutPanel1.SetColumnSpan(this.label6, 5);
|
|
this.label6.Name = "label6";
|
|
//
|
|
// NewDiskDialog
|
|
//
|
|
this.AcceptButton = this.OkButton;
|
|
resources.ApplyResources(this, "$this");
|
|
this.CancelButton = this.CloseButton;
|
|
this.Controls.Add(this.tableLayoutPanel1);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
|
|
this.Name = "NewDiskDialog";
|
|
((System.ComponentModel.ISupportInitialize)(this.DiskSizeNumericUpDown)).EndInit();
|
|
this.tableLayoutPanel1.ResumeLayout(false);
|
|
this.tableLayoutPanel1.PerformLayout();
|
|
this.tableLayoutPanelError.ResumeLayout(false);
|
|
this.tableLayoutPanelError.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxError)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.NumericUpDown DiskSizeNumericUpDown;
|
|
private XenAdmin.Controls.SrPicker SrListBox;
|
|
private System.Windows.Forms.Button CloseButton;
|
|
private System.Windows.Forms.Button OkButton;
|
|
private System.Windows.Forms.TextBox NameTextBox;
|
|
private System.Windows.Forms.TextBox DescriptionTextBox;
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
|
private System.Windows.Forms.Label label4;
|
|
private System.Windows.Forms.Label label6;
|
|
private System.Windows.Forms.ComboBox comboBoxUnits;
|
|
private System.Windows.Forms.Label labelError;
|
|
private System.Windows.Forms.PictureBox pictureBoxError;
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelError;
|
|
|
|
}
|
|
}
|