private object OnLabel(Label label) { INiCommandBarLabel command; ErrorUtil.ThrowOnFailure(_commandManager.CreateCommandBarLabel( label.Guid != Guid.Empty ? label.Guid : Guid.NewGuid(), label.Priority, out command )); command.Text = _package.ResolveStringResource(label.Text); command.ToolTip = _package.ResolveStringResource(label.ToolTip); return(command); }
private object OnLabel(Label label) { INiCommandBarLabel command; ErrorUtil.ThrowOnFailure(_commandManager.CreateCommandBarLabel( label.Guid != Guid.Empty ? label.Guid : Guid.NewGuid(), label.Priority, out command )); command.Text = _package.ResolveStringResource(label.Text); command.ToolTip = _package.ResolveStringResource(label.ToolTip); return command; }