public bool AddPopupMenuToMenueEntry(short nId, XPopupMenu xPopupMenu) { if (_xMenuBar.getItemPos(nId) >= 0) { try { _xMenuBar.setPopupMenu(nId, xPopupMenu); } catch (System.Exception ex) { System.Diagnostics.Debug.WriteLine("Exeption in addPopupMenuToMenueEntry: " + ex); return(false); } return(true); } else { //throw new NullPointerException("node id " + nId + " does not exist in Menue: ", _xMenuBar); return(false); } }
public bool AddPopupMenuToMenueEntry(short nId, XPopupMenu xPopupMenu) { if (_xMenuBar.getItemPos(nId) >= 0) { try { _xMenuBar.setPopupMenu(nId, xPopupMenu); } catch (System.Exception ex) { System.Diagnostics.Debug.WriteLine("Exeption in addPopupMenuToMenueEntry: " + ex); return false; } return true; } else { //throw new NullPointerException("node id " + nId + " does not exist in Menue: ", _xMenuBar); return false; } }