コード例 #1
0
        void CacheSupportingTypes()
        {
            SupportedObjectTypeListDict.Clear();
            SupportedTypeDrawerMode.Clear();
            DynamicSupportTypeList.Clear();
            ItemDrawer.ClearDrawerCache();


            foreach (ItemTypeSupport t in editorConfig.Supported)
            {
                DynamicSupportTypeList.Add(t.target);
                SupportedObjectTypeListDict.Add(t.target.ToString(), new List <LocalizationObjectItem>());
                SupportedTypeDrawerMode.Add(t.target.ToString(), t.Mode);
            }
        }
コード例 #2
0
ファイル: LocalizaEditor.cs プロジェクト: tng2903/Localiza
        void ResetWindow()
        {
            databaseCache       = null;
            groupCache          = null;
            referencingDatabase = null;
            // DrawEditor = DrawEditorBuffer = null;
            // DrawSideBar = DrawSideBarBuffer = null;
            // DrawHeader = DrawHeaderBuffer = null;
            DrawEditor              = DrawEditor_NoSelection;
            DrawSideBar             = DrawSideBar_None;
            DrawHeader              = DrawHeader_None;
            editableSelectedGroupID = null;
            CacheSupportingTypes();
            ItemDrawer.ResetCache();

            ItemCountCache    = -1;
            RefItemCountCache = -1;
        }