コード例 #1
0
 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.");
     }
 }
コード例 #2
0
 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.");
     }
 }