/* Function: AddOnLoad */ public void AddOnLoad(string onLoadString, Config.PropertyLocation propertyLocation, PageType type = PageType.All) { if (onLoad == null) { onLoad = new List <OnLoadStatement>(); } OnLoadStatement entry = new OnLoadStatement(); entry.Type = type; entry.Statement = onLoadString; entry.PropertyLocation = propertyLocation; onLoad.Add(entry); }
public bool HasSameProperties(OnLoadStatement other) { return(Type == other.Type && Statement == other.Statement); }