private void ChatWindowLoaded(object sender, EventArgs e) { messageList = new List <string>(); try { string filePath = AppDomain.CurrentDomain.BaseDirectory + @"\MessageLog.txt"; byte[] ba = File.ReadAllBytes(filePath); var goodString = logCrypto.DecryptWithGlobal(ba); chatWindow.AppendTextBox(messageList, goodString); } catch (Exception) { chatWindow.AppendTextBox(messageList, "" + System.Environment.NewLine); } chatWindow.statusTextLbl.Text = fileManager.ReadMyStatus(ClientDriver.globalUsername); if (chatWindow.statusTextLbl.Text == "") { chatWindow.statusTextLbl.Text = "Status"; } }
public void ChatWindowPrint(string sender, string message) { chatWindow.AppendTextBox("[" + sender + "] : " + message); }