Пример #1
0
        //Open another form with ID
        public void openFormById(int id)
        {
            switch (id)
            {
            case 1:
            {
                frmDatVe frm = new frmDatVe(this);
                frm.Show();
                this.Hide();
            } break;

            case 2:
            {
                frmKhachhang frm = new frmKhachhang(this);
                frm.Show();
                this.Hide();
            } break;

            case 3:
            {
                frmChuyenXe frm = new frmChuyenXe(this);
                frm.Show();
                this.Hide();
            }
            break;

            case 4:
            {
                frmTuyenXe frm = new frmTuyenXe(this);
                frm.Show();
                this.Hide();
            }
            break;

            case 5:
            {
                btn_slider_Click(this, new EventArgs {
                    });
            }
            break;

            default:
            {
            } break;
            }
        }
Пример #2
0
 public frmTram(frmTuyenXe frmParent)
 {
     InitializeComponent();
     this._frmParent = frmParent;
 }