mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 23:10:16 +01:00
e6ec0d430b
- on certain occasions retrieving datasources can be slow; show a spinner while in progress. - on certain systems the list of datasources may be long; added search box to aid the user filter them by name. Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
303 lines
18 KiB
C#
303 lines
18 KiB
C#
namespace XenAdmin.Dialogs
|
|
{
|
|
partial class GraphDetailsDialog
|
|
{
|
|
/// <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()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GraphDetailsDialog));
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = 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();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
this.GraphNameLabel = new System.Windows.Forms.Label();
|
|
this.SaveButton = new System.Windows.Forms.Button();
|
|
this.CloseButton = new System.Windows.Forms.Button();
|
|
this.GraphNameTextBox = new System.Windows.Forms.TextBox();
|
|
this.dataGridView = new System.Windows.Forms.DataGridView();
|
|
this.ColumnDisplayOnGraph = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
|
this.ColumnName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.ColumnType = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.ColumnColour = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.ClearAllButton = new System.Windows.Forms.Button();
|
|
this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
|
|
this.clearAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
|
this.labelProgress = new System.Windows.Forms.Label();
|
|
this.pictureBoxProgress = new System.Windows.Forms.PictureBox();
|
|
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.searchTextBox = new XenAdmin.Controls.SearchTextBox();
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
|
|
this.contextMenuStrip.SuspendLayout();
|
|
this.tableLayoutPanel1.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxProgress)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// GraphNameLabel
|
|
//
|
|
resources.ApplyResources(this.GraphNameLabel, "GraphNameLabel");
|
|
this.GraphNameLabel.BackColor = System.Drawing.Color.Transparent;
|
|
this.GraphNameLabel.Name = "GraphNameLabel";
|
|
//
|
|
// SaveButton
|
|
//
|
|
resources.ApplyResources(this.SaveButton, "SaveButton");
|
|
this.SaveButton.DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
this.SaveButton.Name = "SaveButton";
|
|
this.SaveButton.UseVisualStyleBackColor = true;
|
|
this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click);
|
|
//
|
|
// CloseButton
|
|
//
|
|
resources.ApplyResources(this.CloseButton, "CloseButton");
|
|
this.CloseButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.CloseButton.Name = "CloseButton";
|
|
this.CloseButton.UseVisualStyleBackColor = true;
|
|
//
|
|
// GraphNameTextBox
|
|
//
|
|
resources.ApplyResources(this.GraphNameTextBox, "GraphNameTextBox");
|
|
this.GraphNameTextBox.Name = "GraphNameTextBox";
|
|
//
|
|
// dataGridView
|
|
//
|
|
this.dataGridView.AllowUserToAddRows = false;
|
|
this.dataGridView.AllowUserToDeleteRows = false;
|
|
this.dataGridView.AllowUserToResizeColumns = false;
|
|
this.dataGridView.AllowUserToResizeRows = false;
|
|
resources.ApplyResources(this.dataGridView, "dataGridView");
|
|
this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
|
|
this.dataGridView.BackgroundColor = System.Drawing.SystemColors.Window;
|
|
this.dataGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
|
|
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
this.dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
this.ColumnDisplayOnGraph,
|
|
this.ColumnName,
|
|
this.ColumnType,
|
|
this.ColumnColour});
|
|
this.dataGridView.MultiSelect = false;
|
|
this.dataGridView.Name = "dataGridView";
|
|
this.dataGridView.ReadOnly = true;
|
|
this.dataGridView.RowHeadersVisible = false;
|
|
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window;
|
|
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
|
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
this.dataGridView.RowsDefaultCellStyle = dataGridViewCellStyle5;
|
|
this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
|
this.dataGridView.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.datasourcesGridView_CellClick);
|
|
this.dataGridView.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.datasourcesGridView_CellPainting);
|
|
this.dataGridView.SortCompare += new System.Windows.Forms.DataGridViewSortCompareEventHandler(this.dataGridView_SortCompare);
|
|
this.dataGridView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.dataGridView_MouseDown);
|
|
//
|
|
// ColumnDisplayOnGraph
|
|
//
|
|
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
dataGridViewCellStyle1.NullValue = false;
|
|
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Window;
|
|
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.ColumnDisplayOnGraph.DefaultCellStyle = dataGridViewCellStyle1;
|
|
resources.ApplyResources(this.ColumnDisplayOnGraph, "ColumnDisplayOnGraph");
|
|
this.ColumnDisplayOnGraph.Name = "ColumnDisplayOnGraph";
|
|
this.ColumnDisplayOnGraph.ReadOnly = true;
|
|
this.ColumnDisplayOnGraph.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
|
this.ColumnDisplayOnGraph.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
|
//
|
|
// ColumnName
|
|
//
|
|
this.ColumnName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Window;
|
|
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.ColumnName.DefaultCellStyle = dataGridViewCellStyle2;
|
|
resources.ApplyResources(this.ColumnName, "ColumnName");
|
|
this.ColumnName.Name = "ColumnName";
|
|
this.ColumnName.ReadOnly = true;
|
|
//
|
|
// ColumnType
|
|
//
|
|
this.ColumnType.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
|
|
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Window;
|
|
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.ColumnType.DefaultCellStyle = dataGridViewCellStyle3;
|
|
resources.ApplyResources(this.ColumnType, "ColumnType");
|
|
this.ColumnType.Name = "ColumnType";
|
|
this.ColumnType.ReadOnly = true;
|
|
//
|
|
// ColumnColour
|
|
//
|
|
this.ColumnColour.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
|
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Window;
|
|
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.ColumnColour.DefaultCellStyle = dataGridViewCellStyle4;
|
|
resources.ApplyResources(this.ColumnColour, "ColumnColour");
|
|
this.ColumnColour.Name = "ColumnColour";
|
|
this.ColumnColour.ReadOnly = true;
|
|
this.ColumnColour.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
|
this.ColumnColour.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
//
|
|
// ClearAllButton
|
|
//
|
|
resources.ApplyResources(this.ClearAllButton, "ClearAllButton");
|
|
this.ClearAllButton.Name = "ClearAllButton";
|
|
this.ClearAllButton.UseVisualStyleBackColor = true;
|
|
this.ClearAllButton.Click += new System.EventHandler(this.ClearAllButton_Click);
|
|
//
|
|
// contextMenuStrip
|
|
//
|
|
this.contextMenuStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
|
|
this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.clearAllToolStripMenuItem});
|
|
this.contextMenuStrip.Name = "contextMenuStrip";
|
|
resources.ApplyResources(this.contextMenuStrip, "contextMenuStrip");
|
|
//
|
|
// clearAllToolStripMenuItem
|
|
//
|
|
this.clearAllToolStripMenuItem.Name = "clearAllToolStripMenuItem";
|
|
resources.ApplyResources(this.clearAllToolStripMenuItem, "clearAllToolStripMenuItem");
|
|
this.clearAllToolStripMenuItem.Click += new System.EventHandler(this.clearAllToolStripMenuItem_Click);
|
|
//
|
|
// tableLayoutPanel1
|
|
//
|
|
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
|
|
this.tableLayoutPanel1.BackColor = System.Drawing.SystemColors.Window;
|
|
this.tableLayoutPanel1.Controls.Add(this.labelProgress, 1, 0);
|
|
this.tableLayoutPanel1.Controls.Add(this.pictureBoxProgress, 0, 0);
|
|
this.tableLayoutPanel1.Cursor = System.Windows.Forms.Cursors.Arrow;
|
|
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
|
//
|
|
// labelProgress
|
|
//
|
|
resources.ApplyResources(this.labelProgress, "labelProgress");
|
|
this.labelProgress.BackColor = System.Drawing.SystemColors.Window;
|
|
this.labelProgress.Name = "labelProgress";
|
|
//
|
|
// pictureBoxProgress
|
|
//
|
|
resources.ApplyResources(this.pictureBoxProgress, "pictureBoxProgress");
|
|
this.pictureBoxProgress.BackColor = System.Drawing.SystemColors.Window;
|
|
this.pictureBoxProgress.Image = global::XenAdmin.Properties.Resources.ajax_loader;
|
|
this.pictureBoxProgress.Name = "pictureBoxProgress";
|
|
this.pictureBoxProgress.TabStop = false;
|
|
//
|
|
// dataGridViewTextBoxColumn1
|
|
//
|
|
this.dataGridViewTextBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
|
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Window;
|
|
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle6;
|
|
resources.ApplyResources(this.dataGridViewTextBoxColumn1, "dataGridViewTextBoxColumn1");
|
|
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
|
|
this.dataGridViewTextBoxColumn1.ReadOnly = true;
|
|
this.dataGridViewTextBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
|
this.dataGridViewTextBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
//
|
|
// dataGridViewTextBoxColumn2
|
|
//
|
|
this.dataGridViewTextBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
|
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Window;
|
|
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle7;
|
|
resources.ApplyResources(this.dataGridViewTextBoxColumn2, "dataGridViewTextBoxColumn2");
|
|
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
|
|
this.dataGridViewTextBoxColumn2.ReadOnly = true;
|
|
this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
//
|
|
// dataGridViewTextBoxColumn3
|
|
//
|
|
this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
|
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Window;
|
|
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle8;
|
|
resources.ApplyResources(this.dataGridViewTextBoxColumn3, "dataGridViewTextBoxColumn3");
|
|
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
|
|
this.dataGridViewTextBoxColumn3.ReadOnly = true;
|
|
this.dataGridViewTextBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
|
this.dataGridViewTextBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
//
|
|
// searchTextBox
|
|
//
|
|
resources.ApplyResources(this.searchTextBox, "searchTextBox");
|
|
this.searchTextBox.Name = "searchTextBox";
|
|
this.searchTextBox.TextChanged += new System.EventHandler(this.searchTextBox_TextChanged);
|
|
//
|
|
// GraphDetailsDialog
|
|
//
|
|
this.AcceptButton = this.SaveButton;
|
|
resources.ApplyResources(this, "$this");
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.CancelButton = this.CloseButton;
|
|
this.Controls.Add(this.searchTextBox);
|
|
this.Controls.Add(this.tableLayoutPanel1);
|
|
this.Controls.Add(this.dataGridView);
|
|
this.Controls.Add(this.ClearAllButton);
|
|
this.Controls.Add(this.GraphNameTextBox);
|
|
this.Controls.Add(this.SaveButton);
|
|
this.Controls.Add(this.CloseButton);
|
|
this.Controls.Add(this.GraphNameLabel);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
|
|
this.Name = "GraphDetailsDialog";
|
|
this.Load += new System.EventHandler(this.GraphDetailsDialog_Load);
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
|
|
this.contextMenuStrip.ResumeLayout(false);
|
|
this.tableLayoutPanel1.ResumeLayout(false);
|
|
this.tableLayoutPanel1.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxProgress)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
internal System.Windows.Forms.Label GraphNameLabel;
|
|
private System.Windows.Forms.Button SaveButton;
|
|
private System.Windows.Forms.Button CloseButton;
|
|
private System.Windows.Forms.TextBox GraphNameTextBox;
|
|
private System.Windows.Forms.DataGridView dataGridView;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
|
|
private System.Windows.Forms.DataGridViewCheckBoxColumn ColumnDisplayOnGraph;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnName;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnType;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn ColumnColour;
|
|
private System.Windows.Forms.Button ClearAllButton;
|
|
private System.Windows.Forms.ContextMenuStrip contextMenuStrip;
|
|
private System.Windows.Forms.ToolStripMenuItem clearAllToolStripMenuItem;
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
|
private System.Windows.Forms.Label labelProgress;
|
|
private System.Windows.Forms.PictureBox pictureBoxProgress;
|
|
private Controls.SearchTextBox searchTextBox;
|
|
|
|
}
|
|
} |