private void button_Click(object sender, EventArgs e) { string temp = sender.ToString(); //MessageBox.Show(temp); switch (temp) { case "예약확인": break; case "영화예매": // page21.Visible = false; /* page_auditorium1.Visible = true; * if(first == 0) * page_auditorium1.load_data();*/ page_movie_select1.Visible = true; page_movie_select1.InitListbox(); break; case "movieselect_cancel": page_movie_select1.Visible = false; break; case "movieselect_next": login.ShowDialog(); if (login_check == 1) { page_movie_select1.Visible = false; page_auditorium1.Visible = true; } break; case "구매": page_auditorium1.Visible = false; break; } }
private void button_Click(object sender, EventArgs e) { string temp = sender.ToString(); switch (temp) { case "예매확인": login_check = 0; login.ShowDialog(); if (login_check == 1) { page_checkBook1.Visible = true; page_checkBook1.load_name(); page_checkBook1.load_data(); } else if (login_check == 2) //비회원 예매 확인 { page_nonmember_login1.Visible = true; } break; case "영화예매": login_check = 0; page21.Visible = false; page_movie_select1.Visible = true; page_movie_select1.InitListbox(); break; case "movieselect_cancel": page_movie_select1.Visible = false; page21.Visible = true; is_nonmember = false; break; case "movieselect_next": login.ShowDialog(); if (login_check == 1) { page_movie_select1.Visible = false; page_auditorium1.load_data(); page_auditorium1.Visible = true; } else if (login_check == 2) { page_movie_select1.Visible = false; bihoywon_page_11.Visible = true; } break; case "좌석선택다음": page_auditorium1.Visible = false; how_much1.set_default(); how_much1.Visible = true; break; case "확인구매": how_much1.Visible = false; selction1.Visible = true; break; case "카드": selction1.Visible = false; confirm1.Visible = true; break; case "현금": selction1.Visible = false; pagemoney1.Visible = true; break; case "purchase": pagemoney1.Visible = false; recheck1.test(); recheck1.Visible = true; break; case "카드확인": confirm1.Visible = false; recheck1.test(); recheck1.Visible = true; break; case "recheckok": recheck1.Visible = false; page21.Visible = true; // this.Close(); //Application.Restart(); break; case "확인취소": how_much1.Visible = false; page21.Visible = true; is_nonmember = false; break; case "seatcancel": page_auditorium1.Visible = false; page21.Visible = true; is_nonmember = false; break; case "카드취소": confirm1.Visible = false; page21.Visible = true; is_nonmember = false; break; case "next_nonmember": //비회원 예매 안내 다음버튼 //이거 추가 bihoywon_page_11.Visible = false; bihoywon_page_21.Visible = true; break; case "finish_nonmember": //이거 추가 if (is_nonmember) { bihoywon_page_21.Visible = false; page_auditorium1.load_data(); page_auditorium1.Visible = true; } break; case "check_nonmember": { page_nonmember_login1.Visible = false; page_checkBook1.Visible = true; page_checkBook1.load_name(); page_checkBook1.load_data(); break; } case "confirm_check": { page_checkBook1.Visible = false; break; } case "check_cancel": { page_nonmember_login1.Visible = false; break; } case "finish_cancel": { bihoywon_page_21.Visible = false; page21.Visible = true; break; } } }