<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGUI_Windows_Form%2FAgent_Help</id>
		<title>Csharp/C Sharp/GUI Windows Form/Agent Help - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGUI_Windows_Form%2FAgent_Help"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Agent_Help&amp;action=history"/>
		<updated>2026-04-30T02:53:10Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Agent_Help&amp;diff=174&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Agent_Help&amp;diff=174&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:18Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Agent_Help&amp;diff=175&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Agent_Help&amp;diff=175&amp;oldid=prev"/>
				<updated>2010-05-26T11:33:47Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Agent Tryout==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
User Interfaces in C#: Windows Forms and Custom Controls&lt;br /&gt;
by Matthew MacDonald&lt;br /&gt;
Publisher: Apress&lt;br /&gt;
ISBN: 1590590457&lt;br /&gt;
*/&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data;&lt;br /&gt;
namespace AgentTryout&lt;br /&gt;
{&lt;br /&gt;
  /// &amp;lt;summary&amp;gt;&lt;br /&gt;
  /// Summary description for AgentTryout.&lt;br /&gt;
  /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
  public class AgentTryout : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    internal System.Windows.Forms.Button cmdClose;&lt;br /&gt;
    internal System.Windows.Forms.GroupBox GroupBox3;&lt;br /&gt;
    internal System.Windows.Forms.Label Label2;&lt;br /&gt;
    internal System.Windows.Forms.Label Label1;&lt;br /&gt;
    internal System.Windows.Forms.TextBox txtY;&lt;br /&gt;
    internal System.Windows.Forms.TextBox txtX;&lt;br /&gt;
    internal System.Windows.Forms.Button cmdMove;&lt;br /&gt;
    internal System.Windows.Forms.GroupBox GroupBox2;&lt;br /&gt;
    internal System.Windows.Forms.Button cmdSpeak;&lt;br /&gt;
    internal System.Windows.Forms.TextBox txtSpeak;&lt;br /&gt;
    internal System.Windows.Forms.GroupBox GroupBox1;&lt;br /&gt;
    internal System.Windows.Forms.Button cmdStop;&lt;br /&gt;
    internal System.Windows.Forms.Button cmdPlay;&lt;br /&gt;
    internal System.Windows.Forms.ListBox lstAnimations;&lt;br /&gt;
    private AxAgentObjects.AxAgent axAgent1;&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required designer variable.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    private System.ruponentModel.Container components = null;&lt;br /&gt;
    public AgentTryout()&lt;br /&gt;
    {&lt;br /&gt;
      //&lt;br /&gt;
      // Required for Windows Form Designer support&lt;br /&gt;
      //&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      //&lt;br /&gt;
      // TODO: Add any constructor code after InitializeComponent call&lt;br /&gt;
      //&lt;br /&gt;
    }&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Clean up any resources being used.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    protected override void Dispose( bool disposing )&lt;br /&gt;
    {&lt;br /&gt;
      if( disposing )&lt;br /&gt;
      {&lt;br /&gt;
        if (components != null) &lt;br /&gt;
        {&lt;br /&gt;
          components.Dispose();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
      base.Dispose( disposing );&lt;br /&gt;
    }&lt;br /&gt;
    #region Windows Form Designer generated code&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required method for Designer support - do not modify&lt;br /&gt;
    /// the contents of this method with the code editor.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AgentTryout));&lt;br /&gt;
      this.cmdClose = new System.Windows.Forms.Button();&lt;br /&gt;
      this.GroupBox3 = new System.Windows.Forms.GroupBox();&lt;br /&gt;
      this.Label2 = new System.Windows.Forms.Label();&lt;br /&gt;
      this.Label1 = new System.Windows.Forms.Label();&lt;br /&gt;
      this.txtY = new System.Windows.Forms.TextBox();&lt;br /&gt;
      this.txtX = new System.Windows.Forms.TextBox();&lt;br /&gt;
      this.cmdMove = new System.Windows.Forms.Button();&lt;br /&gt;
      this.GroupBox2 = new System.Windows.Forms.GroupBox();&lt;br /&gt;
      this.cmdSpeak = new System.Windows.Forms.Button();&lt;br /&gt;
      this.txtSpeak = new System.Windows.Forms.TextBox();&lt;br /&gt;
      this.GroupBox1 = new System.Windows.Forms.GroupBox();&lt;br /&gt;
      this.axAgent1 = new AxAgentObjects.AxAgent();&lt;br /&gt;
      this.cmdStop = new System.Windows.Forms.Button();&lt;br /&gt;
      this.cmdPlay = new System.Windows.Forms.Button();&lt;br /&gt;
      this.lstAnimations = new System.Windows.Forms.ListBox();&lt;br /&gt;
      this.GroupBox3.SuspendLayout();&lt;br /&gt;
      this.GroupBox2.SuspendLayout();&lt;br /&gt;
      this.GroupBox1.SuspendLayout();&lt;br /&gt;
      ((System.ruponentModel.ISupportInitialize)(this.axAgent1)).BeginInit();&lt;br /&gt;
      this.SuspendLayout();&lt;br /&gt;
      // &lt;br /&gt;
      // cmdClose&lt;br /&gt;
      // &lt;br /&gt;
      this.cmdClose.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);&lt;br /&gt;
      this.cmdClose.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
      this.cmdClose.Location = new System.Drawing.Point(295, 331);&lt;br /&gt;
      this.cmdClose.Name = &amp;quot;cmdClose&amp;quot;;&lt;br /&gt;
      this.cmdClose.Size = new System.Drawing.Size(96, 24);&lt;br /&gt;
      this.cmdClose.TabIndex = 12;&lt;br /&gt;
      this.cmdClose.Text = &amp;quot;Close&amp;quot;;&lt;br /&gt;
      this.cmdClose.Click += new System.EventHandler(this.cmdClose_Click);&lt;br /&gt;
      // &lt;br /&gt;
      // GroupBox3&lt;br /&gt;
      // &lt;br /&gt;
      this.GroupBox3.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) &lt;br /&gt;
        | System.Windows.Forms.AnchorStyles.Right);&lt;br /&gt;
      this.GroupBox3.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                          this.Label2,&lt;br /&gt;
                                          this.Label1,&lt;br /&gt;
                                          this.txtY,&lt;br /&gt;
                                          this.txtX,&lt;br /&gt;
                                          this.cmdMove});&lt;br /&gt;
      this.GroupBox3.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
      this.GroupBox3.Location = new System.Drawing.Point(8, 251);&lt;br /&gt;
      this.GroupBox3.Name = &amp;quot;GroupBox3&amp;quot;;&lt;br /&gt;
      this.GroupBox3.Size = new System.Drawing.Size(384, 64);&lt;br /&gt;
      this.GroupBox3.TabIndex = 11;&lt;br /&gt;
      this.GroupBox3.TabStop = false;&lt;br /&gt;
      this.GroupBox3.Text = &amp;quot;Move&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // Label2&lt;br /&gt;
      // &lt;br /&gt;
      this.Label2.Location = new System.Drawing.Point(84, 28);&lt;br /&gt;
      this.Label2.Name = &amp;quot;Label2&amp;quot;;&lt;br /&gt;
      this.Label2.Size = new System.Drawing.Size(20, 16);&lt;br /&gt;
      this.Label2.TabIndex = 11;&lt;br /&gt;
      this.Label2.Text = &amp;quot;Y:&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // Label1&lt;br /&gt;
      // &lt;br /&gt;
      this.Label1.Location = new System.Drawing.Point(16, 28);&lt;br /&gt;
      this.Label1.Name = &amp;quot;Label1&amp;quot;;&lt;br /&gt;
      this.Label1.Size = new System.Drawing.Size(20, 16);&lt;br /&gt;
      this.Label1.TabIndex = 10;&lt;br /&gt;
      this.Label1.Text = &amp;quot;X:&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // txtY&lt;br /&gt;
      // &lt;br /&gt;
      this.txtY.Location = new System.Drawing.Point(104, 24);&lt;br /&gt;
      this.txtY.Name = &amp;quot;txtY&amp;quot;;&lt;br /&gt;
      this.txtY.Size = new System.Drawing.Size(36, 20);&lt;br /&gt;
      this.txtY.TabIndex = 9;&lt;br /&gt;
      this.txtY.Text = &amp;quot;&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // txtX&lt;br /&gt;
      // &lt;br /&gt;
      this.txtX.Location = new System.Drawing.Point(36, 24);&lt;br /&gt;
      this.txtX.Name = &amp;quot;txtX&amp;quot;;&lt;br /&gt;
      this.txtX.Size = new System.Drawing.Size(36, 20);&lt;br /&gt;
      this.txtX.TabIndex = 8;&lt;br /&gt;
      this.txtX.Text = &amp;quot;&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // cmdMove&lt;br /&gt;
      // &lt;br /&gt;
      this.cmdMove.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
      this.cmdMove.Location = new System.Drawing.Point(248, 24);&lt;br /&gt;
      this.cmdMove.Name = &amp;quot;cmdMove&amp;quot;;&lt;br /&gt;
      this.cmdMove.Size = new System.Drawing.Size(72, 20);&lt;br /&gt;
      this.cmdMove.TabIndex = 7;&lt;br /&gt;
      this.cmdMove.Text = &amp;quot;Move&amp;quot;;&lt;br /&gt;
      this.cmdMove.Click += new System.EventHandler(this.cmdMove_Click);&lt;br /&gt;
      // &lt;br /&gt;
      // GroupBox2&lt;br /&gt;
      // &lt;br /&gt;
      this.GroupBox2.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) &lt;br /&gt;
        | System.Windows.Forms.AnchorStyles.Right);&lt;br /&gt;
      this.GroupBox2.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                          this.cmdSpeak,&lt;br /&gt;
                                          this.txtSpeak});&lt;br /&gt;
      this.GroupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
      this.GroupBox2.Location = new System.Drawing.Point(8, 163);&lt;br /&gt;
      this.GroupBox2.Name = &amp;quot;GroupBox2&amp;quot;;&lt;br /&gt;
      this.GroupBox2.Size = new System.Drawing.Size(384, 80);&lt;br /&gt;
      this.GroupBox2.TabIndex = 10;&lt;br /&gt;
      this.GroupBox2.TabStop = false;&lt;br /&gt;
      this.GroupBox2.Text = &amp;quot;Speak&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // cmdSpeak&lt;br /&gt;
      // &lt;br /&gt;
      this.cmdSpeak.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
      this.cmdSpeak.Location = new System.Drawing.Point(248, 20);&lt;br /&gt;
      this.cmdSpeak.Name = &amp;quot;cmdSpeak&amp;quot;;&lt;br /&gt;
      this.cmdSpeak.Size = new System.Drawing.Size(72, 20);&lt;br /&gt;
      this.cmdSpeak.TabIndex = 6;&lt;br /&gt;
      this.cmdSpeak.Text = &amp;quot;Speak&amp;quot;;&lt;br /&gt;
      this.cmdSpeak.Click += new System.EventHandler(this.cmdSpeak_Click);&lt;br /&gt;
      // &lt;br /&gt;
      // txtSpeak&lt;br /&gt;
      // &lt;br /&gt;
      this.txtSpeak.AcceptsReturn = true;&lt;br /&gt;
      this.txtSpeak.Location = new System.Drawing.Point(8, 20);&lt;br /&gt;
      this.txtSpeak.Multiline = true;&lt;br /&gt;
      this.txtSpeak.Name = &amp;quot;txtSpeak&amp;quot;;&lt;br /&gt;
      this.txtSpeak.Size = new System.Drawing.Size(232, 48);&lt;br /&gt;
      this.txtSpeak.TabIndex = 4;&lt;br /&gt;
      this.txtSpeak.Text = &amp;quot;&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // GroupBox1&lt;br /&gt;
      // &lt;br /&gt;
      this.GroupBox1.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) &lt;br /&gt;
        | System.Windows.Forms.AnchorStyles.Left) &lt;br /&gt;
        | System.Windows.Forms.AnchorStyles.Right);&lt;br /&gt;
      this.GroupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                          this.axAgent1,&lt;br /&gt;
                                          this.cmdStop,&lt;br /&gt;
                                          this.cmdPlay,&lt;br /&gt;
                                          this.lstAnimations});&lt;br /&gt;
      this.GroupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
      this.GroupBox1.Location = new System.Drawing.Point(8, 11);&lt;br /&gt;
      this.GroupBox1.Name = &amp;quot;GroupBox1&amp;quot;;&lt;br /&gt;
      this.GroupBox1.Size = new System.Drawing.Size(384, 144);&lt;br /&gt;
      this.GroupBox1.TabIndex = 9;&lt;br /&gt;
      this.GroupBox1.TabStop = false;&lt;br /&gt;
      this.GroupBox1.Text = &amp;quot;Animate&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // axAgent1&lt;br /&gt;
      // &lt;br /&gt;
      this.axAgent1.ContainingControl = this;&lt;br /&gt;
      this.axAgent1.Enabled = true;&lt;br /&gt;
      this.axAgent1.Location = new System.Drawing.Point(336, 32);&lt;br /&gt;
      this.axAgent1.Name = &amp;quot;axAgent1&amp;quot;;&lt;br /&gt;
      this.axAgent1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject(&amp;quot;axAgent1.OcxState&amp;quot;)));&lt;br /&gt;
      this.axAgent1.Size = new System.Drawing.Size(32, 32);&lt;br /&gt;
      this.axAgent1.TabIndex = 7;&lt;br /&gt;
      // &lt;br /&gt;
      // cmdStop&lt;br /&gt;
      // &lt;br /&gt;
      this.cmdStop.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
      this.cmdStop.Location = new System.Drawing.Point(248, 48);&lt;br /&gt;
      this.cmdStop.Name = &amp;quot;cmdStop&amp;quot;;&lt;br /&gt;
      this.cmdStop.Size = new System.Drawing.Size(72, 20);&lt;br /&gt;
      this.cmdStop.TabIndex = 6;&lt;br /&gt;
      this.cmdStop.Text = &amp;quot;Stop&amp;quot;;&lt;br /&gt;
      this.cmdStop.Click += new System.EventHandler(this.cmdStop_Click);&lt;br /&gt;
      // &lt;br /&gt;
      // cmdPlay&lt;br /&gt;
      // &lt;br /&gt;
      this.cmdPlay.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
      this.cmdPlay.Location = new System.Drawing.Point(248, 24);&lt;br /&gt;
      this.cmdPlay.Name = &amp;quot;cmdPlay&amp;quot;;&lt;br /&gt;
      this.cmdPlay.Size = new System.Drawing.Size(72, 20);&lt;br /&gt;
      this.cmdPlay.TabIndex = 5;&lt;br /&gt;
      this.cmdPlay.Text = &amp;quot;Play&amp;quot;;&lt;br /&gt;
      this.cmdPlay.Click += new System.EventHandler(this.cmdPlay_Click);&lt;br /&gt;
      // &lt;br /&gt;
      // lstAnimations&lt;br /&gt;
      // &lt;br /&gt;
      this.lstAnimations.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) &lt;br /&gt;
        | System.Windows.Forms.AnchorStyles.Left);&lt;br /&gt;
      this.lstAnimations.IntegralHeight = false;&lt;br /&gt;
      this.lstAnimations.Location = new System.Drawing.Point(8, 22);&lt;br /&gt;
      this.lstAnimations.Name = &amp;quot;lstAnimations&amp;quot;;&lt;br /&gt;
      this.lstAnimations.Size = new System.Drawing.Size(232, 109);&lt;br /&gt;
      this.lstAnimations.TabIndex = 4;&lt;br /&gt;
      // &lt;br /&gt;
      // AgentTryout&lt;br /&gt;
      // &lt;br /&gt;
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
      this.ClientSize = new System.Drawing.Size(400, 366);&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                      this.cmdClose,&lt;br /&gt;
                                      this.GroupBox3,&lt;br /&gt;
                                      this.GroupBox2,&lt;br /&gt;
                                      this.GroupBox1});&lt;br /&gt;
      this.Name = &amp;quot;AgentTryout&amp;quot;;&lt;br /&gt;
      this.Text = &amp;quot;AgentTryout&amp;quot;;&lt;br /&gt;
      this.Load += new System.EventHandler(this.AgentTryout_Load);&lt;br /&gt;
      this.GroupBox3.ResumeLayout(false);&lt;br /&gt;
      this.GroupBox2.ResumeLayout(false);&lt;br /&gt;
      this.GroupBox1.ResumeLayout(false);&lt;br /&gt;
      ((System.ruponentModel.ISupportInitialize)(this.axAgent1)).EndInit();&lt;br /&gt;
      this.ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
    #endregion&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// The main entry point for the application.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new AgentTryout());&lt;br /&gt;
    }&lt;br /&gt;
    private AgentController controller;&lt;br /&gt;
    private void AgentTryout_Load(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      controller = new AgentController(axAgent1, &amp;quot;Genie&amp;quot;);&lt;br /&gt;
      &lt;br /&gt;
      lstAnimations.DataSource=controller.GetAnimations();&lt;br /&gt;
      &lt;br /&gt;
      controller.Show();&lt;br /&gt;
    }&lt;br /&gt;
    private void cmdPlay_Click(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      controller.Animate(lstAnimations.Text);&lt;br /&gt;
    }&lt;br /&gt;
    private void cmdStop_Click(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      controller.StopAll();&lt;br /&gt;
    }&lt;br /&gt;
    private void cmdSpeak_Click(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      controller.Speak(txtSpeak.Text);&lt;br /&gt;
    }&lt;br /&gt;
    private void cmdMove_Click(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      controller.MoveTo(short.Parse(txtX.Text), short.Parse(txtY.Text));&lt;br /&gt;
    }&lt;br /&gt;
    private void cmdClose_Click(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      this.Close();&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//================================================================&lt;br /&gt;
//================================================================&lt;br /&gt;
using System;&lt;br /&gt;
using AxAgentObjects;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
namespace AgentTryout&lt;br /&gt;
{&lt;br /&gt;
  public class AgentController&lt;br /&gt;
  {&lt;br /&gt;
    // Agent variable.&lt;br /&gt;
    private AgentObjects.IAgentCtlCharacterEx agentChar;&lt;br /&gt;
    // Name of the initialized character.&lt;br /&gt;
    private string characterName;&lt;br /&gt;
    // Balloon constants&lt;br /&gt;
    private const short BalloonOn = 1;&lt;br /&gt;
    private const short SizeToText = 2;&lt;br /&gt;
    private const short AutoHide = 4;&lt;br /&gt;
    private const short AutoPace = 8;&lt;br /&gt;
    public AgentController(AxAgentObjects.AxAgent agentHost, &lt;br /&gt;
      string character)&lt;br /&gt;
    {&lt;br /&gt;
      agentHost.Characters.Load(character, null);&lt;br /&gt;
      agentChar = agentHost.Characters[character];&lt;br /&gt;
      characterName = character;&lt;br /&gt;
      // You could put your own options in this menu, if desired.&lt;br /&gt;
      agentChar.AutoPopupMenu = false;&lt;br /&gt;
      // Set balloon style.&lt;br /&gt;
      agentChar.Balloon.Style = agentChar.Balloon.Style | BalloonOn;&lt;br /&gt;
      agentChar.Balloon.Style = agentChar.Balloon.Style | SizeToText;&lt;br /&gt;
      agentChar.Balloon.Style = agentChar.Balloon.Style | AutoHide;&lt;br /&gt;
      //agentChar.Balloon.Style = agentChar.Balloon.Style &amp;amp; !(AutoPace);&lt;br /&gt;
    }&lt;br /&gt;
    public void Dispose()&lt;br /&gt;
    {&lt;br /&gt;
      if (agentChar.Visible)&lt;br /&gt;
      {&lt;br /&gt;
        agentChar.StopAll(null);&lt;br /&gt;
        agentChar.Hide(null);&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    public void Show()&lt;br /&gt;
    {&lt;br /&gt;
      agentChar.Show(null);&lt;br /&gt;
    }&lt;br /&gt;
    public void Hide()&lt;br /&gt;
    {&lt;br /&gt;
      agentChar.Hide(null);&lt;br /&gt;
    }&lt;br /&gt;
    public void StopAll()&lt;br /&gt;
    {&lt;br /&gt;
      agentChar.StopAll(null);&lt;br /&gt;
    }&lt;br /&gt;
    public void Speak(string text)&lt;br /&gt;
    {&lt;br /&gt;
      agentChar.StopAll(null);&lt;br /&gt;
      agentChar.Speak(text, &amp;quot;&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    public void Think(string text)&lt;br /&gt;
    {&lt;br /&gt;
      agentChar.StopAll(null);&lt;br /&gt;
      agentChar.Think(text);&lt;br /&gt;
    }&lt;br /&gt;
    public void Animate(string animation)&lt;br /&gt;
    {&lt;br /&gt;
      agentChar.StopAll(null);&lt;br /&gt;
      agentChar.Play(animation);&lt;br /&gt;
    }&lt;br /&gt;
    public void MoveTo(short x, short y)&lt;br /&gt;
    {&lt;br /&gt;
      agentChar.MoveTo(x, y, null);&lt;br /&gt;
    }&lt;br /&gt;
    public void GestureAt(short x, short y)&lt;br /&gt;
    {&lt;br /&gt;
      agentChar.GestureAt(x, y);&lt;br /&gt;
    }&lt;br /&gt;
    public Array GetAnimations()&lt;br /&gt;
    {&lt;br /&gt;
      ArrayList list = new ArrayList();&lt;br /&gt;
      foreach (string animation in agentChar.AnimationNames)&lt;br /&gt;
      {&lt;br /&gt;
        list.Add(animation);&lt;br /&gt;
      }&lt;br /&gt;
      return list.ToArray(typeof(string));&lt;br /&gt;
    }&lt;br /&gt;
    // Tests if the agent is visible.&lt;br /&gt;
    // If the agent is not visible it will be shown.&lt;br /&gt;
    private bool IsAgentVisible()&lt;br /&gt;
    {&lt;br /&gt;
      if (agentChar.Visible)&lt;br /&gt;
      {&lt;br /&gt;
        return true;&lt;br /&gt;
      }&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
        agentChar.Show(null);&lt;br /&gt;
          return false;&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;A href=&amp;quot;http://www.nfex.ru/Code/CSharpDownload/AgentTryout.zip&amp;quot;&amp;gt;AgentTryout.zip( 76 k)&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SMK Agent==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
Professional Windows GUI Programming Using C#&lt;br /&gt;
by Jay Glynn, Csaba Torok, Richard Conway, Wahid Choudhury, &lt;br /&gt;
   Zach Greenvoss, Shripad Kulkarni, Neil Whitlow&lt;br /&gt;
Publisher: Peer Information&lt;br /&gt;
ISBN: 1861007663&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;A href=&amp;quot;http://www.nfex.ru/Code/CSharpDownload/SMK_Agent.zip&amp;quot;&amp;gt;SMK_Agent.zip( 81 k)&amp;lt;/a&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>