Пример #1
0
 private void TxtbxChat_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     TxtbxChat.ScrollToEnd();
 }
Пример #2
0
 /// <summary>
 /// Saves the Chat Window Log
 /// </summary>
 private void SaveLog()
 {
     TxtbxChat.SelectAll();
     TxtbxChat.Selection.Save(new System.IO.FileStream(System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(), System.DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss.fff") + ".rtf"), System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write), DataFormats.Rtf);
 }