Example #1
0
 private void Button1_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count == 1)
     {
         Id     = Convert.ToInt32(dataGridView1.CurrentRow.Cells[1].Value);
         Nombre = Convert.ToString(dataGridView1.CurrentRow.Cells[0].Value);
         ReportesN reportesN = new ReportesN(Id, Nombre, false);
         reportesN.Show();
         this.Close();
     }
 }
Example #2
0
        private void Button2_Click_1(object sender, RoutedEventArgs e)
        {
            ReportesN reportesN = new ReportesN(0, "Todos", true);

            reportesN.Show();
        }