예제 #1
0
 private void grdStation_OnRowDBClick(object Sender, Janus.Windows.GridEX.RowActionEventArgs e)
 {
     if (grdStation.SelectedRow != null)
     {
         SelectedStation = new JStation();
         if (SelectedStation.GetData(System.Convert.ToInt32(grdStation.SelectedRow.Row["Code"])))
         {
             DialogResult = System.Windows.Forms.DialogResult.OK;
         }
     }
 }
예제 #2
0
        private void Load1(int pCode)
        {
            JStation Auto = new JStation();

            Auto.GetData(pCode);
            txtName.Text = Auto.Name;
            try { Lat = Convert.ToDouble(Auto.Lat); }
            catch { Lat = 0; }
            try { Lng = Convert.ToDouble(Auto.Lng); }
            catch { Lng = 0; }
            txtLat.Text                  = Lat.ToString();
            txtLng.Text                  = Lng.ToString();
            jComZone.SelectedValue       = Auto.ZoneCode;
            cboStationType.SelectedValue = Auto.StationTypeCode;
        }