private void exportConversationToolStripMenuItem_Click(object sender, EventArgs e) { string path = Prompt.Show("Podaj ścieżkę:", ""); string fileName = Prompt.Show("Podaj nazwę pliku:", "conversations.html"); TextFileTools.writeFile(path, fileName, wbMessages.DocumentText.ToString()); }
private void importConversationToolStripMenuItem_Click(object sender, EventArgs e) { string path = Prompt.Show("Podaj ścieżkę:", ""); string fileName = Prompt.Show("Podaj nazwę pliku:", "conversations.html"); string data = TextFileTools.readFile(path, fileName); wbMessages.DocumentText = data; }