Пример #1
0
		public static void AddLH (LichHoc lt, SQLiteConnection connection)
		{
			DataProvider dtb = new DataProvider (connection);
			if (dtb.GetLH_Ma (lt.MaMH) == null) {
				dtb.AddLH (lt);
			}
		}
Пример #2
0
		public static bool AddLH (LichHoc lh, SQLiteConnection connection)
		{
			DataProvider dtb = new DataProvider (connection);
			if (dtb.GetLH_Ma (lh.MaMH, lh.NamHoc,lh.HocKy) == null) {
				dtb.AddLH (lh);
				return true;
			}
			return false;
		}