Exemplo n.º 1
0
        /// <summary>
        /// Creates a copy of the satellite.
        /// </summary>
        /// <returns>Returns the copy.</returns>
        public Satellite Copy()
        {
            Satellite s = new Satellite();

            s.ID     = fID;
            s.Name   = fName;
            s.Period = fPeriod;
            s.Offset = fOffset;

            return(s);
        }
Exemplo n.º 2
0
 public SatelliteForm(Masterplan.Data.Satellite sat)
 {
     this.InitializeComponent();
     this.fSatellite = sat.Copy();
     if (this.fSatellite.Period == 0)
     {
         this.fSatellite.Period = 1;
     }
     this.NameBox.Text    = this.fSatellite.Name;
     this.PeriodBox.Value = this.fSatellite.Period;
     this.OffsetBox.Value = this.fSatellite.Offset;
 }
Exemplo n.º 3
0
        public Satellite Copy()
        {
            Satellite satellite = new Satellite()
            {
                ID     = this.fID,
                Name   = this.fName,
                Period = this.fPeriod,
                Offset = this.fOffset
            };

            return(satellite);
        }