public ShowDocuments(int ShowId) : base() { _showDocuments = new Fpp.Data.ShowDocuments(ModuleSettings); var ds = _showDocuments.getDocumentsForShow(ShowId); LoadFromRow(ds.Tables[0].Rows[0]); }
public static ShowDocuments Find(string name) { String moduleSettings = ModuleConfig.GetSettings(); var _showDocuments = new Fpp.Data.ShowDocuments(moduleSettings); DataSet ds = _showDocuments.Find(name); if (ds.Tables[0].Rows.Count > 0) { return new ShowDocuments(ds.Tables[0].Rows[0]); } return new ShowDocuments(); }
public static List<ShowDocuments> getShowDocumentsFor(int ShowID) { String moduleSettings = ModuleConfig.GetSettings(); Fpp.Data.ShowDocuments c = new Fpp.Data.ShowDocuments(moduleSettings); List<ShowDocuments> list = new List<ShowDocuments>(); DataSet ds = c.getDocumentsForShow(ShowID); foreach (DataRow row in ds.Tables[0].Rows) { list.Add( new ShowDocuments(row)); } return list; }
public static void Delete(int ShowId, string name) { String moduleSettings = ModuleConfig.GetSettings(); Fpp.Data.ShowDocuments c = new Fpp.Data.ShowDocuments(moduleSettings); c.Delete(ShowId, name); }
public ShowDocuments(DataRow row) : base() { _showDocuments = new Fpp.Data.ShowDocuments(ModuleSettings); LoadFromRow(row); }
public int Save() { Fpp.Data.ShowDocuments showDocuments = new Fpp.Data.ShowDocuments(ModuleSettings); if (ID > -1) { showDocuments.Update(ID, Name, Url); } else { ID = showDocuments.Add(ShowId, Name, Url); } return ID; }