Наследование: NiCommandBarControl, INiCommandBarButton
Пример #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);
            }
        }
Пример #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));
            }
        }