Example #1
0
 public void SetItems(IEnumerable <String> itemsString)
 {
     foreach (var item in itemsString)
     {
         BMenuItem aMenuItemItem = new BMenuItem();
         aMenuItemItem.Header      = item;
         aMenuItemItem.IsCheckable = true;
         aMenuItemItem.Checked    += aMenuItemItem_Checked;
         this.Items.Add(aMenuItemItem);
     }
 }
Example #2
0
 public void SetItems(IEnumerable<String> itemsString)
 {
     foreach (var item in itemsString)
     {
         BMenuItem aMenuItemItem = new BMenuItem();
         aMenuItemItem.Header = item;
         aMenuItemItem.IsCheckable = true;
         aMenuItemItem.Checked += aMenuItemItem_Checked;
         this.Items.Add(aMenuItemItem);
     }
 }