private async void ListAvailable_Shown(object sender, EventArgs e)
{
using (ControlTransaction.Disabled(this))
{
try
{
var lists = (IReadOnlyList<ListElement>)TabInformations.GetInstance().SubscribableLists;
if (lists.Count == 0)
lists = await this.FetchListsAsync();
this.UpdateListsListBox(lists);
}
catch (OperationCanceledException)
{
this.DialogResult = DialogResult.Cancel;
return;
}
catch (WebApiException)
{
this.DialogResult = DialogResult.Abort;
return;
}
}
}