Exemple #1
0
        private void  ValidateLongitude()
        {
            errorProvider1.SetError(Longitude, null);
            double longitude = PicesKKStr.StrToLongitude(Longitude.Text);

            Longitude.Text = PicesKKStr.LongitudeToStr(longitude);
        }
Exemple #2
0
        } /* ExtractionStatusCodeFromStr */

        private void  PopulateScreen()
        {
            SipperFileName.Text = sipperFile.SipperFileName;
            Description.Text    = sipperFile.Description;
            Latitude.Text       = PicesKKStr.LatitudeToStr(sipperFile.Latitude);
            Longitude.Text      = PicesKKStr.LongitudeToStr(sipperFile.Longitude);

            DateTimeStart.Value = sipperFile.DateTimeStart;

            ScanRate.Text = sipperFile.ScanRate.ToString("###,##0.00");
            Depth.Text    = sipperFile.Depth.ToString("#,##0.00");

            SerialPort0.Text = sipperFile.Sp0;
            SerialPort1.Text = sipperFile.Sp1;
            SerialPort2.Text = sipperFile.Sp2;
            SerialPort3.Text = sipperFile.Sp3;

            CTDExt0.Text = sipperFile.CtdExt0;
            CTDExt1.Text = sipperFile.CtdExt1;
            CTDExt2.Text = sipperFile.CtdExt2;
            CTDExt3.Text = sipperFile.CtdExt3;

            ExtractionStatus.Text        = ExtractionStatusCodeToStr((char)sipperFile.ExtractionStatus);
            ExtractionScanLineStart.Text = sipperFile.ExtractionScanLineStart.ToString("###,###,##0");
            ExtractionScanLineEnd.Text   = sipperFile.ExtractionScanLineEnd.ToString("###,###,##0");
        } /* PopulateScreen */
Exemple #3
0
        private void PopulateScreen()
        {
            CruiseName.Text    = deployment.CruiseName;
            StationName.Text   = deployment.StationName;
            DeploymentNum.Text = deployment.DeploymentNum;
            if (addingNewDeployment)
            {
                DeploymentNum.ReadOnly = false;
                DeploymentNum.TabStop  = true;
            }
            else
            {
                DeploymentNum.ReadOnly = true;
                DeploymentNum.TabStop  = false;
            }
            Description.Text = deployment.Description;
            Latitude.Text    = PicesKKStr.LatitudeToStr(deployment.Latitude);
            Longitude.Text   = PicesKKStr.LongitudeToStr(deployment.Longitude);
            String s = deployment.ChamberWidth.ToString(ChamberWidth.Mask);

            s = s.PadLeft(ChamberWidth.Mask.Length);
            ChamberWidth.Text   = s;
            DateTimeStart.Value = deployment.DateTimeStart;
            DateTimeEnd.Value   = deployment.DateTimeEnd;

            SyncTimeStampActual.Value = deployment.SyncTimeStampActual;
            SyncTimeStampCTD.Value    = deployment.SyncTimeStampCTD;
            SyncTimeStampGPS.Value    = deployment.SyncTimeStampGPS;

            if (deletingDeployment)
            {
                StationName.ReadOnly        = false;
                Description.ReadOnly        = false;
                Latitude.ReadOnly           = false;
                Longitude.ReadOnly          = false;
                ChamberWidth.Enabled        = false;
                DateTimeStart.Enabled       = false;
                DateTimeEnd.Enabled         = false;
                SyncTimeStampActual.Enabled = false;
                SyncTimeStampCTD.Enabled    = false;
                SyncTimeStampGPS.Enabled    = false;
                UpdateButton.Text           = "Delete";
            }

            PopulateSipperFiles();

            if (!allowUpdates)
            {
                UpdateButton.Enabled        = false;
                AddSipperFileButton.Enabled = false;
            }
        } /* PopulateScreen */
Exemple #4
0
        private void PopulateScreen()
        {
            CruiseName.Text  = station.CruiseName;
            StationName.Text = station.StationName;
            if (addingNewStation)
            {
                StationName.ReadOnly        = false;
                StationName.TabStop         = true;
                UpdateButton.Text           = "Add";
                AddDeploymentButton.Enabled = false;
            }
            else
            {
                StationName.ReadOnly        = true;
                StationName.TabStop         = false;
                UpdateButton.Text           = "Update";
                AddDeploymentButton.Enabled = true;
                LoadDeploymentDetails();
            }


            Description.Text    = station.Description;
            Latitude.Text       = PicesKKStr.LatitudeToStr(station.Latitude);
            Longitude.Text      = PicesKKStr.LongitudeToStr(station.Longitude);
            DateTimeStart.Value = station.DateTimeStart;

            if (deletingStation)
            {
                StationName.ReadOnly        = true;
                Description.ReadOnly        = true;
                Latitude.ReadOnly           = true;
                Longitude.ReadOnly          = true;
                DateTimeStart.Enabled       = false;
                AddDeploymentButton.Enabled = false;
                UpdateButton.Text           = "Delete";
            }

            if (!allowUpdates)
            {
                UpdateButton.Enabled        = false;
                AddDeploymentButton.Enabled = false;
            }
        } /* PopulateScreen */
Exemple #5
0
 private void Longitude_Validating(object sender, CancelEventArgs e)
 {
     longitude      = PicesKKStr.StrToLongitude(Longitude.Text);
     Longitude.Text = PicesKKStr.LongitudeToStr(longitude);
 }