public SyncCommandData GetConfig() { using (StreamReader file = File.OpenText(ConfigFilePath)) { JsonSerializer serializer = new JsonSerializer(); SyncCommandData config = (SyncCommandData)serializer.Deserialize(file, typeof(SyncCommandData)); return(config); } }
public void SetData(SyncCommandData syncCommandData) { SyncCommandData = syncCommandData; }