|
@@ -40,6 +40,7 @@
|
|
|
this.Column2 = new System.Windows.Forms.DataGridViewImageColumn();
|
|
|
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
+ this.BtnDell = new System.Windows.Forms.Button();
|
|
|
this.panel1.SuspendLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.DgvProductList)).BeginInit();
|
|
@@ -96,14 +97,16 @@
|
|
|
this.Column2,
|
|
|
this.Column3,
|
|
|
this.Column7});
|
|
|
- this.DgvProductList.Location = new System.Drawing.Point(12, 78);
|
|
|
+ this.DgvProductList.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
|
|
|
+ this.DgvProductList.Location = new System.Drawing.Point(16, 75);
|
|
|
+ this.DgvProductList.MultiSelect = false;
|
|
|
this.DgvProductList.Name = "DgvProductList";
|
|
|
- this.DgvProductList.ReadOnly = true;
|
|
|
this.DgvProductList.RowHeadersVisible = false;
|
|
|
this.DgvProductList.RowTemplate.Height = 100;
|
|
|
this.DgvProductList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
|
|
- this.DgvProductList.Size = new System.Drawing.Size(748, 415);
|
|
|
+ this.DgvProductList.Size = new System.Drawing.Size(748, 397);
|
|
|
this.DgvProductList.TabIndex = 2;
|
|
|
+ this.DgvProductList.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.DgvProductList_CellValueChanged);
|
|
|
//
|
|
|
// PanelOrder
|
|
|
//
|
|
@@ -111,7 +114,7 @@
|
|
|
this.PanelOrder.Controls.Add(this.LblDiscount);
|
|
|
this.PanelOrder.Controls.Add(this.BtnCheckOut);
|
|
|
this.PanelOrder.Dock = System.Windows.Forms.DockStyle.Bottom;
|
|
|
- this.PanelOrder.Location = new System.Drawing.Point(0, 499);
|
|
|
+ this.PanelOrder.Location = new System.Drawing.Point(0, 514);
|
|
|
this.PanelOrder.Name = "PanelOrder";
|
|
|
this.PanelOrder.Size = new System.Drawing.Size(772, 70);
|
|
|
this.PanelOrder.TabIndex = 3;
|
|
@@ -167,14 +170,25 @@
|
|
|
//
|
|
|
this.Column7.HeaderText = "ProductCount";
|
|
|
this.Column7.Name = "Column7";
|
|
|
- this.Column7.ReadOnly = true;
|
|
|
+ //
|
|
|
+ // BtnDell
|
|
|
+ //
|
|
|
+ this.BtnDell.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
|
+ this.BtnDell.Location = new System.Drawing.Point(16, 481);
|
|
|
+ this.BtnDell.Name = "BtnDell";
|
|
|
+ this.BtnDell.Size = new System.Drawing.Size(322, 27);
|
|
|
+ this.BtnDell.TabIndex = 4;
|
|
|
+ this.BtnDell.Text = "Удалить товар из заказа";
|
|
|
+ this.BtnDell.UseVisualStyleBackColor = true;
|
|
|
+ this.BtnDell.Click += new System.EventHandler(this.BtnDell_Click);
|
|
|
//
|
|
|
// FormOrder
|
|
|
//
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 23F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
this.BackColor = System.Drawing.Color.White;
|
|
|
- this.ClientSize = new System.Drawing.Size(772, 569);
|
|
|
+ this.ClientSize = new System.Drawing.Size(772, 584);
|
|
|
+ this.Controls.Add(this.BtnDell);
|
|
|
this.Controls.Add(this.PanelOrder);
|
|
|
this.Controls.Add(this.DgvProductList);
|
|
|
this.Controls.Add(this.panel1);
|
|
@@ -184,6 +198,7 @@
|
|
|
this.Name = "FormOrder";
|
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
|
this.Text = "СУБД \"Книжный клуб\"";
|
|
|
+ this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormOrder_FormClosing);
|
|
|
this.Load += new System.EventHandler(this.FormOrder_Load);
|
|
|
this.panel1.ResumeLayout(false);
|
|
|
this.panel1.PerformLayout();
|
|
@@ -201,12 +216,13 @@
|
|
|
private System.Windows.Forms.Label label1;
|
|
|
private System.Windows.Forms.PictureBox pictureBox1;
|
|
|
private System.Windows.Forms.DataGridView DgvProductList;
|
|
|
- private System.Windows.Forms.DataGridViewImageColumn Column2;
|
|
|
- private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
|
|
|
- private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
|
|
|
private System.Windows.Forms.Panel PanelOrder;
|
|
|
private System.Windows.Forms.Label LblSum;
|
|
|
private System.Windows.Forms.Label LblDiscount;
|
|
|
private System.Windows.Forms.Button BtnCheckOut;
|
|
|
+ private System.Windows.Forms.DataGridViewImageColumn Column2;
|
|
|
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
|
|
|
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
|
|
|
+ private System.Windows.Forms.Button BtnDell;
|
|
|
}
|
|
|
}
|