private void ValidateLongitude() { errorProvider1.SetError(Longitude, null); double longitude = PicesKKStr.StrToLongitude(Longitude.Text); Longitude.Text = PicesKKStr.LongitudeToStr(longitude); }
} /* 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*/
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); }
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*/
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); }
} /* 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 */
private void Longitude_Validating(object sender, CancelEventArgs e) { longitude = PicesKKStr.StrToLongitude(Longitude.Text); Longitude.Text = PicesKKStr.LongitudeToStr(longitude); }