Код: Выделить всё
private void Form1_Load(object sender, EventArgs e)
{
MainMenu mainMenu = stiDesignerControl1.mainMenu;
MenuItem menuDB = new MenuItem("DB");
mainMenu.MenuItems.Add(menuDB);
MenuItem loadFromDB = new MenuItem("Load", handler_LoadFromDB, Shortcut.None);
menuDB.MenuItems.Add(loadFromDB);
MenuItem saveFromDB = new MenuItem("Save", handler_SaveToDB, Shortcut.None);
menuDB.MenuItems.Add(saveFromDB);
Stimulsoft.Controls.StiMenuProvider.AddMenuProviderToMenuItem(menuDB, stiDesignerControl1.MenuProvider);
Stimulsoft.Controls.StiMenuProvider.AddMenuProviderToMenuItem(loadFromDB, stiDesignerControl1.MenuProvider);
Stimulsoft.Controls.StiMenuProvider.AddMenuProviderToMenuItem(saveFromDB, stiDesignerControl1.MenuProvider);
}