示例#1
0
        private void btnThemMoi_Click(object sender, EventArgs e)
        {
            KhoanThu_Session.themhoacsua = 1; // là đang thêm
            frmThemMoiKhoanThu kt = new frmThemMoiKhoanThu();

            kt.ShowDialog();
            string thoigian = DateTime.Now.ToString("yyyy-MM");

            LoadData(thoigian);
        }
示例#2
0
        private void btnSua_Click(object sender, EventArgs e)
        {
            KhoanThu_Session.themhoacsua = 2;
            int makt = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "makt").ToString());

            KhoanThu_Session.makt = makt;
            frmThemMoiKhoanThu kt = new frmThemMoiKhoanThu();

            kt.ShowDialog();
            string thoigian = dtpThoiGianXem.Text;

            LoadData(thoigian);
        }