コード例 #1
0
        private void ThemTyGia(object sender, EventArgs e)
        {
            CapNhatTyGia capNhatTyGia = new CapNhatTyGia("-1");

            capNhatTyGia.whenInsertSuccessed += LoadDaTa;
            capNhatTyGia.ShowDialog();
        }
コード例 #2
0
 private void SuaThongTinTyGia(object sender, EventArgs e)
 {
     if (grvtygia.GetRowCellValue(grvtygia.FocusedRowHandle, "Mã").ToString() != null)
     {
         CapNhatTyGia capNhatTyGia = new CapNhatTyGia(grvtygia.GetRowCellValue(grvtygia.FocusedRowHandle, "Mã").ToString());
         capNhatTyGia.whenInsertSuccessed += LoadDaTa;
         capNhatTyGia.ShowDialog();
     }
 }