public void ParseInputFile()
        {
            try
            {
                if (ScriptDocument == null)
                {
                    return;
                }

                CurrentSystem             = _importer.ImportNeutralFile(ScriptDocument.Text);
                ComponentsForPureAnalysis = CurrentSystem.Components.Select(c => new CheckableComponent()
                {
                    Data = c
                }).ToList();
            }
            catch (Exception e)
            {
                _aggregator.PublishOnUIThread(new LogMessage {
                    Sender = this, TimeStamp = DateTime.Now, Channel = LogChannels.Error, MessageText = e.Message
                });
            }
        }
Example #2
0
 public ThermodynamicSystem LoadThermodynamicSystem(ThermodynamicSystemEntity entity)
 {
     return(_importer.ImportNeutralFile(entity.SourceCode));
 }