예제 #1
0
        private object OnComboBoxRef(ComboBoxRef comboBoxRef)
        {
            INiCommandBarControl control;

            ErrorUtil.ThrowOnFailure(_commandManager.FindCommandBarControl(
                                         comboBoxRef.Guid,
                                         out control
                                         ));

            if (control == null)
            {
                throw new NetIdeException(String.Format(NeutralResources.CannotFindCommand, comboBoxRef.Guid));
            }

            return(control);
        }
예제 #2
0
        private object OnComboBoxRef(ComboBoxRef comboBoxRef)
        {
            INiCommandBarControl control;
            ErrorUtil.ThrowOnFailure(_commandManager.FindCommandBarControl(
                comboBoxRef.Guid,
                out control
            ));

            if (control == null)
                throw new NetIdeException(String.Format(NeutralResources.CannotFindCommand, comboBoxRef.Guid));

            return control;
        }