Beispiel #1
0
        public void Invoke(CancellationToken cancellationToken)
        {
            string txt;

            if (HurunaHelper.GetCxxUndecName(m_span.GetText().Trim(), out txt))
            {
                Clipboard.SetData(DataFormats.UnicodeText, txt);
            }
        }
Beispiel #2
0
 public override UIElement GetDisplay()
 {
     if (m_decname == null)
     {
         if (!HurunaHelper.GetCxxUndecName(m_span.GetText(), out m_decname))
         {
             m_decname = string.Empty;
         }
     }
     return(new TextBlock()
     {
         Text = m_decname, Background = Brushes.AliceBlue
     });
 }
Beispiel #3
0
        public Task <object> GetPreviewAsync(CancellationToken cancellationToken)
        {
            var textBlock = new TextBlock();

            textBlock.Padding = new Thickness(5);
            string txt;

            if (!HurunaHelper.GetCxxUndecName(m_span.GetText().Trim(), out txt))
            {
                txt = "[Invaid Input]";
            }
            textBlock.Text = txt;
            return(Task.FromResult <object>(textBlock));
        }