Пример #1
0
        /* 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);
        }
Пример #2
0
 public bool HasSameProperties(OnLoadStatement other)
 {
     return(Type == other.Type && Statement == other.Statement);
 }