51d518d2a0
The functions now only do one thing.
167 lines
8.2 KiB
C#
167 lines
8.2 KiB
C#
namespace Tanshu.Accounts.PointOfSale
|
|
{
|
|
partial class CustomerListForm
|
|
{
|
|
/// <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();
|
|
this.btnAdd = new System.Windows.Forms.Button();
|
|
this.btnEdit = new System.Windows.Forms.Button();
|
|
this.btnExit = new System.Windows.Forms.Button();
|
|
this.dgvCustomers = new System.Windows.Forms.DataGridView();
|
|
this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.phone = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.address = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.bsList = new System.Windows.Forms.BindingSource(this.components);
|
|
((System.ComponentModel.ISupportInitialize)(this.dgvCustomers)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.bsList)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// btnAdd
|
|
//
|
|
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.btnAdd.Location = new System.Drawing.Point(12, 255);
|
|
this.btnAdd.Name = "btnAdd";
|
|
this.btnAdd.Size = new System.Drawing.Size(75, 75);
|
|
this.btnAdd.TabIndex = 68;
|
|
this.btnAdd.Text = "&Add";
|
|
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
|
|
//
|
|
// btnEdit
|
|
//
|
|
this.btnEdit.AccessibleName = "Done";
|
|
this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.btnEdit.Location = new System.Drawing.Point(93, 255);
|
|
this.btnEdit.Name = "btnEdit";
|
|
this.btnEdit.Size = new System.Drawing.Size(75, 75);
|
|
this.btnEdit.TabIndex = 62;
|
|
this.btnEdit.Text = "&Edit";
|
|
this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
|
|
//
|
|
// btnExit
|
|
//
|
|
this.btnExit.AccessibleName = "Done";
|
|
this.btnExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.btnExit.Location = new System.Drawing.Point(575, 255);
|
|
this.btnExit.Name = "btnExit";
|
|
this.btnExit.Size = new System.Drawing.Size(75, 75);
|
|
this.btnExit.TabIndex = 61;
|
|
this.btnExit.Text = "E&xit";
|
|
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
|
|
//
|
|
// dgvCustomers
|
|
//
|
|
this.dgvCustomers.AllowUserToAddRows = false;
|
|
this.dgvCustomers.AllowUserToDeleteRows = false;
|
|
this.dgvCustomers.AllowUserToResizeRows = false;
|
|
this.dgvCustomers.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.dgvCustomers.AutoGenerateColumns = false;
|
|
this.dgvCustomers.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
|
|
this.dgvCustomers.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
this.dgvCustomers.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
this.nameDataGridViewTextBoxColumn,
|
|
this.phone,
|
|
this.address});
|
|
this.dgvCustomers.DataSource = this.bsList;
|
|
this.dgvCustomers.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
|
this.dgvCustomers.Location = new System.Drawing.Point(12, 12);
|
|
this.dgvCustomers.MultiSelect = false;
|
|
this.dgvCustomers.Name = "dgvCustomers";
|
|
this.dgvCustomers.ReadOnly = true;
|
|
this.dgvCustomers.RowHeadersVisible = false;
|
|
this.dgvCustomers.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
|
|
this.dgvCustomers.RowTemplate.Height = 24;
|
|
this.dgvCustomers.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
|
this.dgvCustomers.Size = new System.Drawing.Size(638, 237);
|
|
this.dgvCustomers.TabIndex = 74;
|
|
this.dgvCustomers.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvCustomers_CellDoubleClick);
|
|
//
|
|
// nameDataGridViewTextBoxColumn
|
|
//
|
|
this.nameDataGridViewTextBoxColumn.DataPropertyName = "Name";
|
|
this.nameDataGridViewTextBoxColumn.HeaderText = "Name";
|
|
this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";
|
|
this.nameDataGridViewTextBoxColumn.ReadOnly = true;
|
|
this.nameDataGridViewTextBoxColumn.Width = 60;
|
|
//
|
|
// phone
|
|
//
|
|
this.phone.DataPropertyName = "Phone";
|
|
this.phone.HeaderText = "Phone";
|
|
this.phone.Name = "phone";
|
|
this.phone.ReadOnly = true;
|
|
this.phone.Width = 63;
|
|
//
|
|
// address
|
|
//
|
|
this.address.DataPropertyName = "Address";
|
|
this.address.HeaderText = "Address";
|
|
this.address.Name = "address";
|
|
this.address.ReadOnly = true;
|
|
this.address.Width = 70;
|
|
//
|
|
// bsList
|
|
//
|
|
this.bsList.DataSource = typeof(Tanshu.Accounts.Entities.Customer);
|
|
//
|
|
// CustomerListForm
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(662, 342);
|
|
this.Controls.Add(this.dgvCustomers);
|
|
this.Controls.Add(this.btnAdd);
|
|
this.Controls.Add(this.btnEdit);
|
|
this.Controls.Add(this.btnExit);
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.Name = "CustomerListForm";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "Customers";
|
|
this.Load += new System.EventHandler(this.CustomerListForm_Load);
|
|
((System.ComponentModel.ISupportInitialize)(this.dgvCustomers)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.bsList)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
internal System.Windows.Forms.Button btnAdd;
|
|
internal System.Windows.Forms.Button btnEdit;
|
|
internal System.Windows.Forms.Button btnExit;
|
|
private System.Windows.Forms.DataGridView dgvCustomers;
|
|
private System.Windows.Forms.BindingSource bsList;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Password;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn CustomerGroups;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn phone;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn address;
|
|
}
|
|
} |