Exemplo n.º 1
0
        public static void SaveObjectCombos()
        {
            string p_Default = Path.Combine(Publics.General.MyDataPath, p_ObjectCombos);
            string p_Custom  = Path.Combine(Publics.General.MyDataPath, p_ObjectCombosCustom);

            ObjectCombos.WriteToFile(p_Default);
            ObjectCombosCustom.WriteToFile(p_Custom);
        }
Exemplo n.º 2
0
        public static void LoadObjectCombos()
        {
            string p_Default = Path.Combine(Publics.General.MyDataPath, p_ObjectCombos);
            string p_Custom  = Path.Combine(Publics.General.MyDataPath, p_ObjectCombosCustom);

            if (File.Exists(p_Default))
            {
                ObjectCombos.ReadFromFile(p_Default);
            }

            if (File.Exists(p_Custom))
            {
                ObjectCombosCustom.ReadFromFile(p_Custom);
            }

            hasLoadedObjectCombos = true;
        }