title: convert code from win form to devexpress
body: <p>This code use with code of win form.So I want to use it with DevExpress and the problem is I don't know which tool in DevExpress that I can use instead of this code.I have a class below: Thanks </p>
  
  <pre><code>using System.Drawing;
  using System;
  
  namespace Extender
  {
  
  public class MenuItem : System.Windows.Forms.ToolStripMenuItem
  {
  
      private string _Command;
  
      public string Command
      {
          get
          {
              return _Command;
          }
          set
          {
              _Command = value;
          }
      }
  
      private object _Argument;
  
      public object Argument
      {
          get
          {
              return _Argument;
          }
          set
          {
              _Argument = value;
          }
      }
  
      private Int16 _ModuleID;
  
      public Int16 ModuleID
      {
          get
          {
              return _ModuleID;
          }
          set
          {
              _ModuleID = value;
          }
      }
  
     public      MenuItem()
      {
      }
  
   public     MenuItem(string text)
      {
          this.Text = text;
      }
  
    public       MenuItem(string text, EventHandler onclick) :
                  this(text)
          {
              this.Click += onclick;
          }
      }
  }
  </code></pre>
  
  <p>And the code below is the method that I use to create menu from database using entity framework with winform </p>
  
  <pre><code>private void LoadMenus(ToolStripItemCollection Menu,string ParentName)
      {
  
          using (var ctx = new CambbusEntities())
          {
  
              foreach (var obj in ctx.view_ObjectDetails.Where(a =&gt; a.ObjectType == "MENU" &amp;&amp; a.ParentName==ParentName &amp;&amp;a.LanguageID == Cambbus.Properties.Settings.Default.LanguageID ).OrderBy(a=&gt;a.SortOrder))
              {
  
                  string mText = obj.ObjectText;
                  string nName = obj.ObjectName;
                  if (mText == "-")
                      continue;
                  Extender.MenuItem m = new Extender.MenuItem(mText);
                  m.Alignment = ToolStripItemAlignment.Left;
                  //m.Text = obj.ObjectText;
                  //m.Name = obj.ParentName;
                  m.ModuleID = (Int16)obj.ModuleID;
                  m.Command = obj.Command;
                  m.Argument = obj.Argument;
                  m.Image = App.GetImageByEntity((obj.ImageTag)+"");
  
                  if (m.Command!=""){
                      m.Click += DynamicMenuClick;
                  }
                  bool Is4Perm = obj.ModuleID &gt; 0;
                  if(Is4Perm){
                      m.Enabled = CurrentUser.CanViewModule((Int16)obj.ModuleID);
                  }
                  Int16 shortcutNum = ((Int16)(obj.ShortcutNum));
                  if (shortcutNum != 0)
                  {
                     m.ShortcutKeys = ((System.Windows.Forms.Keys)(Keys.Control)) | ((System.Windows.Forms.Keys)(shortcutNum));
                  }
                  Menu.Add(m);
                  LoadMenus(m.DropDownItems,nName);
  
              }
          }
      }
  </code></pre>
  
  <p>The problem is I don't know the properties of DevExpress that can use instead winform. So can I use DevExpress instead of winform? 
  <a href="http://i.stack.imgur.com/yd59j.jpg" rel="nofollow">this is my image of winform</a>
  and I want to change to DevExpress same as in picture <a href="http://i.stack.imgur.com/uUrhu.jpg" rel="nofollow">DevExpress Menu</a> by using my class and method.thanks</p>