private void start_btn_Click(object sender, EventArgs e) { if (int.Parse(id_txt.Text) == login.emot) { int flag = 0; flag = ClsUsers.login2(id); if (flag == 1) { Menahel men = new Menahel(); flag = 0; men.Show(); Close(); } else { flag = ClsUsers.login1(id); if (flag == 1) { BuyingForm bf = new BuyingForm(); flag = 0; bf.Show(); Close(); } } } }
private void button6_Click(object sender, EventArgs e) { BuyingForm bf = new BuyingForm(); bf.Show(); Hide(); }
private void button2_Click(object sender, EventArgs e) { BuyingForm buyf = new BuyingForm(); buyf.back_button_mnahel.Visible = true; buyf.Show(); Hide(); }