Esempio n. 1
0
        private void FinishBtn_Click(object sender, RoutedEventArgs e)
        {
            DateTime   theDate = this.dateRep.SelectedDate.Value;
            Coordinate coor    = bl.GetCoordinate(this.cityTxt.Text, this.streetTxt.Text);//new Coordinate(5, 4);

            rep = new BE.ReportFall(200, new DateTime(theDate.Year, theDate.Month, theDate.Day, myTimePicker.Value.Value.Hour, myTimePicker.Value.Value.Minute, 0), this.nameTxt.Text, this.streetTxt.Text, this.cityTxt.Text, int.Parse(this.boomsTxt.Text), int.Parse(this.intensityTxt.Text), coor);
            bl.AddReportFall(rep);
            successMsg.Visibility        = Visibility.Visible;
            this.myMap1.Center.Latitude  = coor.Latitude;
            this.myMap1.Center.Longitude = coor.Longitude;
        }
Esempio n. 2
0
 public ReportFall(ReportFall rep)
 {
     //idRep = idNum++;
     FallId       = rep.FallId;
     DateRep      = rep.DateRep;
     NameReporter = rep.NameReporter;
     Address      = rep.Address;
     City         = rep.City;
     BoomsN       = rep.BoomsN;
     Intensity    = rep.Intensity;
     CoordinateR  = new Coordinate(rep.CoordinateR.Latitude, rep.CoordinateR.Longitude);
 }