// delete the record identified by the specified ID public static void Delete(int UserID, int AltHandlerID) { String moduleSettings = ModuleConfig.GetSettings(); Data.AltHandler ah = new Data.AltHandler(moduleSettings); ah.Delete(UserID, AltHandlerID); }
public static List<AltHandler> GetAllAltHandlersList(int userId) { var moduleSettings = ModuleConfig.GetSettings(); var ah = new Data.AltHandler(moduleSettings); var ds = ah.getAllAltHandlers(userId); var list = new List<AltHandler>(); if (ds.Tables[0].Rows.Count <= 0) return list; list.AddRange(from DataRow row in ds.Tables[0].Rows select new AltHandler(row)); return list; }
public static void Add(int newUserID, int newAltUserID) { String moduleSettings = ModuleConfig.GetSettings(); var ah = new Data.AltHandler(moduleSettings); ah.Add(newUserID, newAltUserID); }
public static List<AltHandler> GetAllAltHandlersList(int UserID) { String moduleSettings = ModuleConfig.GetSettings(); Data.AltHandler ah = new Data.AltHandler(moduleSettings); DataSet ds = ah.getAllAltHandlers(UserID); List<AltHandler> list = new List<AltHandler>(); if (ds.Tables[0].Rows.Count > 0) { foreach (DataRow row in ds.Tables[0].Rows) { list.Add(new AltHandler(row)); } } return list; }
public AltHandler(DataRow row) : base() { _altHandler = new Fpp.WebModules.Data.AltHandler(_moduleSettings); LoadFromRow(row); }
public AltHandler(int AltHandlerID) : base() { _altHandler = new Fpp.WebModules.Data.AltHandler(_moduleSettings); }