Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            SeatMap frm = new SeatMap();

            frm.Show();
        }
Esempio n. 2
0
        private void FlightDGV_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            //int RowIndex = FlightdataGridView1.CurrentRow.RowIndex;
            if (e.RowIndex == 0)
            {
                SeatMap frm = new SeatMap();
                frm.txtDestMap.Text = this.FlightdataGridView1.Rows[0].Cells[2].Value.ToString();
                frm.Show();
            }

            else if (e.RowIndex == 1)
            {
                AnotherSeatMap anr = new AnotherSeatMap();
                anr.txtAnotherDest.Text = this.FlightdataGridView1.Rows[1].Cells[2].Value.ToString();
                anr.Show();
            }
        }