Example #1
0
        private void button1_Click(object sender, System.EventArgs e)
        {
            if (_sRef == null)
            {
                return;
            }

            FormPropertyGrid dlg = new FormPropertyGrid(
                new SpatialReferenceProperties((gView.Framework.Geometry.SpatialReference)_sRef));

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                MakeGUI();
            }
        }
Example #2
0
        private void button2_Click(object sender, System.EventArgs e)
        {
            if (_sRef == null)
            {
                return;
            }

            FormPropertyGrid dlg = new FormPropertyGrid(
                new GeodeticDatumProperties((GeodeticDatum)_sRef.Datum));

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                _sRef.Datum = (IGeodeticDatum)dlg.SelectedObject;
                MakeGUI();
            }
        }