private void btnAniadir_Click(object sender, EventArgs e) { XPCollection xpcConceptoAnidada = new XPCollection(uowAnidada, xpcConcepto, new GroupOperator(GroupOperatorType.And, new BinaryOperator("This", concepto, BinaryOperatorType.Equal))); if (xpcConceptoAnidada.Count != 0) { Concepto concepto1 = (Concepto)(xpcConceptoAnidada[0]); FrmPercepcionBase frmpercepcionbase = new FrmPercepcionBase(xpcPercepcionBase, uow, xpcCuentaContable, xpcConceptoDetalle, concepto1, xpcConceptoDetalleAnidada, uowAnidada); frmpercepcionbase.ShowDialog(); } }
private void btnPercepcionBase_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { FrmPercepcionBase frmpercepcionbase = new FrmPercepcionBase(xpcPercepcionBase, uow, xpcCuentaContable,xpcConceptoDetalle); frmpercepcionbase.btnAsignar.Visibility = DevExpress.XtraBars.BarItemVisibility.Never; frmpercepcionbase.ShowDialog(); }