ArcGISCompare.frmMaster.mnuMapConstant_Click C# (CSharp) Method

mnuMapConstant_Click() private method

private mnuMapConstant_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void mnuMapConstant_Click(object sender, EventArgs e)
        {
            dlgConstant theDlg = new dlgConstant();

            AttributeMappingData theItem = (AttributeMappingData)lstAttMappings.SelectedItem;
            theDlg.lblInsertHere.Text = theItem.destFC + " --- " + theItem.destAtt;
            theDlg.lblDataType.Text = MiscProcs.UnBuildDataType(theItem.destDT, theItem.destLen);
            theDlg.lblLength.Text = theItem.destLen.ToString();
            theDlg.forNulls.Text = "T";

            if (theItem.destEnum != "")
            {
                theDlg.lblEnum.Text = theItem.destEnum;
            }

            if (theItem.constant != "")
            {
            }

            DialogResult theRes = theDlg.ShowDialog(this);

            if (theRes == DialogResult.OK)
            {
                theItem.constant = theDlg.txtConst.Text;
            }
        }