private async void RefreshButton_Click(object sender, EventArgs e)
{
using (ControlTransaction.Disabled(this))
{
try
{
var lists = await this.FetchListsAsync();
this.UpdateListsListBox(lists);
}
catch (OperationCanceledException) { }
catch (WebApiException ex)
{
MessageBox.Show("Failed to get lists. (" + ex.Message + ")");
}
}
}