Наследование: NiCommandBarControl, INiCommandBarLabel
Пример #1
0
        public HResult CreateCommandBarLabel(Guid id, int priority, out INiCommandBarLabel label)
        {
            label = null;

            try
            {
                label = new NiCommandBarLabel(id, priority);

                _objects[id] = label;

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Пример #2
0
        public HResult CreateCommandBarLabel(Guid id, int priority, out INiCommandBarLabel label)
        {
            label = null;

            try
            {
                label = new NiCommandBarLabel(id, priority);

                _objects[id] = label;

                return HResult.OK;
            }
            catch (Exception ex)
            {
                return ErrorUtil.GetHResult(ex);
            }
        }