private void modificarbtn_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                editor = new SupplierEditor(ref manage);
                manage.setEditor(ref editor);

                int keyCiudad = editor.arrCiudades.IndexOfValue(dataGridView1.SelectedCells[2].ToString());

                manage.setUpdateFieldData(
                        Convert.ToInt32(dataGridView1.SelectedCells[0].Value.ToString()),
                        dataGridView1.SelectedCells[1].Value.ToString(),
                        keyCiudad,
                        dataGridView1.SelectedCells[3].Value.ToString(),
                        dataGridView1.SelectedCells[4].Value.ToString(),
                        dataGridView1.SelectedCells[5].Value.ToString(),
                        dataGridView1.SelectedCells[6].Value.ToString()
                    );

                editor.ShowDialog(this);
            }
            else { MessageBox.Show("No Hay Nada Seleccionado..."); }
        }
 private void agregarbtn_Click(object sender, EventArgs e)
 {
     editor = new SupplierEditor(ref manage);
     manage.setEditor(ref editor);
     editor.ShowDialog(this);
 }