/// <summary> /// Clears everything out of the form and the transform object. /// </summary> private void Init() { try { _map = ArcMap.Document.FocusMap; _transform = new ChampTransformClass(); _bm1LongOK = _bm1LatOK = _bm1ElevOK = _bm2LongOK = _bm2LatOK = _bm2ElevOK = _bm3LongOK = _bm3LatOK = _bm3ElevOK = _workspaceOK = _controlPtsOK = _benchmarksOK = _hingeOK = _bearingOK = false; _bearing12OK = _bearing13OK = _bearing23OK = true; _viewedTransforms = new List <string>(); comboBoxControlPts.DataSource = null; comboBoxControlPts.DisplayMember = "Name"; comboBoxGeoTrans.DataSource = null; FormUtilities.ClearControls(panelGPS); FormUtilities.ClearControls(panelInput); FormUtilities.ClearControls(panelOutput); comboBoxCoordSys.Items.Add("Lat/Long (WGS84)"); comboBoxCoordSys.Items.Add("UTM Zone 10N (NAD83)"); comboBoxCoordSys.Items.Add("UTM Zone 11N (NAD83)"); comboBoxCoordSys.Items.Add("UTM Zone 12N (NAD83)"); comboBoxCoordSys.Items.Add("User Defined"); labelSR.Text = ""; radioButtonProj.Checked = true; groupBoxBMs.Enabled = false; groupBoxRotation.Enabled = false; buttonSelectInputs.Enabled = false; buttonTransform.Enabled = false; buttonSave.Enabled = false; buttonSR.Enabled = false; panelGPS.Visible = true; panelInput.Visible = false; panelOutput.Visible = false; panelSampleCsv.Visible = false; panelSampleBearings.Visible = false; SetOutputSpatialReferenceToMap(); } catch (Exception ex) { ShowError(ex.Message); } }
/// <summary> /// Clears everything. /// </summary> private void Init() { _transform = new ChampTransformClass(); _transform.SetMap(ArcMap.Document.FocusMap); _benchmarkName = null; _transformTableName = null; inputDatasetTextBox.Text = ""; controlPointsComboBox.DataSource = null; controlPointsComboBox.Text = ""; attributeFieldComboBox.Items.Clear(); attributeFieldComboBox.Text = ""; benchmark1ComboBox.Items.Clear(); benchmark1ComboBox.Text = ""; benchmark2ComboBox.Items.Clear(); benchmark2ComboBox.Text = ""; benchmark3ComboBox.Items.Clear(); benchmark3ComboBox.Text = ""; benchmarkTextBox.Text = ""; transformTextBox.Text = ""; outputWorkspaceTextBox.Text = ""; }