Handles even selling

This commit is contained in:
2021-03-04 10:38:47 +01:00
parent 3959943607
commit 2841ada2cf
4 changed files with 90 additions and 7 deletions

View File

@ -50,6 +50,8 @@ namespace StockInfo
this.txtId = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.gbSell = new System.Windows.Forms.GroupBox();
this.txtGainLoose = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
this.btnConfirm = new System.Windows.Forms.Button();
this.txtRemainingNo = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
@ -137,7 +139,7 @@ namespace StockInfo
this.gbInfo.Controls.Add(this.label1);
this.gbInfo.Location = new System.Drawing.Point(13, 170);
this.gbInfo.Name = "gbInfo";
this.gbInfo.Size = new System.Drawing.Size(276, 216);
this.gbInfo.Size = new System.Drawing.Size(276, 250);
this.gbInfo.TabIndex = 1;
this.gbInfo.TabStop = false;
this.gbInfo.Text = "Actual Stock";
@ -246,6 +248,8 @@ namespace StockInfo
//
// gbSell
//
this.gbSell.Controls.Add(this.txtGainLoose);
this.gbSell.Controls.Add(this.label12);
this.gbSell.Controls.Add(this.btnConfirm);
this.gbSell.Controls.Add(this.txtRemainingNo);
this.gbSell.Controls.Add(this.label11);
@ -259,19 +263,37 @@ namespace StockInfo
this.gbSell.Controls.Add(this.label7);
this.gbSell.Location = new System.Drawing.Point(296, 170);
this.gbSell.Name = "gbSell";
this.gbSell.Size = new System.Drawing.Size(236, 216);
this.gbSell.Size = new System.Drawing.Size(236, 250);
this.gbSell.TabIndex = 2;
this.gbSell.TabStop = false;
this.gbSell.Text = "Sell decision";
//
// txtGainLoose
//
this.txtGainLoose.Location = new System.Drawing.Point(121, 165);
this.txtGainLoose.Name = "txtGainLoose";
this.txtGainLoose.ReadOnly = true;
this.txtGainLoose.Size = new System.Drawing.Size(73, 23);
this.txtGainLoose.TabIndex = 14;
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(12, 168);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(73, 15);
this.label12.TabIndex = 13;
this.label12.Text = "Gain / Loose";
//
// btnConfirm
//
this.btnConfirm.Location = new System.Drawing.Point(121, 165);
this.btnConfirm.Location = new System.Drawing.Point(121, 221);
this.btnConfirm.Name = "btnConfirm";
this.btnConfirm.Size = new System.Drawing.Size(75, 23);
this.btnConfirm.TabIndex = 12;
this.btnConfirm.Text = "Confirm";
this.btnConfirm.UseVisualStyleBackColor = true;
this.btnConfirm.Click += new System.EventHandler(this.btnConfirm_Click);
//
// txtRemainingNo
//
@ -411,5 +433,7 @@ namespace StockInfo
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox txtSoldDate;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox txtGainLoose;
private System.Windows.Forms.Label label12;
}
}