private static CheckMenuItem GetCheckedMenuItem(CheckedMenuItemParams @params)
 {
     var menuItem = new CheckMenuItem(@params.Text)
     {
         Visible = true
     };
     if (@params.Handler != null)
     {
         menuItem.Activated += ((sender, e) =>
         {
             @params.Handler(@params, new CheckedMenuItemEventArgs { Checked = ((CheckMenuItem)sender).Active });
         });
     }
     if (@params.OpeningHandler != null)
     {
         @params.OpeningHandler(@params, new OpeningEventArgs { MenuItem = new GtkMenuItemHanlder(menuItem) });
     }
     return menuItem;
 }
 private static ToolStripMenuItem GetCheckedMenuItem(CheckedMenuItemParams @params)
 {
     var menuItem = GetMenuItem(new ImageMenuItemParams
     {
         Text = @params.Text
     });
     menuItem.CheckOnClick = true;
     if (@params.Handler != null)
     {
         menuItem.Click +=
             ((sender, e) =>
              @params.Handler(@params, new CheckedMenuItemEventArgs {Checked = ((ToolStripMenuItem) sender).Checked})
             );
     }
     return menuItem;
 }