GetTmResourceString() public static method

Return a string from a resource ID for a toolbar/menu item.
public static GetTmResourceString ( string stid ) : string
stid string String resource id
return string
示例#1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Initializes a new instance of the <see cref="T:KeyTermsControl"/> class.
        /// </summary>
        /// <param name="sCaption">The caption to use when this control is displayed as a
        /// floating window</param>
        /// <param name="sProject">The name of the current project</param>
        /// ------------------------------------------------------------------------------------
        internal KeyTermsControl(string sCaption, string sProject) : base(sCaption, sProject)
        {
            InitializeComponent();

            m_sepShowOnlyAtTop = new ToolStripSeparator();
            m_ToolStrip.Items.Insert(0, m_sepShowOnlyAtTop);

            AddToolStripButton(0, TeResourceHelper.KeyTermFilterImage,
                               TeResourceHelper.GetTmResourceString("kstidApplyFilterToKeyTermsToolTip"));

            m_tbbApplyFilter = m_ToolStrip.Items[0] as ToolStripButton;
            m_ToolStrip.Items.Insert(0, new ToolStripSeparator());

            AddToolStripButton(0, TeResourceHelper.KeyTermNotRenderedImage,
                               TeResourceHelper.GetTmResourceString("kstidVernEqNotAssignedToolTip"));

            m_tbbNotRendered = m_ToolStrip.Items[0] as ToolStripButton;

            AddToolStripButton(0, TeResourceHelper.KeyTermIgnoreRenderingImage,
                               TeResourceHelper.GetTmResourceString("kstidNotRenderedToolTip"));

            m_tbbVernNotAssigned = m_ToolStrip.Items[0] as ToolStripButton;

            AddToolStripButton(0, TeResourceHelper.KeyTermRenderedImage,
                               TeResourceHelper.GetTmResourceString("kstidUseAsVernEqToolTip"));

            m_tbbUseAsVern = m_ToolStrip.Items[0] as ToolStripButton;

            m_ToolStrip.Items.Insert(0, new ToolStripSeparator());
            AddToolStripButton(0, TeResourceHelper.UpdateKeyTermEquivalentsImage,
                               TeResourceHelper.GetTmResourceString("kstidUpdateKeyTermEquivalentsToolTip"));
            m_tbbUpdateKeyTermEquivalents = m_ToolStrip.Items[0] as ToolStripButton;
            m_ToolStrip.ItemClicked      += new ToolStripItemClickedEventHandler(OnItemClicked);
        }