Beispiel #1
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            frmThemHangHoa frm = new frmThemHangHoa();

            frm.ShowDialog();
            gridControl1.DataSource = HangHoaBUS.DanhSach();
        }
Beispiel #2
0
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            int    vitri  = gridView1.GetFocusedDataSourceRowIndex();
            string MaHang = gridView1.GetRowCellValue(vitri, "MaHang").ToString();

            HangHoaBUS.Xoa(MaHang);
            gridControl1.DataSource = HangHoaBUS.DanhSach();
        }
Beispiel #3
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            int           vitri  = gridView1.GetFocusedDataSourceRowIndex();
            string        MaHang = gridView1.GetRowCellValue(vitri, "MaHang").ToString();
            frmSuaHangHoa frm    = new frmSuaHangHoa();
            SendData      s      = new SendData(frm.GetData);

            s(MaHang);
            frm.ShowDialog();
            gridControl1.DataSource = HangHoaBUS.DanhSach();
        }
Beispiel #4
0
 public frmHangHoa()
 {
     InitializeComponent();
     gridControl1.DataSource = HangHoaBUS.DanhSach();
 }