public VueBoueDescription(Bouee bouee, CultureInfo cu) { InitializeComponent(); Thread.CurrentThread.CurrentUICulture = cu; ResourceManager rm = new ResourceManager("ReceptionDesBornes.Resources.String", Assembly.GetExecutingAssembly()); String idBoue = rm.GetString("labelIdBoue"); String longitudeBoue = rm.GetString("labelLongitudeBoue"); String latitudeBoue = rm.GetString("labelLatitudeBoue"); String temperatureEauBoue = rm.GetString("labelTemperatureEauBoue"); String temperatureAirBoue = rm.GetString("labelTemperatureAirBoue"); String saliniteBoue = rm.GetString("labelSaliniteBoue"); String vitesseVentBoue = rm.GetString("labelVitesseVentBoue"); String dimensionBoue = rm.GetString("labelDimensionBoue"); String pressionAtmospheriqueBoue = rm.GetString("labelPressionAtmospheriqueBoue"); this.bouee = bouee; labelIdBoue.Content = idBoue + " : " + bouee.IdBouee; labelLongitudeBoue.Content = longitudeBoue + " : " + bouee.Longitude; labelLatitudeBoue.Content = latitudeBoue + " : " + bouee.Latitude; labelTemperatureEauBoue.Content = temperatureEauBoue + " : " + bouee.TemperatureEau; labelTemperatureAirBoue.Content = temperatureAirBoue + " : " + bouee.TemperatureAir; labelSaliniteBoue.Content = saliniteBoue + " : " + bouee.Salinite; labelVitesseVentBoue.Content = vitesseVentBoue + " : " + (bouee.VitesseVent).ToString("N4"); labelDimensionBoue.Content = dimensionBoue + " : " + bouee.Dimension; labelPressionAtmospheriqueBoue.Content = pressionAtmospheriqueBoue + " : " + (bouee.PressionAtmospherique).ToString("N4"); }
public BoueeShape(Bouee bouee) { ellipse = new EllipseGeometry(); this.bouee = bouee; this.Width = 10; this.Height = 10; this.Stroke = Brushes.Black; this.StrokeThickness = 10; }
private void construireVueListeBouee() { //A modif avec les donnée du DAO List <Bouee> listeBoueeTest = new List <Bouee>(); for (int i = 0; i < 15; i++) { positionLongitude = 48.488232f + (0.1f * i); positionLatitude = -68.601312f + (0.1f * i); //MessageBox.Show("Longitude = " + positionLongitude + ", Latitude = " + positionLatitude + " ,i = " + (0.001f * i)); Bouee boueeTest = new Bouee(i, positionLongitude, positionLatitude); //MessageBox.Show(boueeTest.Nom); listeBoueeTest.Add(boueeTest); } afficherListeBouee(listeBoueeTest); }
private void actionAfficherVueBoueDescription(Bouee bouee) { VueBoueDescription vueBoueDescription = new VueBoueDescription(bouee, culture); vueBoueDescription.Show(); }