public BarCheckItem MapFrom(BarManager barManager, IMenuBarCheckItem menuBarCheckItem) { var barCheckItem = new BarCheckItem(barManager, menuBarCheckItem.Checked) { Caption = menuBarCheckItem.Caption }; UpdateBarButtonItem(menuBarCheckItem, barCheckItem); menuBarCheckItem.CheckedChanged += (value => barCheckItem.Checked = value); return(barCheckItem); }
public BarCheckItem MapFrom(IMenuBarCheckItem menuBarCheckItem) { return(MapFrom(_barManager, menuBarCheckItem)); }