Example #1
0
        } /* ValidateStationName */

        private void  ValidateLatitude()
        {
            errorProvider1.SetError(Latitude, null);
            double latitude = PicesKKStr.StrToLatitude(Latitude.Text);

            Latitude.Text = PicesKKStr.LatitudeToStr(latitude);
        }
Example #2
0
        } /* PopulateScreen */

        private void  PopulateStationFromScreen()
        {
            station.StationName   = StationName.Text;
            station.Description   = Description.Text;
            station.Latitude      = PicesKKStr.StrToLatitude(Latitude.Text);
            station.Longitude     = PicesKKStr.StrToLongitude(Longitude.Text);
            station.DateTimeStart = DateTimeStart.Value;
        } /* PopulateStationFromScreen*/
Example #3
0
        private bool  ChangesMade()
        {
            bool changesMade = (StationName.Text != station.StationName) ||
                               (Description.Text != station.Description) ||
                               (PicesKKStr.StrToLatitude(Latitude.Text) != station.Latitude) ||
                               (PicesKKStr.StrToLongitude(Longitude.Text) != station.Longitude) ||
                               (DateTimeStart.Value != station.DateTimeStart);

            return(changesMade);
        }
Example #4
0
 private void PopulateDeploymentFromScreen()
 {
     deployment.DeploymentNum       = DeploymentNum.Text;
     deployment.Description         = Description.Text;
     deployment.Latitude            = PicesKKStr.StrToLatitude(Latitude.Text);
     deployment.Longitude           = PicesKKStr.StrToLongitude(Longitude.Text);
     deployment.ChamberWidth        = PicesKKStr.StrToFloat(ChamberWidth.Text);
     deployment.DateTimeStart       = DateTimeStart.Value;
     deployment.DateTimeEnd         = DateTimeEnd.Value;
     deployment.SyncTimeStampActual = SyncTimeStampActual.Value;
     deployment.SyncTimeStampCTD    = SyncTimeStampCTD.Value;
     deployment.SyncTimeStampGPS    = SyncTimeStampGPS.Value;
 } /* PopulateDeploymentFromScreen*/
Example #5
0
        private bool  ChangesMade()
        {
            float chamberWidthT = PicesKKStr.StrToFloat(ChamberWidth.Text);

            bool changesMade = (DeploymentNum.Text != deployment.DeploymentNum) ||
                               (Description.Text != deployment.Description) ||
                               (PicesKKStr.StrToLatitude(Latitude.Text) != deployment.Latitude) ||
                               (PicesKKStr.StrToLongitude(Longitude.Text) != deployment.Longitude) ||
                               (chamberWidthT != deployment.ChamberWidth) ||
                               (SyncTimeStampActual.Value != deployment.SyncTimeStampActual) ||
                               (SyncTimeStampCTD.Value != deployment.SyncTimeStampCTD) ||
                               (SyncTimeStampGPS.Value != deployment.SyncTimeStampGPS) ||
                               (DateTimeStart.Value != deployment.DateTimeStart) ||
                               (DateTimeEnd.Value != deployment.DateTimeEnd);

            return(changesMade);
        }
Example #6
0
        } /* PopulateScreen */

        private void  UpdateFromScreen()
        {
            sipperFile.SipperFileName = SipperFileName.Text;
            sipperFile.Description    = Description.Text;
            sipperFile.Latitude       = PicesKKStr.StrToLatitude(Latitude.Text);
            sipperFile.Longitude      = PicesKKStr.StrToLongitude(Longitude.Text);
            sipperFile.DateTimeStart  = DateTimeStart.Value;
            sipperFile.ScanRate       = PicesKKStr.StrToFloat(ScanRate.Text);
            sipperFile.Depth          = PicesKKStr.StrToFloat(Depth.Text);
            sipperFile.Sp0            = SerialPort0.Text;
            sipperFile.Sp1            = SerialPort1.Text;
            sipperFile.Sp2            = SerialPort2.Text;
            sipperFile.Sp3            = SerialPort3.Text;
            sipperFile.CtdExt0        = CTDExt0.Text;
            sipperFile.CtdExt1        = CTDExt1.Text;
            sipperFile.CtdExt2        = CTDExt2.Text;
            sipperFile.CtdExt3        = CTDExt3.Text;

            sipperFile.ExtractionStatus        = (sbyte)ExtractionStatusCodeFromStr(ExtractionStatus.Text);
            sipperFile.ExtractionScanLineStart = PicesKKStr.StrToUint(ExtractionScanLineStart.Text);
            sipperFile.ExtractionScanLineEnd   = PicesKKStr.StrToUint(ExtractionScanLineEnd.Text);
        } /* PopulateScreen */
Example #7
0
 private void Latitude_Validating(object sender, CancelEventArgs e)
 {
     latitude      = PicesKKStr.StrToLatitude(Latitude.Text);
     Latitude.Text = PicesKKStr.LatitudeToStr(latitude);
 }