private void btnCopy_Click(object sender, EventArgs e) { string allText = LogDisplay.GetAllText(); if (!string.IsNullOrEmpty(allText)) { Clipboard.SetText(allText); } }
private void btnCopy_Click(object sender, EventArgs e) { string allText = LogDisplay.GetAllText(); if (allText != null) { Clipboard.SetText(allText); } }
private void btnSaveErrors_Click(object sender, EventArgs e) { SaveFileDialog sfd = new SaveFileDialog(); sfd.DefaultExt = "txt"; sfd.Filter = "Text File (*.txt)|*.txt|All Files (*.*)|*.*"; sfd.Title = "Save Error List As"; DialogResult result = sfd.ShowDialog(); if (result == DialogResult.OK) { File.WriteAllText(sfd.FileName, LogDisplay.GetAllText()); } }