private void simpleButton1_Click(object sender, EventArgs e) { InLoadDL f = new InLoadDL(MasterTb, EndTk, EndTk - n + 1); TbCurrent = f.tbCr; f.ShowDialog(); }
//Save private void btOk_Click(object sender, EventArgs e) { db.BeginMultiTrans(); SaveSohieu(); if (!SaveImation()) { db.RollbackMultiTrans(); return; } if (db.HasErrors) { db.RollbackMultiTrans(); return; } if (TbCurrent == null) { InLoadDL f = new InLoadDL(MasterTb, EndTk, EndTk - n + 1); TbCurrent = f.tbCr; } if (!SaveWC(TbCurrent)) { return; } DataTable tbNVL = GetNVL(); if (!SaveNVL(tbNVL)) { return; } if (db.HasErrors) { db.RollbackMultiTrans(); return; } else { db.EndMultiTrans(); } }