Example #1
0
 private static void app_OnStartCreatMenu(object sender, ApplicationEventArgs e)
 {
     var moduloMenu = Nampula.UI.Application.GetInstance().GetMenu(MenuID.cBoUIModulesMenu);
     var menuGroup = new Nampula.UI.MenuItem(moduloMenu, BoMenuType.mt_POPUP,"Nampula Demo");
     var menuNampulaForm = new Nampula.UI.MenuItem(menuGroup, BoMenuType.mt_STRING, "teste");
         menuNampulaForm.OnAfterClick += menuNampulaForm_OnAfterClick;
 }
Example #2
0
        private static void App_OnStartCreateMenu(object sender, Nampula.UI.ApplicationEventArgs e)
        {
            var module    = Nampula.UI.Application.GetInstance().GetMenu(MenuID.cBoUIModulesMenu);
            var menuAddon = new Nampula.UI.MenuItem(module, BoMenuType.mt_POPUP, "Impressão de etiquetas", UI.Properties.Resources.label);

            var menuLabelPrinting = new MenuItem(menuAddon, BoMenuType.mt_STRING, "Impressão");

            menuLabelPrinting.OnAfterClick += MenuLabelPrinting_OnAfterClick;

            var menuConfig        = new MenuItem(menuAddon, BoMenuType.mt_POPUP, "Configurações");
            var menuGeneralConfig = new MenuItem(menuConfig, BoMenuType.mt_STRING, "Configurações Gerais");

            menuGeneralConfig.OnAfterClick += MenuGeneralConfig_OnAfterClick;
        }