コード例 #1
0
 private void Sell_Button_Click(object sender, EventArgs e)
 {
     this.Id_Box.Text = this.All_Products_Grid_View.CurrentRow.Cells["Id"].Value.ToString();
     ProductController.SellProduct(Id_Box.Text, Name_Box.Text, Batch_Label.Text, Unit_Price_Label.Text, Sell_Quantity_Box.Text);
     All_Products_Grid_View.DataSource = ProductController.GetAllProducts();
     SaleController.AddSales(Id_Box.Text, Name_Box.Text, Batch_Label.Text, Sell_Quantity_Box.Text, Unit_Price_Label.Text);
     Sold_Products_Grid_View.DataSource = SaleController.GetAllSales();
 }