public Shot(Station station) { this.Fr = new Id(station.From); this.T = new Id(station.To); this.Distance = station.Distance; this.Azimuth = station.Azimuth; this.Inclination = station.Inclination; this.flags = station.flags; this.roll = station.roll; this.tripIndex = station.tripIndex; if (this.flags == 2) { this.Comment = station.Comment; } }
private void LoadGrid() { Stations = new List<Station>(); int i = 0; foreach (Shot shat in this.topFile.Shots) { Station station = new Station(shat); station.Idx = i; Stations.Add(station); i++; } this.SurveyView.ItemsSource = Stations; }
public Station Clone(int id = -1) { Station station = new Station() { Azimuth = this.Azimuth, Comment = this.Comment, Distance = this.Distance, From = this.From, Inclination = this.Inclination, To = this.To }; if (id >= 0) station.Idx = id; return station; }