public static string Serialize(ILogStructureVm structure)
        {
            var settings = new JsonSerializerSettings {
                TypeNameHandling = TypeNameHandling.All
            };

            return(JsonConvert.SerializeObject(structure, Formatting.Indented, settings));
        }
Esempio n. 2
0
 public MainWindowVm(ILogExtractionService logService, IModalHandler modalHandler, ILogParser parser, ILogStructureVm logStructure, IModuleClassifier moduleClassifier)
 {
     _logService      = logService;
     _modalHandler    = modalHandler;
     _parser          = parser;
     ModuleClassifier = moduleClassifier;
     LogPath          = string.Empty;
     LogStructure     = logStructure;
     ResetPages();
 }