public static StylesheetProperty MakeNew(string Text, StyleSheet sheet, BusinessLogic.User user) { CMSNode newNode = CMSNode.MakeNew(sheet.Id, moduleObjectType, user.Id, 2, Text, Guid.NewGuid()); Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(_ConnString,CommandType.Text,"Insert into cmsStylesheetProperty (nodeId,stylesheetPropertyAlias,stylesheetPropertyValue) values ('"+ newNode.Id +"','" + Text+ "','')"); return new StylesheetProperty(newNode.Id); }
public static StyleSheet[] GetAll() { Guid[] topNodeIds = CMSNode.TopMostNodeIds(moduleObjectType); StyleSheet[] retval = new StyleSheet[topNodeIds.Length]; for (int i = 0; i < topNodeIds.Length;i++) retval[i] = new StyleSheet(topNodeIds[i]); return retval; }