GitUI.FormClone.ToTextUpdate C# (CSharp) Метод

ToTextUpdate() приватный Метод

private ToTextUpdate ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
        private void ToTextUpdate(object sender, EventArgs e)
        {
            var destinationPath = "";

            Info.Text = "The repository will be cloned to a new directory located here:" + Environment.NewLine;
            if (string.IsNullOrEmpty(_NO_TRANSLATE_To.Text))
                destinationPath += "[destination]";
            else
                destinationPath += _NO_TRANSLATE_To.Text.TrimEnd(new[] {'\\', '/'});
            ;
            destinationPath += "\\";

            if (string.IsNullOrEmpty(_NO_TRANSLATE_NewDirectory.Text))
                destinationPath += "[directory]";
            else
                destinationPath += _NO_TRANSLATE_NewDirectory.Text;

            Info.Text += "     " + destinationPath;

            if (destinationPath.Contains("[") || destinationPath.Contains("]"))
            {
                Info.ForeColor = Color.Red;
                return;
            }

            if (Directory.Exists(destinationPath))
            {
                Info.Text += " (directory already exists)";
                Info.ForeColor = Color.Red;
            }
            else
                Info.ForeColor = Color.Black;
        }