131 lines
4.6 KiB
C#
131 lines
4.6 KiB
C#
namespace Pf2eViewer.EntityTreeViewer;
|
|
|
|
sealed partial class EntityTreeViewerRow
|
|
{
|
|
/// <summary>
|
|
/// Обязательная переменная конструктора.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Освободить все используемые ресурсы.
|
|
/// </summary>
|
|
/// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Код, автоматически созданный конструктором компонентов
|
|
|
|
/// <summary>
|
|
/// Требуемый метод для поддержки конструктора — не изменяйте
|
|
/// содержимое этого метода с помощью редактора кода.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
NameLabel = new Label();
|
|
IconPictureBox = new PictureBox();
|
|
NamePanel = new Panel();
|
|
ValuePanel = new Panel();
|
|
TypeLabel = new Label();
|
|
ValueLabel = new Label();
|
|
((System.ComponentModel.ISupportInitialize) IconPictureBox).BeginInit();
|
|
NamePanel.SuspendLayout();
|
|
ValuePanel.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// NameLabel
|
|
//
|
|
NameLabel.Dock = DockStyle.Fill;
|
|
NameLabel.Location = new Point(0, 0);
|
|
NameLabel.Margin = new Padding(0);
|
|
NameLabel.Name = "NameLabel";
|
|
NameLabel.Size = new Size(200, 38);
|
|
NameLabel.TabIndex = 0;
|
|
NameLabel.Text = "Name";
|
|
NameLabel.TextAlign = ContentAlignment.MiddleLeft;
|
|
//
|
|
// IconPictureBox
|
|
//
|
|
IconPictureBox.Dock = DockStyle.Left;
|
|
IconPictureBox.Location = new Point(0, 0);
|
|
IconPictureBox.Margin = new Padding(0);
|
|
IconPictureBox.Name = "IconPictureBox";
|
|
IconPictureBox.Size = new Size(20, 38);
|
|
IconPictureBox.TabIndex = 1;
|
|
IconPictureBox.TabStop = false;
|
|
IconPictureBox.Click += IconPictureBox_Click;
|
|
//
|
|
// NamePanel
|
|
//
|
|
NamePanel.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
|
|
NamePanel.Controls.Add(NameLabel);
|
|
NamePanel.Controls.Add(IconPictureBox);
|
|
NamePanel.Location = new Point(0, 0);
|
|
NamePanel.Name = "NamePanel";
|
|
NamePanel.Size = new Size(200, 38);
|
|
NamePanel.TabIndex = 2;
|
|
//
|
|
// ValuePanel
|
|
//
|
|
ValuePanel.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
ValuePanel.BackColor = SystemColors.Control;
|
|
ValuePanel.Controls.Add(ValueLabel);
|
|
ValuePanel.Controls.Add(TypeLabel);
|
|
ValuePanel.Location = new Point(200, 0);
|
|
ValuePanel.Margin = new Padding(0);
|
|
ValuePanel.Name = "ValuePanel";
|
|
ValuePanel.Size = new Size(288, 38);
|
|
ValuePanel.TabIndex = 4;
|
|
//
|
|
// TypeLabel
|
|
//
|
|
TypeLabel.Dock = DockStyle.Left;
|
|
TypeLabel.Location = new Point(0, 0);
|
|
TypeLabel.Margin = new Padding(0);
|
|
TypeLabel.Name = "TypeLabel";
|
|
TypeLabel.Size = new Size(57, 38);
|
|
TypeLabel.TabIndex = 3;
|
|
TypeLabel.Text = "TypeText";
|
|
TypeLabel.TextAlign = ContentAlignment.MiddleLeft;
|
|
//
|
|
// ValueLabel
|
|
//
|
|
ValueLabel.AutoEllipsis = true;
|
|
ValueLabel.Dock = DockStyle.Fill;
|
|
ValueLabel.Location = new Point(0, 0);
|
|
ValueLabel.Name = "ValueLabel";
|
|
ValueLabel.Size = new Size(288, 38);
|
|
ValueLabel.TabIndex = 4;
|
|
ValueLabel.Text = "ValueText";
|
|
ValueLabel.TextAlign = ContentAlignment.MiddleLeft;
|
|
//
|
|
// EntityTreeViewerRow
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
Controls.Add(NamePanel);
|
|
Controls.Add(ValuePanel);
|
|
Name = "EntityTreeViewerRow";
|
|
Size = new Size(488, 38);
|
|
((System.ComponentModel.ISupportInitialize) IconPictureBox).EndInit();
|
|
NamePanel.ResumeLayout(false);
|
|
ValuePanel.ResumeLayout(false);
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Label NameLabel;
|
|
private PictureBox IconPictureBox;
|
|
private Panel NamePanel;
|
|
private Panel ValuePanel;
|
|
private Label TypeLabel;
|
|
private Label ValueLabel;
|
|
}
|