public HResult CreateCommandBarButton(Guid id, int priority, string code, out INiCommandBarButton button) { button = null; try { button = new NiCommandBarButton(id, priority, code); _objects[id] = button; return HResult.OK; } catch (Exception ex) { return ErrorUtil.GetHResult(ex); } }
public HResult CreateCommandBarButton(Guid id, int priority, string code, out INiCommandBarButton button) { button = null; try { button = new NiCommandBarButton(id, priority, code); _objects[id] = button; return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }