private void CarregarFormulario_Home(object sender, EventArgs e) { controlAgent.Characters.Load("Merlin", "Merlin.acs"); avatar = (AgentObjects.IAgentCtlCharacter)controlAgent.Characters["Merlin"]; lbTotal.Text = ""; avatar.Show(0); avatar.Speak("Olá! Eu sou o Merlin, estou aqui para ajudar você na inserção de produtos no gestor de nota fiscal. ", null); }
private void Form1_Load(object sender, System.EventArgs e) { try { this.axAgent1.Characters.Load("Sarah", "SarahJane.acs"); //load the character in the axAgent1 object -- axAgent1 can load more than one character this.speaker = this.axAgent1.Characters["Sarah"]; //give the speaker object the character to show it this.speaker.Show(0); } catch (FileNotFoundException) //if the charater not found // using IO { MessageBox.Show("Invalid charater location"); } }
private void Form1_Load(object sender, System.EventArgs e) { try { this.axAgent1.Characters.Load("Sarah" , "SarahJane.acs"); //load the character in the axAgent1 object -- axAgent1 can load more than one character this.speaker = this.axAgent1.Characters["Sarah"]; //give the speaker object the character to show it this.speaker.Show(0); } catch(FileNotFoundException) //if the charater not found // using IO { MessageBox.Show("Invalid charater location"); } }