private void OnVisibleChanged(object sender, EventArgs e) { if (this.Visible) { Porto_Missioni_Panel.Hide(); Porto_SelezioneCarte_Panel.Hide(); //deseleziona tutto for (int i = 0; i < isSelected.Length; i++) { isSelected[i] = false; } nCarteSelezionate = 0; Porto_Selected1_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected2_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected3_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected4_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected5_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected6_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected7_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected8_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected9_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected10_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected11_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected12_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected13_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected14_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected15_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected16_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected17_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected18_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected19_PB.BackgroundImage = Resources.emptyCheckBox; Porto_Selected20_PB.BackgroundImage = Resources.emptyCheckBox; } }
private void Porto_SelCarBack_Button_Click(object sender, EventArgs e) { Porto_SelezioneCarte_Panel.Hide(); }