/// <summary>
        /// Translates the specified text.
        /// </summary>
        /// <param name="span">The span.</param>
        /// <param name="text">The text.</param>
        public void Translate(SnapshotSpan span, string text)
        {
            //Get viewport size
            var viewportSize = new Size(_view.ViewportWidth, _view.ViewportHeight);

            //Close popup if exist
            if (_popup != null)
            {
                _popup.Close();
            }

            //Create new popup
            _popup = CreatePopup(span, text, viewportSize);

            //Attach popup
            AttachPopup(_popup);

            //Focus
            _popup.Focus();
        }
 /// <summary>
 /// Closeds the specified sender.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 /// <exception cref="NotImplementedException"></exception>
 private void OnClosed(object sender, EventArgs e)
 {
     _popup?.Close();
 }