private static ImageMenuItem GetMenuItem(ImageMenuItemParams @params)
 {
     var menuItem = new ImageMenuItem(@params.Text)
     {
         Image = ToImage(@params.Image),
         Visible = true
     };
     if (@params.Handler != null)
     {
         menuItem.Activated += ((sender, e) =>
         {
             @params.Handler(@params, new EventArgs());
         });
     }
     if (@params.OpeningHandler != null)
     {
         @params.OpeningHandler(@params, new OpeningEventArgs { MenuItem = new GtkMenuItemHanlder(menuItem) });
     }
     return menuItem;
 }
 private static ToolStripMenuItem GetMenuItem(ImageMenuItemParams @params)
 {
     var menuItem = new ToolStripMenuItem
     {
         Image = @params.Image,
         Text = @params.Text
     };
     if (@params.Handler != null)
     {
         menuItem.Click +=((sender, e)=>
         {
             @params.Handler(@params, new EventArgs());
         });
     }
     return menuItem;
 }