Пример #1
0
        } /* ParseDataFileLine */

        public void  Save(StreamWriter w)
        {
            w.WriteLine("AirTemp              = " + airTemp);
            w.WriteLine("CruiseDates          = " + cruiseDateStart.ToString("yyyy/mm/dd") + "," + cruiseDateEnd.ToString("yyyy/mm/dd"));
            w.WriteLine("CruiseLocation       = " + cruiseLocation);
            w.WriteLine("deploymentVehicle    = " + deploymentVehicle);
            w.WriteLine("SipperFilename       = " + sipperFileName);
            w.WriteLine("Latitude             = " + latitude.ToString());
            w.WriteLine("Longitude            = " + longitude.ToString());
            w.WriteLine("Objective            = " + objective);
            w.WriteLine("Principal            = " + principal);
            w.WriteLine("ResearchOrganization = " + researchOrg);
            w.WriteLine("SeaConditions        = " + seaConditions);
            w.WriteLine("ScanRate             = " + scanRate.ToString());
            w.WriteLine("CtdExt0Code          = " + ctdExt0Code);
            w.WriteLine("CtdExt1Code          = " + ctdExt1Code);
            w.WriteLine("CtdExt2Code          = " + ctdExt2Code);
            w.WriteLine("CtdExt3Code          = " + ctdExt3Code);

            if (portAssignments != null)
            {
                for (int x = 0; x < 6; x++)
                {
                    PortAssignment portAssignment = portAssignments[x];

                    if (portAssignment != null)
                    {
                        w.WriteLine
                            ("SerialPort           = " + x.ToString() + "," + portAssignment.HeaderStr());
                    }
                }
            }

            w.WriteLine("WeatherConditions    = " + weatherConditions);
            w.WriteLine("WaveHeight           = " + waveHeight);
        } /* Save */