Beispiel #1
0
    public Dictionary <string, Store_Template> Interpert()
    {
        if (!ReferenceEquals(stores_Loading, null))
        {
            Dictionary <string, Store_Template> storeDic = new Dictionary <string, Store_Template>();

            foreach (KeyValuePair <string, string> line in stores_Loading.textLists)
            {
                Store_Template store = null;
                string         key   = line.Key;
                string         value = line.Value;

                store = CreateTemplate(value);

                if (!ReferenceEquals(store, null))
                {
                    storeDic.Add(key, store);
                }
            }
            if (!ReferenceEquals(storeDic, null))
            {
                return(storeDic);
            }
        }

        return(null);
    }
Beispiel #2
0
    public Store(Store_Template store_Template)
    {
        _storeContoller = StoreContoller.Instance;
        _currentItemSet = new List <StoreItemSet>();

        _definition            = store_Template;
        _isEvent               = false;
        _scheduleEvent         = ScheduleEvent.None;
        _currentStoreItemSetId = _definition.DefaultStoreItemId;
    }