Inheritance: NiCommandBarControl, INiCommandBarComboBox
Exemplo n.º 1
0
        public HResult CreateCommandBarComboBox(Guid id, Guid fillCommand, int priority, out INiCommandBarComboBox comboBox)
        {
            comboBox = null;

            try
            {
                comboBox = new NiCommandBarComboBox(id, fillCommand, priority);

                _objects[id] = comboBox;

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Exemplo n.º 2
0
        public HResult CreateCommandBarComboBox(Guid id, Guid fillCommand, int priority, out INiCommandBarComboBox comboBox)
        {
            comboBox = null;

            try
            {
                comboBox = new NiCommandBarComboBox(id, fillCommand, priority);

                _objects[id] = comboBox;

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