Пример #1
0
        private void btnSua_Click(object sender, EventArgs e)
        {
            int             index       = grvNoTien.CurrentCell.RowIndex;
            string          idSelected  = grvNoTien.Rows[index].Cells[0].Value.ToString();
            string          sql         = "select * from NoTien where idNotien=" + idSelected;
            DataTable       table       = DataProvider.Instance.ExecuteQuery(sql);
            NoTien          rowSelected = new NoTien(table.Rows[0]);
            FrmTaoMoiNoTien f           = new FrmTaoMoiNoTien(rowSelected);

            f.Show();
        }
Пример #2
0
        private void btnTaoMoi_Click(object sender, EventArgs e)
        {
            FrmTaoMoiNoTien f = new FrmTaoMoiNoTien();

            f.Show();
        }