コード例 #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();
 }
 private void Refund_Product_Load(object sender, EventArgs e)
 {
     Product_View_Grid.DataSource = SaleController.GetAllSales();
     Refund_List_Grid.DataSource  = RefundController.GetAllRefunds();
 }
コード例 #3
0
 private void All_Sales_View_Load(object sender, EventArgs e)
 {
     metroGrid.DataSource = SaleController.GetAllSales();
 }
コード例 #4
0
 private void Form_Load(object sender, EventArgs e)
 {
     All_Products_Grid_View.DataSource  = ProductController.GetAllProducts();
     Sold_Products_Grid_View.DataSource = SaleController.GetAllSales();
 }