private void SaveToHistry() { using (ChangeList cList = new ChangeList(true)) { cList.ID = ChangeListID; cList.DeleteBhikkuHistry(); } using (BikkuInfo bInfo = new BikkuInfo(true)) { foreach (int key in AsapuDict.Keys) { ChangeListItemAsapuwa a = AsapuDict[key]; foreach (ChangeListItemBhikku b in a.bhikkuList) { bInfo.ID = b.bInfo.ID; bInfo.AddAsapuHistry(a.asapuwaID, FromDate, ToDate, b.bInfo.Post, "", ChangeListID); } } } }