private void SeeInvoiceRadButton_Click(object sender, EventArgs e) { try { if (this.InvoiceRadGridView.SelectedRows.Count == 0) { RadMessageBox.Show(null, "Debe seleccionar una factura para realizar esta operaciĆ³n", "JOSIAS INDUSTRIAL SRL", MessageBoxButtons.OK, RadMessageIcon.Info); return; } else { _idInvoiceToEdit = Convert.ToInt32(InvoiceRadGridView.CurrentRow.Cells["InvoiceID"].Value); var _currentInvoiceToEdit = this._serviceInvoiceBL.Find(_idInvoiceToEdit.Value); if (_currentInvoiceToEdit != null) { NewInvoiceRadForm _createInvoiceRadForm = new NewInvoiceRadForm(this, _currentInvoiceToEdit, StateForm.SEE_MORE); _createInvoiceRadForm.ShowDialog(); } } } catch (Exception ex) { RadMessageBox.Show("OcurriĆ³ un error, Contactar al Administrador de Soporte", "JOSIAS INDUSTRIAL SRL", MessageBoxButtons.OK, RadMessageIcon.Info, ex.Message.ToString()); return; } }
private void CreateInvoiceRadButton_Click(object sender, EventArgs e) { NewInvoiceRadForm _createInvoiceRadForm = new NewInvoiceRadForm(this, StateForm.NEW); _createInvoiceRadForm.ShowDialog(); }