Example #1
0
        private void Preview_btn_Click(object sender, EventArgs e)
        {
            this.Hide();
            Preview sp = new Preview();

            sp.Show();
        }
Example #2
0
        private void btnShAll_Click(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();

            var Destination = label10.Text;
            var Seat        = mstxtseat1.Text;
            var Name        = txtName.Text;
            var Gender      = cmGender.Text;
            var Document    = mstxtDoc.Text;
            var Nationality = txtNat.Text;
            var Birth       = textBox1.Text;
            var BagPiece    = txtBagP.Text;
            var BagWeight   = txtBagW.Text;
            var Remark      = gboxRemark.Text;


            dt.Columns.Add("Destination");
            dt.Columns.Add("Seat");
            dt.Columns.Add("Name");
            dt.Columns.Add("Gender");
            dt.Columns.Add("Document Number");
            dt.Columns.Add("Nationality");
            dt.Columns.Add("Date of birth");
            dt.Columns.Add("Bag Piece");
            dt.Columns.Add("Bag Weight");
            dt.Columns.Add("Special");

            DataRow dr = dt.NewRow();

            dr["Destination"]     = Destination;
            dr["Seat"]            = Seat;
            dr["Name"]            = Name;
            dr["Gender"]          = Gender;
            dr["Document Number"] = Document;
            dr["Nationality"]     = Nationality;
            dr["Date of birth"]   = Birth;
            dr["Bag Piece"]       = BagPiece;
            dr["Bag Weight"]      = BagWeight;
            dr["Special"]         = Remark;

            dt.Rows.Add(dr);

            Preview frm = new Preview();

            //  frm.AddGridViewRows(Destination, Seat, Name, Gender, Document, Nationality, Birth, BagPiece, BagWeight, Remark);
            frm.Show();


            //Test test = new Test();
            //test.Show();
        }
Example #3
0
        private void btnSHOW_Click(object sender, EventArgs e)
        {
            Preview frm = new Preview();

            frm.ShowDialog();
        }
Example #4
0
        /*  private void PopulateAirplane()
         * {
         *    lvseat.Items.Clear();
         *    passenger = new Passenger();
         *
         *    string[,] sortedPassengers = new string[15, 6];
         *
         *    for(int i = 0; i < 15; i++)
         *    {
         *        var output = "";
         *        var col = "";
         *      //  var row = "";
         *        for(int c = 0; c < 6; c++)
         *        {
         *            if (c == 0)
         *                col = "A";
         *            else if (c == 1)
         *                col = "B";
         *            else if (c == 2)
         *                col = "c";
         *            else if (c == 3)
         *                col = "D";
         *            else if (c == 4)
         *                col = "E";
         *            else
         *                col = "F";
         *
         *            if (passenger.IsSeatTaken((i + 1).ToString(), col))
         *            {
         *                if (i + 1 < 15)
         *                    output += "0" + (i + 1).ToString() + col + "  ";
         *                else
         *                    output += (i + 1).ToString() + col + "  ";
         *            }
         *
         *            else
         *                output += "X";
         *            output += (c == 1 ? " " : "");
         *        }
         *        lvseat.Items.Add(output);
         *        lvseat.Items.Add("");
         *    }
         * }*/



        private void Preview_btn_Click(object sender, EventArgs e)
        {
            Preview frm = new Preview();

            frm.Show();
        }
Example #5
0
        private void btnMap_Click(object sender, EventArgs e)
        {
            Preview pr = new Preview();

            pr.Show();
        }