コード例 #1
0
 private void btnAdd_Click(object sender, RoutedEventArgs e)
 {
     if (!string.IsNullOrWhiteSpace(tbSalesId.Text.Trim()) && !string.IsNullOrWhiteSpace(tbSalesName.Text.Trim()))
     {
         SalesBEL salesBEL = new SalesBEL();
         salesBEL.Id       = tbSalesId.Text.Trim();
         salesBEL.Name     = tbSalesName.Text.Trim();
         salesBEL.IsEnable = "1";
         SalesBLL.insertSales(salesBEL);
         SetCurrentSales();
     }
 }