private void BtnCheck_Click(object sender, RoutedEventArgs e) { if (lvBookmakes.SelectedItem == null) { return; } var sl = lvBookmakes.SelectedItem as Bookmaker; try { client.AddSiteData(sl.BkType, txtUrl.Text); client.SendSiteData(sl.BkType); } catch (Exception ex) { MessageBox.Show("Не удалось добавить зеркало" + ex.Message); } }