private void bbtnSendToSigning_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Forms.ContractForm childForm = (xtraTabbedMdiManager1.SelectedPage.MdiChild as Forms.ContractForm); childForm.SaveContracChanges(); childForm.SendContractToSigning(); childForm.FillAgreemenst(); }
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(); }
private void bbtnSave_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Forms.ContractForm childForm = (xtraTabbedMdiManager1.SelectedPage.MdiChild as Forms.ContractForm); if (childForm.IsValid()) { childForm.SaveContracChanges(); updateContracts(); bbtnSave.Enabled = false; } }