private void CountButton_ClickBefore(object sboObject, SAPbouiCOM.SBOItemEventArg pVal, out bool BubbleEvent) { BubbleEvent = true; try { InfoBoxes.UseMessageBox(CountTotal.Count(EditText0, Matrix0)); } catch (Exception e) { InfoBoxes.UseMessageBox(e.Message); } }
public void SBO_Application_MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent) { BubbleEvent = true; try { if (pVal.BeforeAction && pVal.MenuUID == "PowerBusiness.Form1") { Form1 activeForm = new Form1(); activeForm.Show(); } } catch (Exception e) { InfoBoxes.UseMessageBox(e.Message); } }
private void Button2_ClickBefore(object sboObject, SAPbouiCOM.SBOItemEventArg pVal, out bool BubbleEvent) { BubbleEvent = true; try { // Grid0.Columns.Item("Indeks").Type = SAPbouiCOM.BoGridColumnType.gct_CheckBox; // this.Grid0.Item.Width = 1200; // Grid0.Columns.Item("ItemCode").Type = SAPbouiCOM.BoGridColumnType.gct_CheckBox; // authentication.returnDepartment(Grid2); Application.SBO_Application.ActivateMenuItem("ff"); Application.SBO_Application.Forms.Item("F_21").Select(); } catch (Exception e) { InfoBoxes.UseMessageBox(e.Message); } }
public void AddMenuItems() { SAPbouiCOM.Menus oMenus; SAPbouiCOM.MenuItem oMenuItem; SAPbouiCOM.MenuCreationParams oCreationPackage; MenuModifications modifications = new MenuModifications(); oMenus = Application.SBO_Application.Menus; oCreationPackage = modifications.addMenu("PowerBusiness", "Electropoli Poland"); oMenuItem = Application.SBO_Application.Menus.Item("43520"); // moudles' oMenus = oMenuItem.SubMenus; try { // If the manu already exists this code will fail oMenus.AddEx(oCreationPackage); } catch (Exception) { } try { // Get the menu collection of the newly added pop-up item oMenuItem = Application.SBO_Application.Menus.Item("PowerBusiness"); oMenus = oMenuItem.SubMenus; // Create s sub menu modifications.addMenuItem("PowerBusiness.Form1", "System raportów", oMenus, oCreationPackage); } catch (Exception) { InfoBoxes.StatusBarSucces("Nadpisano strukturę menu"); } }
private void CountTotal(object sboObject, SAPbouiCOM.SBOItemEventArg pVal, out bool BubbleEvent) { BubbleEvent = true; InfoBoxes.UseMessageBox(cntObj.countTotal(Grid0, 8)); }