Esempio n. 1
0
        private void AddButton_Click(object sender, EventArgs e)
        {
            SiteSetup siteSetup = new SiteSetup();

            if (siteSetup.ShowDialog(this) == DialogResult.OK)
            {
                SiteDetails details = new SiteDetails((SiteName)siteSetup.PokerSites.SelectedItems[0],
                                                      siteSetup.HandHistoryLocation.Text,
                                                      siteSetup.TournamentSummaryLocation.Text);
                PokerSites.Items.Add(details);
            }
        }
Esempio n. 2
0
        private void ModifyButton_Click(object sender, EventArgs e)
        {
            SiteDetails item      = (SiteDetails)PokerSites.SelectedItem;
            SiteSetup   siteSetup = new SiteSetup(item);

            if (siteSetup.ShowDialog(this) == DialogResult.OK)
            {
                SiteDetails details = new SiteDetails(((SiteName)siteSetup.PokerSites.SelectedItems[0]),
                                                      siteSetup.HandHistoryLocation.Text,
                                                      siteSetup.TournamentSummaryLocation.Text);
                (PokerSites.Items[PokerSites.SelectedIndex]) = details;
            }
        }