public void Add(CommandBarItem item, int group, bool isChecked) { MergableItem mergeItem = new MergableItem(); mergeItem.Item = item; mergeItem.Group = group; mergeItem.Checked = isChecked; List.Add(mergeItem); }
private bool Matches(MergableItem item) { foreach (MergableItem existingItem in List) { if (existingItem.Item == item.Item && existingItem.Checked == item.Checked) { return(true); } } return(false); }
private bool Matches(MergableItem item) { foreach (MergableItem existingItem in List) { if (existingItem.Item == item.Item && existingItem.Checked == item.Checked) { return true; } } return false; }
public void Add(MergableItem item) { List.Add(item); }