//default constructor public frmTicketInfo(frmSeatInfo seatForm) { InitializeComponent(); //grab the seat from the this.seatForm = seatForm; }
private void gateKeeper(object sender) { if (this.ButtonsEnabled) { //convert sender to Button Button btnSeatClicked = (Button)sender; //grab relevant seat number from button string seatNum = (string)btnSeatClicked.Tag; //create new form frmSeatInfo seatInfo = new frmSeatInfo(this, seatNum); //display form seatInfo.Show(); }//end if }