void HostSelect_Click(object sender, EventArgs e)
{
EditText txt = FindViewById<EditText>(Resource.Id.Port);
int port = 2010;
if (!int.TryParse(txt.Text, out port))
{
port = 2010;
}
txt = FindViewById<EditText>(Resource.Id.Host);
Host = txt.Text;
if (string.IsNullOrEmpty(Host))
{
Host = "127.0.0.1";
}
Port = port;
if (ConnectRequested != null)
{
ConnectRequested(this, EventArgs.Empty);
}
}