Inheritance: NiCommandBarControl, INiCommandBarButton
Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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));
            }
        }