Пример #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count != 0)
     {
         CrearProveedor crearProveedor = new CrearProveedor();
         crearProveedor.id = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells[0].Value);
         crearProveedor.ShowDialog();
     }
 }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            CrearProveedor crearProveedor = new CrearProveedor();

            crearProveedor.ShowDialog();
        }