예제 #1
0
파일: Menu.cs 프로젝트: vogon/Zeplin
 /// <summary>
 /// Adds a MenuItem to the Menu using a specified name.
 /// </summary>
 /// <param name="name">The MenuItem can be referenced by this name.</param>
 /// <param name="item">A MenuItem that will belong to this menu.</param>
 public void Add(String name, MenuItem item)
 {
     item.Name = name;
     menuItemCollection.Add(item);
 }
예제 #2
0
파일: Menu.cs 프로젝트: vogon/Zeplin
 /// <summary>
 /// Removes a MenuItem from the Menu by object reference
 /// </summary>
 /// <param name="item">A MenuItem that currently belongs to the Menu.</param>
 public void Remove(MenuItem item)
 {
     menuItemCollection.Remove(item);
 }
예제 #3
0
파일: Menu.cs 프로젝트: vogon/Zeplin
 /// <summary>
 /// Adds a MenuItem to the Menu using a default name.
 /// </summary>
 /// <param name="item">A MenuItem that will belong to this menu.</param>
 public void Add(MenuItem item)
 {
     menuItemCollection.Add(item);
 }