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