Beispiel #1
0
        /// <summary>
        /// Method to add preset to file, using generic list.
        /// </summary>
        /// <param name="valueName"></param>
        /// <param name="obj"></param>
        public static void AddPreset(string valueName, Presets obj)
        {
            List <Presets> preset = Deserialize <Presets>();

            PresetNameForm PresetName = new PresetNameForm();

            obj.Name = valueName;

            preset.Add(obj);

            Serializer(preset);
        }