public void Invoke(CancellationToken cancellationToken) { string txt; if (HurunaHelper.GetCxxUndecName(m_span.GetText().Trim(), out txt)) { Clipboard.SetData(DataFormats.UnicodeText, txt); } }
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 }); }
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)); }