GitUI.FormRemoteProcess.DataReceived C# (CSharp) Метод

DataReceived() защищенный Метод

protected DataReceived ( object sender, TextEventArgs e ) : void
sender object
e TextEventArgs
Результат void
        protected override void DataReceived(object sender, TextEventArgs e)
        {
            if (Plink)
            {
                if (e.Text.Contains("If you trust this host, enter \"y\" to add the key to"))
                {
                    if (MessageBox.Show(this, _fingerprintNotRegistredText.Text, _fingerprintNotRegistredTextCaption.Text, MessageBoxButtons.YesNo) == DialogResult.Yes)
                    {
                        string remoteUrl;
                        if (string.IsNullOrEmpty(UrlTryingToConnect))
                        {
                            remoteUrl = Module.GetPathSetting(string.Format(SettingKeyString.RemoteUrl, Remote));
                            remoteUrl = string.IsNullOrEmpty(remoteUrl) ? Remote : remoteUrl;
                        }
                        else
                            remoteUrl = UrlTryingToConnect;
                        remoteUrl = GitCommandHelpers.GetPlinkCompatibleUrl(remoteUrl);

                        Module.RunExternalCmdShowConsole("cmd.exe", string.Format("/k \"\"{0}\" {1}\"", AppSettings.Plink, remoteUrl));

                        restart = true;
                        Reset();
                    }
                    else
                        KillGitCommand();
                }
            }
            base.DataReceived(sender, e);
        }