private void btnSeries_Click(object sender, EventArgs e) { try { frmGraficaControl frm = new frmGraficaControl(); frm.Inicial = dtDesde.Value.Year.ToString() + dtDesde.Value.Month.ToString().PadLeft(2, '0') + dtDesde.Value.Day.ToString().PadLeft(2, '0'); frm.Final = dtHasta.Value.Year.ToString() + dtHasta.Value.Month.ToString().PadLeft(2, '0') + dtHasta.Value.Day.ToString().PadLeft(2, '0'); frm.Series = true; frm.StartPosition = FormStartPosition.CenterScreen; frm.ShowDialog(); this.Close(); } catch (Exception ex) { throw ex; } }
private void btnGrafica2_Click(object sender, EventArgs e) { try { if (gvDetalle.RowCount > 0) { frmGraficaControl frm = new frmGraficaControl(); frm.Lista = int.Parse(gvDatos.CurrentRow.Cells["Lista"].Value.ToString()); frm.StartPosition = FormStartPosition.CenterScreen; frm.ShowDialog(); } else { RadMessageBox.Show("No existen datos a graficar", this.Text, MessageBoxButtons.OK, RadMessageIcon.Info); } } catch (Exception ex) { throw ex; } }