예제 #1
0
        public static string Serialize(ILogStructureVm structure)
        {
            var settings = new JsonSerializerSettings {
                TypeNameHandling = TypeNameHandling.All
            };

            return(JsonConvert.SerializeObject(structure, Formatting.Indented, settings));
        }
예제 #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();
 }