protected SocketHostInfo AddNewConnection()
        {
            SocketHostInfo tcpHostInfo = null;

            AddNewConnectionDialog dialog = new AddNewConnectionDialog();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                tcpHostInfo = new SocketHostInfo(this, dialog.Host, dialog.Port);

                mBookmarkedHosts.Add(tcpHostInfo);

                string[] hostList   = mBookmarkedHosts.ConvertAll <string>(delegate(SocketHostInfo value) { return(value.ToString()); }).ToArray();
                string   hostString = String.Join(",", hostList);
                if (mDebugger.Manager.Project != null)
                {
                    mDebugger.Manager.Project.SetUserConfiguration("TCPHosts", hostString);
                }
            }

            return(tcpHostInfo);
        }
Exemple #2
0
		protected SocketHostInfo AddNewConnection()
		{
			SocketHostInfo tcpHostInfo = null;

			AddNewConnectionDialog dialog = new AddNewConnectionDialog();
			if (dialog.ShowDialog() == DialogResult.OK)
			{
				tcpHostInfo = new SocketHostInfo(this, dialog.Host, dialog.Port);

				mBookmarkedHosts.Add(tcpHostInfo);

				string[] hostList = mBookmarkedHosts.ConvertAll<string>(delegate(SocketHostInfo value) { return value.ToString(); }).ToArray();
				string hostString = String.Join(",", hostList);
				if (mDebugger.Manager.Project != null)
				{
					mDebugger.Manager.Project.SetUserConfiguration("TCPHosts", hostString);
				}

			}

			return tcpHostInfo;
		}