private void SubscribeButton_Click(object sender, EventArgs e) { try { SDAccountManagement.AddLineupToAccount((LineupSearchResultListBox.SelectedItem as SDLineup).lineup); UpdateSubscribedLineups(); } catch (Exception ex) { Misc.OutputException(ex); MessageBox.Show("Failed to add lineup."); } }
private void UnsubscribeButton_Click(object sender, EventArgs e) { try { SDAccountManagement.RemoveLineupFromAccount(selected_available_lineup.lineup); UpdateSubscribedLineups(); } catch (Exception ex) { Misc.OutputException(ex); MessageBox.Show("Failed to remove lineup."); } }