예제 #1
0
파일: StoresVM.cs 프로젝트: Theerapon/GDSG
    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);
    }
예제 #2
0
파일: Store.cs 프로젝트: Theerapon/GDSG
    public Store(Store_Template store_Template)
    {
        _storeContoller = StoreContoller.Instance;
        _currentItemSet = new List <StoreItemSet>();

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