You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
586 B

using Newtonsoft.Json;
using Pores.Models;
using System.Collections.Generic;
using System.IO;
namespace Pores.Controllers
{
public class PoresToFileController : BaseSaveController<IList<Pore>>
{
public string FileName { get; }
public override void Load()
{
}
public override void Save()
{
var output = JsonConvert.SerializeObject(Data);
File.WriteAllText(FileName, output);
}
public PoresToFileController(string fileName)
{
FileName = fileName;
}
}
}