private void NewMatchAddCard(int matchNum) { if (!string.IsNullOrWhiteSpace(tbCardTitle.Text) && cbxLocation.SelectedItem != null ) { string brandName = cbxBrandName.SelectedItem.ToString(); //Why are we saving this? FOR SCIENCE~! (And also because this will help us draw the correct matches for this card to populate the LV) CardsEntity thisCard = new CardsEntity() { CardID = idHelper.CurrentID(false, true, false, false, false, false, false), CardName = tbCardTitle.Text, ConnOrgName = OrgName, BrandName = brandName, Location = cbxLocation.SelectedItem.ToString() }; cHelper.SaveCardsList(thisCard); AddMatch add = new AddMatch(tbCardTitle.Text, OrgName, brandName, matchNum); add.Show(); this.Hide(); } else { tbCardTitle.BackColor = Color.MistyRose; cbxLocation.BackColor = Color.MistyRose; } }
private void NewMatch(int matchNum) { if (!string.IsNullOrWhiteSpace(tbCardTitle.Text) && cbxLocation.SelectedItem != null ) { string brandName = cbxBrandName.SelectedItem.ToString(); AddMatch add = new AddMatch(tbCardTitle.Text, OrgName, brandName, matchNum); add.Show(); this.Hide(); } else { tbCardTitle.BackColor = Color.MistyRose; cbxLocation.BackColor = Color.MistyRose; } }
private void button2_Click(object sender, EventArgs e) { AddMatch add = new AddMatch(); add.Show(); }