private void btnBuildSignalMap_Click( object sender, EventArgs e ) { try { HourGlass.Start(); var mapper = new SignalMapper(); //var xmlPath = (String) ATMLContext.GetProperty( "translator.parser.xml-path" ); string projectName = ProjectManager.ProjectName; if (string.IsNullOrEmpty( projectName )) throw new Exception( "You must open a project in order to map signals." ); //string projectPath = Path.Combine( ATMLContext.TESTSET_PATH, projectName ); string xmlPath = Path.Combine( ATMLContext.ProjectTranslatorAixmlPath, projectName + ".aixml.xml" ); if (!File.Exists( xmlPath )) throw new TranslationException( "Mapping Failed: Missing AIXML File." ); mapper.Process( FileManager.ReadFile( xmlPath ) ); var form = new ATMLSignalMappingForm( mapper.UsedSignalsList ) {TreeModel = SignalManager.Instance.TSFSignalTree}; HourGlass.Stop(); form.ShowDialog( this ); } catch (Exception err) { LogManager.SourceError( ATMLTranslator.SOURCE, err ); } finally { HourGlass.Stop(); } }