GetAllText() статический приватный Метод

static private GetAllText ( ) : string
Результат string
Пример #1
0
        private void btnCopy_Click(object sender, EventArgs e)
        {
            string allText = LogDisplay.GetAllText();

            if (!string.IsNullOrEmpty(allText))
            {
                Clipboard.SetText(allText);
            }
        }
Пример #2
0
        private void btnCopy_Click(object sender, EventArgs e)
        {
            string allText = LogDisplay.GetAllText();

            if (allText != null)
            {
                Clipboard.SetText(allText);
            }
        }
Пример #3
0
        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());
            }
        }