Exemple #1
0
        //Fight Info tab function
        private void ucFightInfo_AddClick(object sender, EventArgs e)
        {
            Add_EditFightInfo frm = new Add_EditFightInfo();

            frm.onAdd += Frm_onAdd;
            frm.ShowDialog();
        }
Exemple #2
0
        private void ucFightInfo_EditClick(object sender, EventArgs e)
        {
            ChuyenBay chuyenbay = new ChuyenBay();

            chuyenbay.MaChuyenBay   = ucFightInfo.GridView.CurrentRow.Cells[0].Value.ToString();
            chuyenbay.HangHangKhong = ucFightInfo.GridView.CurrentRow.Cells[1].Value.ToString();
            chuyenbay.DiemKhoiHanh  = ucFightInfo.GridView.CurrentRow.Cells[2].Value.ToString();
            chuyenbay.DiemDen       = ucFightInfo.GridView.CurrentRow.Cells[3].Value.ToString();
            chuyenbay.SoLuongKhach  = (int)ucFightInfo.GridView.CurrentRow.Cells[4].Value;

            Add_EditFightInfo frm = new Add_EditFightInfo(chuyenbay);

            frm.onEdit += Frm_onEdit;
            frm.ShowDialog();
        }