33 lines
791 B
C#
33 lines
791 B
C#
using Newtonsoft.Json;
|
|
using ResevalnaScanner.Classes;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace InfosysPublisher.Classes
|
|
{
|
|
internal class Settings
|
|
{
|
|
public class Application
|
|
{
|
|
public int BuildSeconds { get; set; }
|
|
public string LastFolder { get; set; }
|
|
|
|
public void Save(string iPath)
|
|
{
|
|
var json = JsonConvert.SerializeObject(this);
|
|
|
|
if (!Directory.Exists(Path.GetDirectoryName(iPath)))
|
|
{
|
|
Directory.CreateDirectory(Path.GetDirectoryName(iPath));
|
|
}
|
|
|
|
File.WriteAllText(iPath, json);
|
|
}
|
|
}
|
|
}
|
|
}
|