private void ListUpdate_Click(object sender, RoutedEventArgs e)
{
if (MyListsList.SelectedIndex == -1) return;
var sl = (MyListsList.Items[MyListsList.SelectedIndex] as StackPanel).Tag as TwitterList;
var md = ListPrivate.IsChecked.Value;
svc.UpdateList(new UpdateListOptions
{
ListId = sl.Id,
Name = ListName.Text,
Description = ListDescription.Text,
Mode = md ? TwitterListMode.Private : TwitterListMode.Public
},
(ls, res) =>
{
RefreshLists();
});
}