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