Exemplo n.º 1
0
 private void getSalinityLbl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     using (SalinityDialog sDialog = new SalinityDialog())
     {
         if (sDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             salinityEdit.Value = Convert.ToDecimal(sDialog.Salinity);
         }
     }
 }
Exemplo n.º 2
0
 private void salinityDataBaseBtn_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     using (SalinityDialog sDialog = new SalinityDialog())
     {
         if (sDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             salinity = sDialog.Salinity;
         }
     }
 }
Exemplo n.º 3
0
 private void styDialogLnk_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     using (SalinityDialog sDialog = new SalinityDialog())
     {
         sDialog.Text = "RWLT Host - Salinity";
         if (sDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             salinityPSU = sDialog.Salinity;
         }
     }
 }
Exemplo n.º 4
0
        private void styBaseBtn_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            using (SalinityDialog sDialog = new SalinityDialog())
            {
                sDialog.Title = "World salinity database";

                if (sDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    waterSalinityPSU = sDialog.Salinity;
                }
            }
        }
Exemplo n.º 5
0
        private void salinitySearchLnk_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            using (SalinityDialog sDialog = new SalinityDialog())
            {
                sDialog.Text                = LocRM.GetString("mfText_SalinityAdjustStr");
                sDialog.LatCaption          = LocRM.GetString("mfText_LatitudeStr");
                sDialog.LonCaption          = LocRM.GetString("mfText_LongitudeStr");
                sDialog.SearchBtnCaption    = LocRM.GetString("mfText_FindStr");
                sDialog.SalinityCaption     = LocRM.GetString("mfText_SalinityPPMStr");
                sDialog.SalinityDefCaption  = LocRM.GetString("mfText_NoDataStr");
                sDialog.ErrorConnetingDBMsg = LocRM.GetString("mfText_DataBaseErrorStr");
                sDialog.NearestPntMsg       = LocRM.GetString("mfText_NearestStr");

                if (sDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    salinity = sDialog.Salinity;
                }
            }
        }