protected async void launchLectureManager(String fileName, String text)
{
IApplicationAgent agent = Context.AppAgentMgr.GetAgentByName("Lecture Manager Agent");
if (agent != null)
{
IExtension extension = agent;
extension.GetInvoker().SetValue("LoadFromFile", false);
if (!String.IsNullOrEmpty(fileName))
{
extension.GetInvoker().SetValue("LectureFile", fileName);
}
extension.GetInvoker().SetValue("LectureText", text);
await Context.AppAgentMgr.ActivateAgent(agent as IFunctionalAgent);
}
}