コード例 #1
0
ファイル: MenuItem.cs プロジェクト: totpero/aimp_dotnet
        public void InsertSubItem(MenuItem item, int index)
        {
            if (index < 0 || index > ChildItems.Count)
            {
                throw new IndexOutOfRangeException();
            }

            ChildItems.InsertItem(index, item);
        }
コード例 #2
0
ファイル: MenuItem.cs プロジェクト: totpero/aimp_dotnet
 public void AddSubItem(MenuItem item)
 {
     ChildItems.Add(this, item);
 }