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));
            }
        }
Exemple #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);
            }
        }