private void bbtnNewContract_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { bbtnSave.Enabled = true; var tmpform = new Forms.ContractForm(0); tmpform.MdiParent = this; tmpform.Show(); }
private void bbtnOpenContract_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Forms.ContractSelectForm childForm = (xtraTabbedMdiManager1.SelectedPage.MdiChild as Forms.ContractSelectForm); int rowIndex = childForm.gvList.GetSelectedRows()[0]; int id = Convert.ToInt32(childForm.gvList.GetRowCellValue(rowIndex, "ID")); Forms.ContractForm form = new Forms.ContractForm(id); form.MdiParent = this; form.Show(); }