private void Clearbtn_Click(object sender, EventArgs e) { CardID.Clear(); Alias.Text = "0"; CardFormats.SelectedIndex = -1; SetCodeLst.SelectedIndex = -1; OtherSetCodeLst.SelectedIndex = -1; Level.SelectedIndex = -1; Race.SelectedIndex = -1; CardAttribute.SelectedIndex = -1; ATK.Text = "0"; DEF.Text = "0"; CardName.Clear(); CardDescription.Clear(); EffectList.Items.Clear(); for (int i = 0; i < CardTypeList.Items.Count; i++) { CardTypeList.SetItemCheckState(i, CheckState.Unchecked); } for (int i = 0; i < CategoryList.Items.Count; i++) { CategoryList.SetItemCheckState(i, CheckState.Unchecked); } m_loadedCard = 0; CardImg.Image = Resources.unknown; m_loadedImage = ""; }
private void Clearbtn_Click(object sender, EventArgs e) { CardID.Clear(); Alias.Text = "0"; CardFormats.SelectedIndex = -1; SetCodeOne.SelectedIndex = -1; SetCodeTwo.SelectedIndex = -1; SetCodeThree.SelectedIndex = -1; SetCodeFour.SelectedIndex = -1; Level.SelectedIndex = -1; RScale.SelectedIndex = 0; LScale.SelectedIndex = 0; Race.SelectedIndex = -1; CardAttribute.SelectedIndex = -1; ATK.Text = "0"; DEF.Text = "0"; CardName.Clear(); CardDescription.Clear(); EffectList.Items.Clear(); for (int i = 0; i < CardTypeList.Items.Count; i++) { CardTypeList.SetItemCheckState(i, CheckState.Unchecked); } for (int i = 0; i < CategoryList.Items.Count; i++) { CategoryList.SetItemCheckState(i, CheckState.Unchecked); } foreach (CheckBox chkBox in linkMarkers.Values) { chkBox.Checked = false; } linkMarkerPanel.Enabled = false; m_loadedCard = 0; CardImg.Image = Resources.unknown; }