private void btnCheck_Click(object sender, EventArgs e)
{
try
{
Map map = new Map(this.tbUrl.Text);
List<string> mapNames = map.GetMapNames();
if (mapNames != null && mapNames.Count > 0)
{
this.cbnMapNames.Items.Clear();
foreach(string mapName in mapNames)
{
this.cbnMapNames.Items.Add(mapName);
}
this.cbnMapNames.SelectedIndex = 0;
this.btnOk.Enabled = true;
}
}
catch (ArgumentNullException argumengNullException)
{
MessageBox.Show(argumengNullException.Message);
}
catch (ServiceException serviceException)
{
MessageBox.Show(serviceException.Message);
}
}