Example #1
0
        private void btnThemMoi_Click(object sender, EventArgs e)
        {
            frmActionCar frm = new frmActionCar();

            frm.loadData = new frmActionCar.LoadData(loadDataGroup);
            frm.ShowDialog();
        }
Example #2
0
        private void btnClickEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            var          id  = int.Parse(gridViewData.GetFocusedRowCellValue("CarID").ToString());
            frmActionCar frm = new frmActionCar(1, id);

            frm.loadData = new frmActionCar.LoadData(loadDataGroup);
            frm.ShowDialog();
        }