Beispiel #1
0
        public void UpdateSourceCode()
        {
            SourceCode.Clear();
            ClearHighlight();

            if (mSourceFile == null)
            {
                return;
            }
            try
            {
                SourceCode.Lines = File.ReadAllLines(mSourceFile);
            }
            catch (IOException ex)
            {
                SourceCode.Text = "Could not load " + mSourceFile + ": " + ex.Message + "\n";
            }
        }