private void Collection_Click(object sender, RoutedEventArgs e) { GestionCollection win = new GestionCollection(); win.Show(); this.Hide(); }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { Ville param = GestionCollection.GetObjet <Ville>(Ville.CollClassesVille, comboBox1.Text.Split('-')[0]); textBox1.Text = param.Id.ToString(); textBox2.Text = param.Nom; textBox3.Text = param.CodePostal.ToString(); this.SetListeBox(param); }
private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { DataGridViewRow ligne = dataGridView1.Rows[e.RowIndex]; Ville param = GestionCollection.GetObjet <Ville>(Ville.CollClassesVille, textBox1.Text); Box laBox = GestionCollection.GetObjet <Box>(param.LesBox, ligne.Cells[0].Value.ToString()); Form Form2 = new Form2(laBox); Form2.ShowDialog(); }
private void button2_Click(object sender, EventArgs e) { Ville param = GestionCollection.GetObjet <Ville>(Ville.CollClassesVille, textBox1.Text); if (textBox1.Text == "") { return; } param.Nom = textBox2.Text; param.CodePostal = Convert.ToInt32(textBox3.Text); this.RemplissageCbx(); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { DataGridViewRow ligne = dataGridView1.Rows[e.RowIndex]; Box laBox = GestionCollection.GetObjet <Box>(Box.collClasseBox, ligne.Cells[0].Value.ToString()); textBox1.Text = laBox.Id.ToString(); textBox2.Text = laBox.Adresse; comboBox1.Text = laBox.LaVille.Nom; textBox3.Text = laBox.LaVille.CodePostal.ToString(); textBox4.Text = laBox.GpsX.ToString(); textBox5.Text = laBox.GpsY.ToString(); comboBox2.Text = ""; }