示例#1
0
 /// <summary>
 /// 委托更新VR返回数据的图形界面
 /// </summary>
 /// <param name="msg">要添加到RichTextBox中的信息</param>
 private void UpdateVRBox(string msg) => Dispatcher.Invoke((ThreadStart) delegate()
 {
     VRDataBox.AppendText(string.Format("{0}\r\n", msg));
 });
示例#2
0
 /// <summary>
 /// 将VR数据框滚动到底部
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void VRDataBox_TextChanged(object sender, TextChangedEventArgs e)
 => VRDataBox.ScrollToEnd();