public void Add(ToolStripMenuItem item, int group, bool isChecked)
 {
     MergableItem mergeItem = new MergableItem();
     mergeItem.Item = item;
     mergeItem.Group = group;
     mergeItem.Checked = isChecked;
     List.Add(mergeItem);
 }
Пример #2
0
        public void Add(ToolStripMenuItem item, int group, bool isChecked)
        {
            MergableItem mergeItem = new MergableItem();

            mergeItem.Item    = item;
            mergeItem.Group   = group;
            mergeItem.Checked = isChecked;
            List.Add(mergeItem);
        }
Пример #3
0
 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;
 }
Пример #5
0
 public void Add(MergableItem item)
 {
     List.Add(item);
 }
 public void Add(MergableItem item)
 {
     List.Add(item);
 }