public void SetFieldComplete(string Applicator, string Name, string LatLong, bool Complete,
                                     int Temperature, string WindDirection, int WindSpeed)
        {
            int i = 0;

            for (i = 0; this.Fields != null && i < this.Fields.Length; i++)
            {
                if (Fields[i].Name.ToUpper() == Name.ToUpper() &&
                    Fields[i].LatLong.ToUpper() == LatLong.ToUpper())
                {
                    //Field was found
                    RecordStamp genericStamp = new RecordStamp();
                    genericStamp.DateRecorded = DateTime.Now;
                    genericStamp.Pilot        = Applicator;

                    Fields[i].Completed = Complete;
                    Fields[i].Stamp     = genericStamp;
                    //if (Fields[i].Stamp == null)
                    //    Fields[i].Stamp = new RecordStamp();
                    //Fields[i].Stamp.DateRecorded = DateTime.Now;
                    //Fields[i].Stamp.Pilot = Applicator;
                    if (Fields[i].Environment == null)
                    {
                        Fields[i].Environment = new Environment();
                    }
                    Fields[i].Environment.Temperature   = Temperature;
                    Fields[i].Environment.WindDirection = WindDirection;
                    Fields[i].Environment.WindSpeed     = WindSpeed;
                    Fields[i].Environment.Stamp         = genericStamp;

                    break;
                }
            }

            if (this.Fields == null || i >= this.Fields.Length)
            {//Field not found. Add it to the list.
                Fields[] fields = this.Fields;
                if (fields == null)
                {
                    fields = new Fields[0];
                }

                Array.Resize <Fields>(ref fields, fields.Length + 1);
                fields[fields.Length - 1]                           = new Fields();
                fields[fields.Length - 1].Completed                 = Complete;
                fields[fields.Length - 1].Name                      = Name;
                fields[fields.Length - 1].LatLong                   = LatLong;
                fields[fields.Length - 1].Stamp                     = new RecordStamp();
                fields[fields.Length - 1].Stamp.DateRecorded        = DateTime.Now;
                fields[fields.Length - 1].Stamp.Pilot               = Applicator;
                fields[fields.Length - 1].Environment               = new Environment();
                fields[fields.Length - 1].Environment.Stamp         = fields[fields.Length - 1].Stamp;
                fields[fields.Length - 1].Environment.Temperature   = Temperature;
                fields[fields.Length - 1].Environment.WindDirection = WindDirection;
                fields[fields.Length - 1].Environment.WindSpeed     = WindSpeed;

                this.Fields = fields;
            }
        }
 static public void VerifyStamp(ref RecordStamp Stamp)
 {
     if (Stamp == null)
     {
         Stamp = new RecordStamp();
         Stamp.DateRecorded = new DateTime(1900, 1, 1);
         Stamp.Pilot        = "";
     }
 }