void LongPress(UILongPressGestureRecognizer gesture) { LichThiCell cell = (LichThiCell )gesture.View; VCHomeReminder remid = new VCHomeReminder (controller); remid.lt = tableItems [cell.num]; LTRemindItem rmItem = BRemind.GetLTRemind (SQLite_iOS.GetConnection (), remid.lt.MaMH, remid.lt.NamHoc, remid.lt.HocKy); if (rmItem != null) { remid.LoadEvent (rmItem.EventID,null); } else { remid.RemindLT (); } }
void LongPress(UILongPressGestureRecognizer gesture) { LichHocTCell cell = (LichHocTCell )gesture.View; VCHomeReminder remid = new VCHomeReminder (controller); remid.ct = Items [cell.num]; LHRemindItem rmItem = BRemind.GetLHRemind (SQLite_iOS.GetConnection (), remid.ct.Id, remid.ct.Tuan); if (rmItem != null) { remid.LoadEvent (rmItem.EventID,rmItem); } else { remid.lh = BLichHoc.GetLH (SQLite_iOS.GetConnection (), Items [cell.num].Id); remid.RemindLH (); } }