title: mvvm light - messaging ( VS "tab friendly" class )
body: <p>I have a msgClass looking like this for all my appMessages ( using mvvm light messenger )</p>
  
  <pre><code>public static class AppMessages
  {
      enum MessageTypes
      {
          changeStateMsg,
          inputMsg
      }
  
      public class MsgBase
      {
          public static void unRegister(object recipient)
          {
              Messenger.Default.Unregister&lt;bool&gt;(recipient);
          }
      }
  
      public static class changeState : MsgBase
      {
          public static void Send(bool stateChange)
          {
              Messenger.Default.Send&lt;bool&gt;(stateChange, MessageTypes.changeStateMsg);
          }
  
          public static void Register(object recipient, Action&lt;bool&gt; action)
          {
              Messenger.Default.Register&lt;bool&gt;(recipient, MessageTypes.changeStateMsg, action);
          }
      }
  
      public static class inputMsg : MsgBase
      {
          public static void Send(string key)
          {
              Messenger.Default.Send&lt;string&gt;(key, MessageTypes.inputMsg);
          }
  
          public static void Register(object recipient, Action&lt;string&gt; action)
          {
              Messenger.Default.Register&lt;string&gt;(recipient, MessageTypes.inputMsg, action);
          }
      }
  }
  </code></pre>
  
  <p>Just wandered if is possible to make it more VS tab friendly  I´am registrating it like this :</p>
  
  <pre><code>AppMessages.changeState.Register(this, onStateChange );
  </code></pre>
  
  <p>My question is how can I make it auto-generate the onStateChange method ( rightClicking only makes me able to make a property/field )</p>
  
  <p>So its a "being lazy question" I know I should only write this : </p>
  
  <pre><code> public void onStateChange(bool b)
      { 
      }
  </code></pre>
  
  <p>But if any of you know how to autogenerate it ?? I whould be happy  :)</p>
  
  <p>/cheers </p>