title: Ext.NET Click Handler string
body: <p>I'm trying to use a click handler. My function is as so (these are both in the same class):</p>
  
  <pre><code>[DirectMethod]
  protected bool Save()
  {
        //do work
  }
  </code></pre>
  
  <p>and I attempted to call it with:</p>
  
  <pre><code>using (Ext.Net.Button yes = new Ext.Net.Button())
  {
       // random set up for button
  
       // failed because it couldn't find namespace
       yes.Listeners.Click.Handler = "Namespace.Class.Save();";
  
       // attempt 2: removed the first one and assumed that the [DirectMethod] sets
       // it to be Ext.net.DirectMethods.Save();
       yes.Listeners.Click.Handler = "Ext.net.DirectMethods.Save();"
  
  }
  </code></pre>
  
  <p>First failed unable to locate namespace, second failed because "object doesn't support this property or method."</p>
  
  <p>What string do I use to render this? If not by the <code>Listeners.Click.Handler</code> way, how else can I do it?</p>
  
  <p>The function is in a custom control that extends <code>Ext.Net.Window</code> and the using item is in a function called <code>Display()</code> that renders the control.</p>
  
  <p>Per vladsch's response, I have changed it to:</p>
  
  <pre><code> [DirectMethod(Namespace="MyMethods")]
   public bool Save()
   {
        //do work
   }
  </code></pre>
  
  <p>and the handler string is now:</p>
  
  <pre><code> yes.Listeners.Click.Handler = "MyMethods.Save();"
  </code></pre>
  
  <p>when doing so, I get "'MyMethods' is undefined."</p>