private void NListCreate_Click(object sender, RoutedEventArgs e)
{
var md = NListPrivate.IsChecked.Value;
svc.CreateList(
new CreateListOptions
{
Name = NListName.Text == "" ? "無題" : NListName.Text,
Description = NListDescription.Text == "" ? " " : NListDescription.Text,
Mode = md ? TwitterListMode.Private : TwitterListMode.Public
}, (ls2, res) =>
{
if (ls2 == null || res.Error != null) return;
MyListsList.Dispatch(() => MyListsList.Items.Add(CreateListPanel(ls2)));
NewListExp.Dispatch(() => NewListExp.IsExpanded = false);
});
}