private void BuildSimpleMenu()
{
MenuItem newItem;
MenuGroup newGroup; // Create the "Products" item
newItem = Menu1.TopGroup.Items.Add();
newItem.Label = "Products"; // Create the "Products" sub group
newGroup = newItem.AddSubGroup();
newItem = newGroup.Items.Add();
newItem.Label = "Web Controls";
newItem = newGroup.Items.Add();
newItem.Label = "Win Controls";
newItem = newGroup.Items.Add();
newItem.Label = "Other Tools"; // Create the "Services" item
newItem = Menu1.TopGroup.Items.Add();
newItem.Label = "Services"; // Create the "Services" sub group
newGroup = newItem.AddSubGroup();
newItem = newGroup.Items.Add();
newItem.Label = "Consulting";
newItem = newGroup.Items.Add();
newItem.Label = "Web Production";
newItem = newGroup.Items.Add();
newItem.Label = "System Integration";
}
{
MenuItem newItem;
MenuGroup newGroup; // Create the "Products" item
newItem = Menu1.TopGroup.Items.Add();
newItem.Label = "Products"; // Create the "Products" sub group
newGroup = newItem.AddSubGroup();
newItem = newGroup.Items.Add();
newItem.Label = "Web Controls";
newItem = newGroup.Items.Add();
newItem.Label = "Win Controls";
newItem = newGroup.Items.Add();
newItem.Label = "Other Tools"; // Create the "Services" item
newItem = Menu1.TopGroup.Items.Add();
newItem.Label = "Services"; // Create the "Services" sub group
newGroup = newItem.AddSubGroup();
newItem = newGroup.Items.Add();
newItem.Label = "Consulting";
newItem = newGroup.Items.Add();
newItem.Label = "Web Production";
newItem = newGroup.Items.Add();
newItem.Label = "System Integration";
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货