Beispiel #1
0
        void UpdateSelectedKeys()
        {
            // Remove all keys that are not in this source
            string trans;

            for (int i = mSelectedKeys.Count - 1; i >= 0; --i)
            {
                if (!mLanguageSource.TryGetTranslation(mSelectedKeys[i], out trans))
                {
                    mSelectedKeys.RemoveAt(i);
                }
            }

            // Remove all Categories that are not in this source

            /*var mCateg = mLanguageSource.GetCategories();
             * for (int i=mSelectedCategories.Count-1; i>=0; --i)
             *      if (!mCateg.Contains(mSelectedCategories[i]))
             *              mSelectedCategories.RemoveAt(i);
             * if (mSelectedCategories.Count==0)
             *      mSelectedCategories = mCateg;*/

            if (mSelectedScenes.Count == 0)
            {
                mSelectedScenes.Add(Editor_GetCurrentScene());
            }
        }