public void LaunchRecorder(string methodNameToRecord) { MethodGeneratorAddIn methodGeneratorAddIn = new MethodGeneratorAddIn(new DashboardController(), methodNameToRecord); methodGeneratorAddIn.MethodGenerated += methodGeneratorAddIn_MethodGenerated; methodGeneratorAddIn.Show(); }