コード例 #1
0
        private void ZeroLatLng_FormClosing(object sender, FormClosingEventArgs e)
        {
            WorkData ma;

            if (DialogResult == DialogResult.OK)
            {
                for (int a = 0; a < csoGrid.RowCount; a++)
                {
                    ma = (WorkData)csoGrid[0, a].Value;
                    dao.GetLatLngProb(ma);
                    dao.InsertLatLng(ma);
                }
            }
            else
            {
                for (int a = 0; a < csoGrid.RowCount; a++)
                {
                    ma     = (WorkData)csoGrid[0, a].Value;
                    ma.Lat = ma.Lng = 0;
                }
            }
        }