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());
            }
        }