private object OnTextBox(TextBox textBox) { INiCommandBarTextBox command; ErrorUtil.ThrowOnFailure(_commandManager.CreateCommandBarTextBox( textBox.Guid != Guid.Empty ? textBox.Guid : Guid.NewGuid(), textBox.Priority, out command )); command.ToolTip = _package.ResolveStringResource(textBox.ToolTip); command.Style = Enum <NiCommandBarTextBoxStyle> .Parse(textBox.Style.ToString()); return(command); }
private object OnTextBox(TextBox textBox) { INiCommandBarTextBox command; ErrorUtil.ThrowOnFailure(_commandManager.CreateCommandBarTextBox( textBox.Guid != Guid.Empty ? textBox.Guid : Guid.NewGuid(), textBox.Priority, out command )); command.ToolTip = _package.ResolveStringResource(textBox.ToolTip); command.Style = Enum<NiCommandBarTextBoxStyle>.Parse(textBox.Style.ToString()); return command; }