mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
cad6239c3d
and removed static method creating the dialog from XenObject; the constructor can be used for this purpose if the command's CantExecuteReasons are keyed on IXenObjet instead of SelectedItem. Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
199 lines
11 KiB
C#
199 lines
11 KiB
C#
namespace XenAdmin.Dialogs
|
|
{
|
|
partial class CommandErrorDialog
|
|
{
|
|
/// <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(CommandErrorDialog));
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
this.lblText = new System.Windows.Forms.Label();
|
|
this.pbQuestion = new System.Windows.Forms.PictureBox();
|
|
this.table = new System.Windows.Forms.TableLayoutPanel();
|
|
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
|
|
this.btnClose = new System.Windows.Forms.Button();
|
|
this.btnCancel = new System.Windows.Forms.Button();
|
|
this.btnOK = new System.Windows.Forms.Button();
|
|
this.m_dataGridView = new System.Windows.Forms.DataGridView();
|
|
this.colImage = new System.Windows.Forms.DataGridViewImageColumn();
|
|
this.colName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.colReason = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
((System.ComponentModel.ISupportInitialize)(this.pbQuestion)).BeginInit();
|
|
this.table.SuspendLayout();
|
|
this.flowLayoutPanel1.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.m_dataGridView)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// lblText
|
|
//
|
|
resources.ApplyResources(this.lblText, "lblText");
|
|
this.lblText.Name = "lblText";
|
|
//
|
|
// pbQuestion
|
|
//
|
|
resources.ApplyResources(this.pbQuestion, "pbQuestion");
|
|
this.pbQuestion.Image = global::XenAdmin.Properties.Resources._000_error_h32bit_32;
|
|
this.pbQuestion.Name = "pbQuestion";
|
|
this.pbQuestion.TabStop = false;
|
|
//
|
|
// table
|
|
//
|
|
resources.ApplyResources(this.table, "table");
|
|
this.table.Controls.Add(this.lblText, 1, 0);
|
|
this.table.Controls.Add(this.pbQuestion, 0, 0);
|
|
this.table.Controls.Add(this.flowLayoutPanel1, 1, 2);
|
|
this.table.Controls.Add(this.m_dataGridView, 0, 1);
|
|
this.table.Name = "table";
|
|
//
|
|
// flowLayoutPanel1
|
|
//
|
|
resources.ApplyResources(this.flowLayoutPanel1, "flowLayoutPanel1");
|
|
this.flowLayoutPanel1.Controls.Add(this.btnClose);
|
|
this.flowLayoutPanel1.Controls.Add(this.btnCancel);
|
|
this.flowLayoutPanel1.Controls.Add(this.btnOK);
|
|
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
|
|
//
|
|
// btnClose
|
|
//
|
|
this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
resources.ApplyResources(this.btnClose, "btnClose");
|
|
this.btnClose.Name = "btnClose";
|
|
this.btnClose.UseVisualStyleBackColor = true;
|
|
//
|
|
// btnCancel
|
|
//
|
|
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
resources.ApplyResources(this.btnCancel, "btnCancel");
|
|
this.btnCancel.Name = "btnCancel";
|
|
this.btnCancel.UseVisualStyleBackColor = true;
|
|
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
|
//
|
|
// btnOK
|
|
//
|
|
this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
resources.ApplyResources(this.btnOK, "btnOK");
|
|
this.btnOK.Name = "btnOK";
|
|
this.btnOK.UseVisualStyleBackColor = true;
|
|
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
|
|
//
|
|
// m_dataGridView
|
|
//
|
|
this.m_dataGridView.AllowUserToAddRows = false;
|
|
this.m_dataGridView.AllowUserToDeleteRows = false;
|
|
this.m_dataGridView.AllowUserToResizeRows = false;
|
|
this.m_dataGridView.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders;
|
|
this.m_dataGridView.BackgroundColor = System.Drawing.SystemColors.Window;
|
|
this.m_dataGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
|
|
this.m_dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
|
this.m_dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
this.colImage,
|
|
this.colName,
|
|
this.colReason});
|
|
this.table.SetColumnSpan(this.m_dataGridView, 2);
|
|
resources.ApplyResources(this.m_dataGridView, "m_dataGridView");
|
|
this.m_dataGridView.MultiSelect = false;
|
|
this.m_dataGridView.Name = "m_dataGridView";
|
|
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
|
|
dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
|
|
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
|
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
this.m_dataGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
|
|
this.m_dataGridView.RowHeadersVisible = false;
|
|
this.m_dataGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
|
|
this.m_dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
|
this.m_dataGridView.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.m_dataGridView_ColumnHeaderMouseClick);
|
|
//
|
|
// colImage
|
|
//
|
|
this.colImage.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader;
|
|
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopLeft;
|
|
dataGridViewCellStyle1.Padding = new System.Windows.Forms.Padding(2);
|
|
this.colImage.DefaultCellStyle = dataGridViewCellStyle1;
|
|
resources.ApplyResources(this.colImage, "colImage");
|
|
this.colImage.Name = "colImage";
|
|
this.colImage.ReadOnly = true;
|
|
this.colImage.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
|
//
|
|
// colName
|
|
//
|
|
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopLeft;
|
|
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
|
this.colName.DefaultCellStyle = dataGridViewCellStyle2;
|
|
resources.ApplyResources(this.colName, "colName");
|
|
this.colName.Name = "colName";
|
|
this.colName.ReadOnly = true;
|
|
//
|
|
// colReason
|
|
//
|
|
this.colReason.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopLeft;
|
|
dataGridViewCellStyle3.Padding = new System.Windows.Forms.Padding(0, 1, 0, 0);
|
|
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
this.colReason.DefaultCellStyle = dataGridViewCellStyle3;
|
|
resources.ApplyResources(this.colReason, "colReason");
|
|
this.colReason.Name = "colReason";
|
|
this.colReason.ReadOnly = true;
|
|
//
|
|
// CommandErrorDialog
|
|
//
|
|
resources.ApplyResources(this, "$this");
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.CancelButton = this.btnClose;
|
|
this.Controls.Add(this.table);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
|
|
this.HelpButton = false;
|
|
this.Name = "CommandErrorDialog";
|
|
((System.ComponentModel.ISupportInitialize)(this.pbQuestion)).EndInit();
|
|
this.table.ResumeLayout(false);
|
|
this.table.PerformLayout();
|
|
this.flowLayoutPanel1.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)(this.m_dataGridView)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Label lblText;
|
|
private System.Windows.Forms.PictureBox pbQuestion;
|
|
private System.Windows.Forms.TableLayoutPanel table;
|
|
private System.Windows.Forms.Button btnClose;
|
|
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
|
|
private System.Windows.Forms.Button btnCancel;
|
|
private System.Windows.Forms.Button btnOK;
|
|
private System.Windows.Forms.DataGridView m_dataGridView;
|
|
private System.Windows.Forms.DataGridViewImageColumn colImage;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn colName;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn colReason;
|
|
}
|
|
} |