private void btn_visa_page_Click(object sender, EventArgs e) { if (txt_f_name.Text != "" && txt_L_name.Text != "" && txt_ID.Text != "" && txt_phone_number.Text != "") { visa_card visaform = new visa_card(); visaform.Show(); Hide(); visa_card.CosInformation(txt_f_name.Text.ToString(), txt_L_name.Text.ToString(), txt_ID.Text.ToString(), txt_phone_number.Text.ToString(), email_txt.Text.ToString()); MessageBox.Show("please continue", "continue ", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("please insert all your info"); } }
private void button2_Click(object sender, EventArgs e) { int rowindex = dataGridView_visa.CurrentRow.Index; for (int i = Cart.dtreg1.Rows.Count - 1; i >= 0; i--) { if (rowindex == i) { Visanum = Cart.dtreg1.Rows[i][0].ToString(); SecCode = Cart.dtreg1.Rows[i][1].ToString(); Id = Cart.dtreg1.Rows[i][3].ToString(); } } visa_card vc = new visa_card(); vc.button_login.Visible = false; vc.button_back_regstir.Visible = false; vc.button_payment.Visible = true; vc.button_back_payment.Visible = true; visa_card.Id = Id; vc.Show(); Hide(); }