private void bbtniELAddEmployee_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form addEmpForm = new frmAddEmployee(this, presenter); addEmpForm.FormBorderStyle = FormBorderStyle.None; //set fill parent addEmpForm.MdiParent = this.MdiParent; addEmpForm.Dock = DockStyle.Fill; addEmpForm.Show(); }
private void btnELUpdateEmployee_ButtonClick(object sender, ButtonPressedEventArgs e) { GridView gridView = grdconELEmployee.FocusedView as GridView; GridColumn colCode = gvELEmployee.Columns["EMP_CODE"]; String code = gvELEmployee.GetRowCellValue(gridView.FocusedRowHandle, colCode).ToString(); Form addEmpForm = new frmAddEmployee(this, presenter, code); addEmpForm.FormBorderStyle = FormBorderStyle.None; //set fill parent addEmpForm.MdiParent = this.MdiParent; addEmpForm.Dock = DockStyle.Fill; addEmpForm.Show(); }