public void LoadGame( out List <Brands> brands, out List <Cards> cards, out List <Matches> matches, out List <Promotions> promotions, out List <Teams> teams, out List <TitlesMain> titles, out List <WrestlersMain> wrestlers ) { BrandHelper bHelper = new BrandHelper(); CardHelper cHelper = new CardHelper(); MatchHelper mHelper = new MatchHelper(); PromotionHelper pHelper = new PromotionHelper(); TeamHelper tHelper = new TeamHelper(); TitleHelper tlHelper = new TitleHelper(); WrestlerHelper wHelper = new WrestlerHelper(); brands = bHelper.PopulateBrandsList(); cards = cHelper.PopulateCardsList(); matches = mHelper.PopulateMatchesList(); promotions = pHelper.PopulatePromotionsList(); teams = tHelper.PopulateTeamsList(); titles = tlHelper.PopulateTitlesList(); wrestlers = wHelper.PopulateWrestlersList(); }
public AddWrestlers() { InitializeComponent(); shHelper.WrestlersList = wHelper.PopulateWrestlersList(); shHelper.PromotionsList = pHelper.PopulatePromotionsList(); isEdit = false; foreach (WrestlersEntity w in shHelper.WrestlersList) { lbWrestlerList.Items.Add(w.Name); } foreach (PromotionsEntity p in shHelper.PromotionsList) { cbxAsscCo.Items.Add(p.Name); } btnCreateWrest.Enabled = true; btnDelete.Enabled = false; btnEditWrestler.Enabled = false; tbNewName.Enabled = false; cbxWeight.Enabled = false; tbWins.Enabled = false; tbLosses.Enabled = false; tbDraws.Enabled = false; button4.Enabled = false; }
public EditMain() { InitializeComponent(); wrests = wHelper.PopulateWrestlersList(); promos = plHelper.PopulatePromotionsList(); button5.Enabled = true; button2.Enabled = true; if (promos.Count == 0) { button4.Enabled = false; } else { button4.Enabled = true; } if (wrests.Count >= 2) { button1.Enabled = true; } else { button1.Enabled = false; } }
public AddOrgAddWrest(string orgName) { InitializeComponent(); CurrentOrgName = orgName; seHelper.WrestlersList = wHelper.PopulateWrestlersList(); seHelper.PromotionsList = pHelper.PopulatePromotionsList(); List <WrestlersEntity> selWrests = seHelper.WrestlersList.Where(w => w.CurrentCompanyName == CurrentOrgName).ToList(); List <WrestlersEntity> allWrests = seHelper.WrestlersList.Except(selWrests).ToList(); foreach (WrestlersEntity wAll in allWrests) { lbAllWrestlers.Items.Add(wAll.Name); } //If past 512 total wrestlers in one Org, add no more! if (selWrests.Count < 128) { foreach (WrestlersEntity wSel in selWrests) { lbSelWrestlers.Items.Add(wSel.Name); } } else { lbAllWrestlers.Enabled = false; lbSelWrestlers.Enabled = false; btnAddWrest.Enabled = false; btnRemWrest.Enabled = false; button4.Enabled = false; } }
public AddTitles() { InitializeComponent(); storeHelper.TitlesList = tHelper.PopulateTitlesList(); storeHelper.PromotionsList = pHelper.PopulatePromotionsList(); storeHelper.WrestlersList = wHelper.PopulateWrestlersList(); btnCreateChamp.Enabled = true; tbNewName.Enabled = false; cbxWeight.Enabled = false; cbxAsscOrg.Enabled = false; cbxSpec.Enabled = false; cbxGenre.Enabled = false; button4.Enabled = false; isEdit = false; foreach (TitlesEntity t in storeHelper.TitlesList) { lbChampList.Items.Add(t.Name); } foreach (PromotionsEntity p in storeHelper.PromotionsList) { cbxAsscOrg.Items.Add(p.Name); } }
public FinalizeCard(int cardID) { InitializeComponent(); currMatchCount = 0; thisCard = cHelper.PopulateCardsList().FirstOrDefault(c => c.CardID == cardID); storeHelper.WrestlersList = wHelper.PopulateWrestlersList().Where(w => w.CurrentCompanyName == thisCard.ConnOrgName).ToList(); storeHelper.MatchesList = mHelper.PopulateMatchesList().Where(m => m.AttachedCardName == thisCard.CardName).ToList(); if (storeHelper.MatchesList.Count == 1 || storeHelper.MatchesList.Count < 1 ) { btnFwd.Enabled = false; btnBckwd.Enabled = false; } else { btnFwd.Enabled = true; btnBckwd.Enabled = true; } PopulateNextMatch(storeHelper.MatchesList[0]); }
public ModTeamsAdjMems(string orgName, string teamName) { InitializeComponent(); OrgName = orgName; TeamName = teamName; PromotionsEntity promo = pHelper.PopulatePromotionsList().FirstOrDefault(p => p.Name == OrgName); TeamsEntity team = tHelper.PopulateTeamsList().FirstOrDefault(t => t.TeamName == TeamName); storeHelper.BrandsList = bHelper.PopulateBrandsList().Where(b => b.ConnOrgName == promo.Name).ToList(); storeHelper.WrestlersList = wHelper.PopulateWrestlersList().Where(w => w.CurrentCompanyName == promo.Name).ToList(); List <WrestlersEntity> teamW = storeHelper.WrestlersList.Where(w => w.TeamName != "").ToList(); List <WrestlersEntity> roster = storeHelper.WrestlersList.Except(teamW).ToList(); foreach (WrestlersEntity w in roster) { lbRoster.Items.Add(w.Name); } foreach (WrestlersEntity w in teamW) { if (w.TeamName == TeamName) { lbSelWrestlers.Items.Add(w.Name); } } lbRoster.Enabled = false; lbSelWrestlers.Enabled = false; btnSave.Enabled = false; }
public TeamAddWrestlers(string teamName, string coName) { InitializeComponent(); TeamName = teamName; CoName = coName; storeHelper.WrestlersList = wHelper.PopulateWrestlersList(); storeHelper.TeamsList = tHelper.PopulateTeamsList(); TeamsEntity currTeam = storeHelper.TeamsList.FirstOrDefault(t => t.TeamName == TeamName); List <string> teamMemsList = new List <string>(); teamMemsList.Add(currTeam.MemberName1); teamMemsList.Add(currTeam.MemberName2); teamMemsList.Add(currTeam.MemberName3); teamMemsList.Add(currTeam.MemberName4); List <WrestlersEntity> promoWrest = storeHelper.WrestlersList.Where(w => w.CurrentCompanyName == coName).ToList(); List <string> allNames = new List <string>(); foreach (WrestlersEntity all in promoWrest) { allNames.Add(all.Name); } List <string> withoutMems = allNames.Except(teamMemsList).ToList(); foreach (string a in withoutMems) { lbRoster.Items.Add(a); } foreach (string team in teamMemsList) { if (string.IsNullOrWhiteSpace(team)) { } else { lbSelected.Items.Add(team); } } }
public TeamsMain(string orgName) { InitializeComponent(); OrgName = orgName; PromotionsEntity promo = pHelper.PopulatePromotionsList().FirstOrDefault(p => p.Name == OrgName); storeHelper.BrandsList = bHelper.PopulateBrandsList().Where(b => b.ConnOrgName == promo.Name).ToList(); storeHelper.WrestlersList = wHelper.PopulateWrestlersList().Where(w => w.CurrentCompanyName == promo.Name).ToList(); if (storeHelper.BrandsList.Count == 0) { cbxAsscBrand.Enabled = false; } else { cbxAsscBrand.Enabled = true; cbxAsscBrand.Items.Add(""); foreach (BrandsEntity b in storeHelper.BrandsList) { cbxAsscBrand.Items.Add(b.Name); } } //Limit the radio buttons dependent on if we have enough wrestlers for the team if (storeHelper.WrestlersList.Count < 2) { rbTagTeam.Enabled = false; rb6ManTagTeam.Enabled = false; rb8ManTagTeam.Enabled = false; } else if (storeHelper.WrestlersList.Count >= 2 && storeHelper.WrestlersList.Count <= 3) { rbTagTeam.Enabled = true; rb6ManTagTeam.Enabled = true; rb8ManTagTeam.Enabled = false; } else if (storeHelper.WrestlersList.Count > 3) { rbTagTeam.Enabled = true; rb6ManTagTeam.Enabled = true; rb8ManTagTeam.Enabled = true; } foreach (WrestlersEntity w in storeHelper.WrestlersList) { lbRoster.Items.Add(w.Name); } lbRoster.Enabled = false; lbSelected.Enabled = false; btnSave.Enabled = false; }
public ModWrestlerTitles(string wrestName, string orgName) { InitializeComponent(); WrestName = wrestName; OrgName = orgName; WrestlersEntity wrest = wHelper.PopulateWrestlersList().FirstOrDefault(w => w.Name == WrestName); PromotionsEntity promo = pHelper.PopulatePromotionsList().FirstOrDefault(p => p.Name == OrgName); BrandsEntity brand = bHelper.PopulateBrandsList().FirstOrDefault(b => b.ConnOrgName == promo.Name && b.Name == wrest.BrandName); storeHelper.TitlesList = tHelper.PopulateTitlesList().Where(t => t.OwnerOrgName == promo.Name).ToList(); if (brand == null) { List <TitlesEntity> ownedTitles = storeHelper.TitlesList.Where(t => t.Specialization == "Singles Championship" && t.WeightClass == wrest.WeightClass && t.HolderName1 == wrest.Name).ToList(); List <TitlesEntity> titles = storeHelper.TitlesList.Where(t => t.Specialization == "Singles Championship" && t.WeightClass == wrest.WeightClass).Except(ownedTitles).ToList(); foreach (TitlesEntity t in titles) { lbAllTitles.Items.Add(t.Name); } foreach (TitlesEntity o in ownedTitles) { lbSelTitles.Items.Add(o.Name); } } else { List <TitlesEntity> ownedTitles = storeHelper.TitlesList.Where(t => t.Specialization == "Singles Championship" && t.WeightClass == wrest.WeightClass && t.BrandName == brand.Name && t.HolderName1 == wrest.Name).ToList(); List <TitlesEntity> titles = storeHelper.TitlesList.Where(t => t.Specialization == "Singles Championship" && t.WeightClass == wrest.WeightClass && t.BrandName == brand.Name).Except(ownedTitles).ToList(); foreach (TitlesEntity t in titles) { lbAllTitles.Items.Add(t.Name); } foreach (TitlesEntity o in ownedTitles) { lbSelTitles.Items.Add(o.Name); } } lbAllTitles.Enabled = true; lbSelTitles.Enabled = true; }
public ModBrands(string orgName) { InitializeComponent(); OrgName = orgName; PromotionsEntity promo = pHelper.PopulatePromotionsList().FirstOrDefault(p => p.Name == OrgName); storeHelper.BrandsList = bHelper.PopulateBrandsList().Where(b => b.ConnOrgName == promo.Name).ToList(); storeHelper.WrestlersList = wHelper.PopulateWrestlersList().Where(w => w.CurrentCompanyName == promo.Name).ToList(); foreach (BrandsEntity bAll in storeHelper.BrandsList) { cbxOvrBrands.Items.Add(bAll.Name); } if (storeHelper.BrandsList.Count < 1) { lbBrand1.Enabled = false; lbBrand2.Enabled = false; cbxBrand1.Enabled = false; cbxBrand2.Enabled = false; } else { lbBrand1.Enabled = true; lbBrand2.Enabled = true; foreach (BrandsEntity b in storeHelper.BrandsList) { cbxBrand1.Items.Add(b.Name); cbxBrand2.Items.Add(b.Name); } cbxBrand1.Enabled = true; cbxBrand2.Enabled = true; } }
public BrandsMain(string orgName) { InitializeComponent(); OrgName = orgName; PromotionsEntity promo = pHelper.PopulatePromotionsList().FirstOrDefault(p => p.Name == OrgName); storeHelper.WrestlersList = wHelper.PopulateWrestlersList().Where(w => w.CurrentCompanyName == promo.Name).ToList(); foreach (var w in storeHelper.WrestlersList) { lbAllRoster.Items.Add(w.Name); } }
public AddMatch(string cardName, string orgName, string brandName, int matchNum) { InitializeComponent(); CardName = cardName; BrandName = brandName; OrgName = orgName; MatchNum = matchNum; storeHelper.WrestlersList = wHelper.PopulateWrestlersList().Where(w => w.CurrentCompanyName == OrgName).ToList(); storeHelper.TeamsList = tHelper.PopulateTeamsList().Where(t => t.OrgName == OrgName).ToList(); storeHelper.TitlesList = tiHelper.PopulateTitlesList().Where(ti => ti.OwnerOrgName == OrgName).ToList(); thisCard = cHelper.PopulateCardsList().FirstOrDefault(c => c.CardName == CardName); storeHelper.MatchesList = mHelper.PopulateMatchesList().Where(m => m.AttachedCardName == thisCard.CardName).ToList(); }
public AddOrg() { InitializeComponent(); promos = pHelper.PopulatePromotionsList(); wrest = wHelper.PopulateWrestlersList(); titles = tHelper.PopulateTitlesList(); if (promos.Count > 0) { foreach (Promotions p in promos) { lbOrgList.Items.Add(p.Name); } } else { lbOrgList.Enabled = false; } }
public AddTeam() { InitializeComponent(); storeHelper.TeamsList = tHelper.PopulateTeamsList(); storeHelper.PromotionsList = pHelper.PopulatePromotionsList(); storeHelper.TitlesList = tlHelper.PopulateTitlesList(); storeHelper.WrestlersList = wHelper.PopulateWrestlersList(); isEdit = false; foreach (TeamsEntity t in storeHelper.TeamsList) { lbTeamList.Items.Add(t.TeamName); } foreach (PromotionsEntity p in storeHelper.PromotionsList) { cbxAsscCo.Items.Add(p.Name); } }
public AddTeam() { InitializeComponent(); wrests = wHelper.PopulateWrestlersList(); if (wrests.Count == 0) { button4.Enabled = false; btnEditTeam.Enabled = false; btnCreateWrest.Enabled = false; tbNewName.Enabled = false; tbWins.Enabled = false; tbLosses.Enabled = false; tbDraws.Enabled = false; rbIsCo.Enabled = false; rbIsTitle.Enabled = false; } teams = tHelper.PopulateTeamsList(); }
public ModWrestler(string orgName) { InitializeComponent(); OrgName = orgName; PromotionsEntity promo = pHelper.PopulatePromotionsList().FirstOrDefault(p => p.Name == OrgName); storeHelper.BrandsList = bHelper.PopulateBrandsList().Where(b => b.ConnOrgName == promo.Name).ToList(); storeHelper.WrestlersList = wHelper.PopulateWrestlersList().Where(w => w.CurrentCompanyName == promo.Name).ToList(); storeHelper.TitlesList = tHelper.PopulateTitlesList().Where(t => t.OwnerOrgName == promo.Name).ToList(); foreach (WrestlersEntity w in storeHelper.WrestlersList) { cbxWrestlers.Items.Add(w.Name); } foreach (BrandsEntity b in storeHelper.BrandsList) { cbxAsscBrand.Items.Add(b.Name); } }
public CurrentRankings(string orgName) { InitializeComponent(); OrgName = orgName; PromotionsEntity promo = pHelper.PopulatePromotionsList().FirstOrDefault(p => p.Name == OrgName); storeHelper.BrandsList = bHelper.PopulateBrandsList().Where(b => b.ConnOrgName == promo.Name).ToList(); storeHelper.TitlesList = tiHelper.PopulateTitlesList().Where(ti => ti.OwnerOrgName == promo.Name).ToList(); storeHelper.WrestlersList = wHelper.PopulateWrestlersList().Where(w => w.CurrentCompanyName == promo.Name).Distinct().ToList(); storeHelper.TeamsList = tHelper.PopulateTeamsList().Where(t => t.OrgName == promo.Name).Distinct().ToList(); lblCompanyName.Text = promo.Name; cbxBrands.Items.Add(""); foreach (BrandsEntity b in storeHelper.BrandsList) { cbxBrands.Items.Add(b.Name); } }
public AddOrg() { InitializeComponent(); shHelper.WrestlersList = wHelper.PopulateWrestlersList(); shHelper.TitlesList = tHelper.PopulateTitlesList(); shHelper.PromotionsList = pHelper.PopulatePromotionsList(); isEditOrg = false; foreach (PromotionsEntity p in shHelper.PromotionsList) { lbOrgList.Items.Add(p.Name); } btnCreateOrg.Enabled = true; tbNewName.Enabled = false; tbInitals.Enabled = false; cbxLoc.Enabled = false; btnAddWrest.Enabled = false; btnAddTitle.Enabled = false; btnEditOrg.Enabled = false; btnDelete.Enabled = false; }
public int CurrentID( bool isBrands = false, bool isCards = false, bool isMatches = false, bool isPromotions = false, bool isTeams = false, bool isTitles = false, bool isWrestlers = false ) { int currentID = 0; if (isBrands) { BrandHelper bHelper = new BrandHelper(); List <BrandsEntity> allBrands = bHelper.PopulateBrandsList(); currentID = allBrands.Count() + 1; } if (isCards) { CardHelper cHelper = new CardHelper(); List <CardsEntity> allCards = cHelper.PopulateCardsList(); currentID = allCards.Count() + 1; } if (isMatches) { MatchHelper mHelper = new MatchHelper(); List <MatchesEntity> allMatches = mHelper.PopulateMatchesList(); currentID = allMatches.Count() + 1; } if (isPromotions) { PromotionHelper pHelper = new PromotionHelper(); List <PromotionsEntity> allPromos = pHelper.PopulatePromotionsList(); currentID = allPromos.Count() + 1; } if (isTeams) { TeamHelper tHelper = new TeamHelper(); List <TeamsEntity> allTeams = tHelper.PopulateTeamsList(); currentID = allTeams.Count() + 1; } if (isTitles) { TitleHelper tiHelper = new TitleHelper(); List <TitlesEntity> allTitles = tiHelper.PopulateTitlesList(); currentID = allTitles.Count() + 1; } if (isWrestlers) { WrestlerHelper wHelper = new WrestlerHelper(); List <WrestlersEntity> allWrests = wHelper.PopulateWrestlersList(); currentID = allWrests.Count() + 1; } return(currentID); }
public NewCard(string orgName, bool isNewCard = true, string cardName = "", int currWrestNum = 0) { InitializeComponent(); this.Invalidate(); OrgName = orgName; CardName = cardName; bIsNewCard = isNewCard; if (bIsNewCard) { storeHelper.WrestlersList = wHelper.PopulateWrestlersList(); storeHelper.TeamsList = tHelper.PopulateTeamsList(); storeHelper.TitlesList = tiHelper.PopulateTitlesList(); storeHelper.PromotionsList = pHelper.PopulatePromotionsList(); storeHelper.BrandsList = bHelper.PopulateBrandsList(); storeHelper.CardsList = cHelper.PopulateCardsList(); //This gets the int id of the most recent card (aka- this one) int currCard = storeHelper.CardsList.Count(); PromotionsEntity promo = storeHelper.PromotionsList.FirstOrDefault(p => p.Name == OrgName); CardsEntity thisCard = storeHelper.CardsList.FirstOrDefault(c => c.ConnOrgName == promo.Name && c.CardID == currCard); List <MatchesEntity> cardM = storeHelper.MatchesList.Where(m => m.AttachedCardName == thisCard.CardName).ToList(); List <BrandsEntity> brands = storeHelper.BrandsList.Where(b => b.ConnOrgName == promo.Name).ToList(); if (brands.Count == 0) { cbxBrandName.Items.Add(""); cbxBrandName.SelectedIndex = 0; } else { cbxBrandName.Items.Add(""); foreach (BrandsEntity b in brands) { cbxBrandName.Items.Add(b.Name); } cbxBrandName.SelectedIndex = 0; } button1.Enabled = false; } else { storeHelper.CardsList = cHelper.PopulateCardsList(); //This gets the int id of the most recent card (aka- this one) int currCard = storeHelper.CardsList.Count(); storeHelper.MatchesList = mHelper.PopulateMatchesList(); storeHelper.PromotionsList = pHelper.PopulatePromotionsList(); storeHelper.BrandsList = bHelper.PopulateBrandsList(); PromotionsEntity promo = storeHelper.PromotionsList.FirstOrDefault(p => p.Name == OrgName); List <BrandsEntity> brands = storeHelper.BrandsList.Where(b => b.ConnOrgName == promo.Name).ToList(); CardsEntity thisCard = storeHelper.CardsList.FirstOrDefault(c => c.ConnOrgName == promo.Name && c.CardID == currCard); List <MatchesEntity> cardM = storeHelper.MatchesList.Where(m => m.AttachedCardName == thisCard.CardName).ToList(); if (brands.Count == 0) { cbxBrandName.Items.Add(""); cbxBrandName.SelectedItem = ""; } else { cbxBrandName.Items.Add(""); foreach (BrandsEntity b in brands) { cbxBrandName.Items.Add(b.Name); } } tbCardTitle.Text = thisCard.CardName; tbCardTitle.Enabled = false; cbxLocation.Text = thisCard.Location; cbxLocation.Enabled = false; cbxBrandName.Text = thisCard.BrandName; cbxBrandName.Enabled = false; switch (cardM.Count) { case 1: btnMatch1.Enabled = true; btnMatch1.Text = ButtonTextOutput(cardM, 0); btnMatch1Clr.Enabled = true; btnMatch2.Enabled = true; break; case 2: btnMatch1.Enabled = true; btnMatch2.Enabled = true; btnMatch3.Enabled = true; btnMatch1.Text = ButtonTextOutput(cardM, 0); btnMatch2.Text = ButtonTextOutput(cardM, 1); btnMatch1Clr.Enabled = true; btnMatch2Clr.Enabled = true; break; case 3: btnMatch1.Enabled = true; btnMatch2.Enabled = true; btnMatch3.Enabled = true; btnMatch4.Enabled = true; btnMatch1.Text = ButtonTextOutput(cardM, 0); btnMatch2.Text = ButtonTextOutput(cardM, 1); btnMatch3.Text = ButtonTextOutput(cardM, 2); btnMatch1Clr.Enabled = true; btnMatch2Clr.Enabled = true; btnMatch3Clr.Enabled = true; break; case 4: btnMatch1.Enabled = true; btnMatch2.Enabled = true; btnMatch3.Enabled = true; btnMatch4.Enabled = true; btnMatch5.Enabled = true; btnMatch1.Text = ButtonTextOutput(cardM, 0); btnMatch2.Text = ButtonTextOutput(cardM, 1); btnMatch3.Text = ButtonTextOutput(cardM, 2); btnMatch4.Text = ButtonTextOutput(cardM, 3); btnMatch1Clr.Enabled = true; btnMatch2Clr.Enabled = true; btnMatch3Clr.Enabled = true; btnMatch4Clr.Enabled = true; break; case 5: btnMatch1.Enabled = true; btnMatch2.Enabled = true; btnMatch3.Enabled = true; btnMatch4.Enabled = true; btnMatch5.Enabled = true; btnMatch6.Enabled = true; btnMatch1.Text = ButtonTextOutput(cardM, 0); btnMatch2.Text = ButtonTextOutput(cardM, 1); btnMatch3.Text = ButtonTextOutput(cardM, 2); btnMatch4.Text = ButtonTextOutput(cardM, 3); btnMatch5.Text = ButtonTextOutput(cardM, 4); btnMatch1Clr.Enabled = true; btnMatch2Clr.Enabled = true; btnMatch3Clr.Enabled = true; btnMatch4Clr.Enabled = true; btnMatch5Clr.Enabled = true; break; case 6: btnMatch1.Enabled = true; btnMatch2.Enabled = true; btnMatch3.Enabled = true; btnMatch4.Enabled = true; btnMatch5.Enabled = true; btnMatch6.Enabled = true; btnMatch7.Enabled = true; btnMatch1.Text = ButtonTextOutput(cardM, 0); btnMatch2.Text = ButtonTextOutput(cardM, 1); btnMatch3.Text = ButtonTextOutput(cardM, 2); btnMatch4.Text = ButtonTextOutput(cardM, 3); btnMatch5.Text = ButtonTextOutput(cardM, 4); btnMatch6.Text = ButtonTextOutput(cardM, 5); btnMatch1Clr.Enabled = true; btnMatch2Clr.Enabled = true; btnMatch3Clr.Enabled = true; btnMatch4Clr.Enabled = true; btnMatch5Clr.Enabled = true; btnMatch6Clr.Enabled = true; break; case 7: btnMatch1.Enabled = true; btnMatch2.Enabled = true; btnMatch3.Enabled = true; btnMatch4.Enabled = true; btnMatch5.Enabled = true; btnMatch6.Enabled = true; btnMatch7.Enabled = true; btnMatch8.Enabled = true; btnMatch1.Text = ButtonTextOutput(cardM, 0); btnMatch2.Text = ButtonTextOutput(cardM, 1); btnMatch3.Text = ButtonTextOutput(cardM, 2); btnMatch4.Text = ButtonTextOutput(cardM, 3); btnMatch5.Text = ButtonTextOutput(cardM, 4); btnMatch6.Text = ButtonTextOutput(cardM, 5); btnMatch7.Text = ButtonTextOutput(cardM, 6); btnMatch1Clr.Enabled = true; btnMatch2Clr.Enabled = true; btnMatch3Clr.Enabled = true; btnMatch4Clr.Enabled = true; btnMatch5Clr.Enabled = true; btnMatch6Clr.Enabled = true; btnMatch7Clr.Enabled = true; break; case 8: btnMatch1.Enabled = true; btnMatch2.Enabled = true; btnMatch3.Enabled = true; btnMatch4.Enabled = true; btnMatch5.Enabled = true; btnMatch6.Enabled = true; btnMatch7.Enabled = true; btnMatch8.Enabled = true; btnMatch9.Enabled = true; btnMatch1.Text = ButtonTextOutput(cardM, 0); btnMatch2.Text = ButtonTextOutput(cardM, 1); btnMatch3.Text = ButtonTextOutput(cardM, 2); btnMatch4.Text = ButtonTextOutput(cardM, 3); btnMatch5.Text = ButtonTextOutput(cardM, 4); btnMatch6.Text = ButtonTextOutput(cardM, 5); btnMatch7.Text = ButtonTextOutput(cardM, 6); btnMatch8.Text = ButtonTextOutput(cardM, 7); btnMatch1Clr.Enabled = true; btnMatch2Clr.Enabled = true; btnMatch3Clr.Enabled = true; btnMatch4Clr.Enabled = true; btnMatch5Clr.Enabled = true; btnMatch6Clr.Enabled = true; btnMatch7Clr.Enabled = true; btnMatch8Clr.Enabled = true; break; case 9: btnMatch1.Enabled = true; btnMatch2.Enabled = true; btnMatch3.Enabled = true; btnMatch4.Enabled = true; btnMatch5.Enabled = true; btnMatch6.Enabled = true; btnMatch7.Enabled = true; btnMatch8.Enabled = true; btnMatch9.Enabled = true; btnMatch10.Enabled = true; btnMatch1.Text = ButtonTextOutput(cardM, 0); btnMatch2.Text = ButtonTextOutput(cardM, 1); btnMatch3.Text = ButtonTextOutput(cardM, 2); btnMatch4.Text = ButtonTextOutput(cardM, 3); btnMatch5.Text = ButtonTextOutput(cardM, 4); btnMatch6.Text = ButtonTextOutput(cardM, 5); btnMatch7.Text = ButtonTextOutput(cardM, 6); btnMatch8.Text = ButtonTextOutput(cardM, 7); btnMatch9.Text = ButtonTextOutput(cardM, 8); btnMatch1Clr.Enabled = true; btnMatch2Clr.Enabled = true; btnMatch3Clr.Enabled = true; btnMatch4Clr.Enabled = true; btnMatch5Clr.Enabled = true; btnMatch6Clr.Enabled = true; btnMatch7Clr.Enabled = true; btnMatch8Clr.Enabled = true; btnMatch9Clr.Enabled = true; break; case 10: btnMatch1.Enabled = true; btnMatch2.Enabled = true; btnMatch3.Enabled = true; btnMatch4.Enabled = true; btnMatch5.Enabled = true; btnMatch6.Enabled = true; btnMatch7.Enabled = true; btnMatch8.Enabled = true; btnMatch9.Enabled = true; btnMatch10.Enabled = true; btnMatch11.Enabled = true; btnMatch1.Text = ButtonTextOutput(cardM, 0); btnMatch2.Text = ButtonTextOutput(cardM, 1); btnMatch3.Text = ButtonTextOutput(cardM, 2); btnMatch4.Text = ButtonTextOutput(cardM, 3); btnMatch5.Text = ButtonTextOutput(cardM, 4); btnMatch6.Text = ButtonTextOutput(cardM, 5); btnMatch7.Text = ButtonTextOutput(cardM, 6); btnMatch8.Text = ButtonTextOutput(cardM, 7); btnMatch9.Text = ButtonTextOutput(cardM, 8); btnMatch10.Text = ButtonTextOutput(cardM, 9); btnMatch1Clr.Enabled = true; btnMatch2Clr.Enabled = true; btnMatch3Clr.Enabled = true; btnMatch4Clr.Enabled = true; btnMatch5Clr.Enabled = true; btnMatch6Clr.Enabled = true; btnMatch7Clr.Enabled = true; btnMatch8Clr.Enabled = true; btnMatch9Clr.Enabled = true; btnMatch10Clr.Enabled = true; break; case 11: btnMatch1.Enabled = true; btnMatch2.Enabled = true; btnMatch3.Enabled = true; btnMatch4.Enabled = true; btnMatch5.Enabled = true; btnMatch6.Enabled = true; btnMatch7.Enabled = true; btnMatch8.Enabled = true; btnMatch9.Enabled = true; btnMatch10.Enabled = true; btnMatch11.Enabled = true; btnMatch12.Enabled = true; btnMatch12Clr.Enabled = true; btnMatch1.Text = ButtonTextOutput(cardM, 0); btnMatch2.Text = ButtonTextOutput(cardM, 1); btnMatch3.Text = ButtonTextOutput(cardM, 2); btnMatch4.Text = ButtonTextOutput(cardM, 3); btnMatch5.Text = ButtonTextOutput(cardM, 4); btnMatch6.Text = ButtonTextOutput(cardM, 5); btnMatch7.Text = ButtonTextOutput(cardM, 6); btnMatch8.Text = ButtonTextOutput(cardM, 7); btnMatch9.Text = ButtonTextOutput(cardM, 8); btnMatch10.Text = ButtonTextOutput(cardM, 9); btnMatch11.Text = ButtonTextOutput(cardM, 10); btnMatch1Clr.Enabled = true; btnMatch2Clr.Enabled = true; btnMatch3Clr.Enabled = true; btnMatch4Clr.Enabled = true; btnMatch5Clr.Enabled = true; btnMatch6Clr.Enabled = true; btnMatch7Clr.Enabled = true; btnMatch8Clr.Enabled = true; btnMatch9Clr.Enabled = true; btnMatch10Clr.Enabled = true; btnMatch11Clr.Enabled = true; break; case 12: btnMatch1.Enabled = true; btnMatch2.Enabled = true; btnMatch3.Enabled = true; btnMatch4.Enabled = true; btnMatch5.Enabled = true; btnMatch6.Enabled = true; btnMatch7.Enabled = true; btnMatch8.Enabled = true; btnMatch9.Enabled = true; btnMatch10.Enabled = true; btnMatch11.Enabled = true; btnMatch12.Enabled = true; btnMatch1.Text = ButtonTextOutput(cardM, 0); btnMatch2.Text = ButtonTextOutput(cardM, 1); btnMatch3.Text = ButtonTextOutput(cardM, 2); btnMatch4.Text = ButtonTextOutput(cardM, 3); btnMatch5.Text = ButtonTextOutput(cardM, 4); btnMatch6.Text = ButtonTextOutput(cardM, 5); btnMatch7.Text = ButtonTextOutput(cardM, 6); btnMatch8.Text = ButtonTextOutput(cardM, 7); btnMatch9.Text = ButtonTextOutput(cardM, 8); btnMatch10.Text = ButtonTextOutput(cardM, 9); btnMatch11.Text = ButtonTextOutput(cardM, 10); btnMatch12.Text = ButtonTextOutput(cardM, 11); btnMatch1Clr.Enabled = true; btnMatch2Clr.Enabled = true; btnMatch3Clr.Enabled = true; btnMatch4Clr.Enabled = true; btnMatch5Clr.Enabled = true; btnMatch6Clr.Enabled = true; btnMatch7Clr.Enabled = true; btnMatch8Clr.Enabled = true; btnMatch9Clr.Enabled = true; btnMatch10Clr.Enabled = true; btnMatch11Clr.Enabled = true; btnMatch12Clr.Enabled = true; break; default: btnMatch1.Enabled = true; btnMatch2.Enabled = false; btnMatch3.Enabled = false; btnMatch4.Enabled = false; btnMatch5.Enabled = false; btnMatch6.Enabled = false; btnMatch7.Enabled = false; btnMatch8.Enabled = false; btnMatch9.Enabled = false; btnMatch10.Enabled = false; btnMatch11.Enabled = false; btnMatch12.Enabled = false; btnMatch1Clr.Enabled = false; btnMatch2Clr.Enabled = false; btnMatch3Clr.Enabled = false; btnMatch4Clr.Enabled = false; btnMatch5Clr.Enabled = false; btnMatch6Clr.Enabled = false; btnMatch7Clr.Enabled = false; btnMatch8Clr.Enabled = false; btnMatch9Clr.Enabled = false; btnMatch10Clr.Enabled = false; btnMatch11Clr.Enabled = false; btnMatch12Clr.Enabled = false; break; } button1.Enabled = true; } }