Завершение обновления формы отображения
This commit is contained in:
@@ -0,0 +1,148 @@
|
||||
namespace Pf2eViewer.DatabaseViewer;
|
||||
|
||||
partial class DatabaseViewerControl
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
BindingNavigator = new CoreBindingNavigator();
|
||||
SearchTextBox = new TextBox();
|
||||
DataGridView = new DataGridView();
|
||||
DbBindingSource = new BindingSource(components);
|
||||
PagesBindingSource = new BindingSource(components);
|
||||
Id = new DataGridViewTextBoxColumn();
|
||||
EntityName = new DataGridViewTextBoxColumn();
|
||||
Rarity = new DataGridViewTextBoxColumn();
|
||||
(BindingNavigator).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)DataGridView).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)DbBindingSource).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)PagesBindingSource).BeginInit();
|
||||
SuspendLayout();
|
||||
//
|
||||
// BindingNavigator
|
||||
//
|
||||
BindingNavigator.AddNewItem = null;
|
||||
BindingNavigator.DeleteItem = null;
|
||||
BindingNavigator.ImeMode = ImeMode.NoControl;
|
||||
BindingNavigator.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow;
|
||||
BindingNavigator.Location = new Point(0, 0);
|
||||
BindingNavigator.Name = "BindingNavigator";
|
||||
BindingNavigator.Size = new Size(345, 25);
|
||||
BindingNavigator.Stretch = true;
|
||||
BindingNavigator.TabIndex = 1;
|
||||
BindingNavigator.Text = "coreBindingNavigator1";
|
||||
BindingNavigator.RefreshItems += BindingNavigator_RefreshItems;
|
||||
//
|
||||
// SearchTextBox
|
||||
//
|
||||
SearchTextBox.Dock = DockStyle.Top;
|
||||
SearchTextBox.Location = new Point(0, 25);
|
||||
SearchTextBox.Name = "SearchTextBox";
|
||||
SearchTextBox.PlaceholderText = "Поиск";
|
||||
SearchTextBox.Size = new Size(345, 23);
|
||||
SearchTextBox.TabIndex = 3;
|
||||
SearchTextBox.TextChanged += SearchTextBox_TextChanged;
|
||||
SearchTextBox.Leave += SearchTextBox_Leave;
|
||||
//
|
||||
// DataGridView
|
||||
//
|
||||
DataGridView.AllowUserToAddRows = false;
|
||||
DataGridView.AllowUserToDeleteRows = false;
|
||||
DataGridView.AutoGenerateColumns = false;
|
||||
DataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCellsExceptHeader;
|
||||
DataGridView.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders;
|
||||
DataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
DataGridView.Columns.AddRange(new DataGridViewColumn[] { Id, EntityName, Rarity });
|
||||
DataGridView.DataSource = DbBindingSource;
|
||||
DataGridView.Dock = DockStyle.Fill;
|
||||
DataGridView.Location = new Point(0, 48);
|
||||
DataGridView.MultiSelect = false;
|
||||
DataGridView.Name = "DataGridView";
|
||||
DataGridView.ReadOnly = true;
|
||||
DataGridView.RowHeadersVisible = false;
|
||||
DataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||
DataGridView.Size = new Size(345, 345);
|
||||
DataGridView.TabIndex = 4;
|
||||
DataGridView.RowStateChanged += DataGridView_RowStateChanged;
|
||||
//
|
||||
// Id
|
||||
//
|
||||
Id.DataPropertyName = "Id";
|
||||
Id.HeaderText = "Id";
|
||||
Id.Name = "Id";
|
||||
Id.ReadOnly = true;
|
||||
Id.Resizable = DataGridViewTriState.False;
|
||||
Id.SortMode = DataGridViewColumnSortMode.NotSortable;
|
||||
Id.Width = 5;
|
||||
//
|
||||
// EntityName
|
||||
//
|
||||
EntityName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||
EntityName.DataPropertyName = "Name";
|
||||
EntityName.HeaderText = "Name";
|
||||
EntityName.Name = "EntityName";
|
||||
EntityName.ReadOnly = true;
|
||||
EntityName.Resizable = DataGridViewTriState.False;
|
||||
EntityName.SortMode = DataGridViewColumnSortMode.NotSortable;
|
||||
//
|
||||
// Rarity
|
||||
//
|
||||
Rarity.DataPropertyName = "Rarity";
|
||||
Rarity.HeaderText = "Rarity";
|
||||
Rarity.Name = "Rarity";
|
||||
Rarity.ReadOnly = true;
|
||||
Rarity.Resizable = DataGridViewTriState.False;
|
||||
Rarity.SortMode = DataGridViewColumnSortMode.NotSortable;
|
||||
Rarity.Width = 5;
|
||||
//
|
||||
// DatabaseViewerControl
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
Controls.Add(DataGridView);
|
||||
Controls.Add(SearchTextBox);
|
||||
Controls.Add(BindingNavigator);
|
||||
Name = "DatabaseViewerControl";
|
||||
Size = new Size(345, 393);
|
||||
(BindingNavigator).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)DataGridView).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)DbBindingSource).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)PagesBindingSource).EndInit();
|
||||
ResumeLayout(false);
|
||||
PerformLayout();
|
||||
}
|
||||
|
||||
#endregion
|
||||
private CoreBindingNavigator BindingNavigator;
|
||||
private TextBox SearchTextBox;
|
||||
private DataGridView DataGridView;
|
||||
private BindingSource DbBindingSource;
|
||||
private BindingSource PagesBindingSource;
|
||||
private DataGridViewTextBoxColumn Id;
|
||||
private DataGridViewTextBoxColumn EntityName;
|
||||
private DataGridViewTextBoxColumn Rarity;
|
||||
}
|
||||
Reference in New Issue
Block a user