Exemple #1
0
        public void Save(string FilePath = DEFAULT_PATH)
        {
            string path = Path.GetDirectoryName(FilePath);

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            var v = DataValues.Select(x => new
            {
                x.Name,
                x.StartIndex,
                x.Type,
                x.Tag
            });

            File.WriteAllText(FilePath, JsonConvert.SerializeObject(v));
        }