ArcGISCompare.frmMaster.CheckFeatureProperties C# (CSharp) Method

CheckFeatureProperties() public method

public CheckFeatureProperties ( TreeNode &N, FeatureData theS, FeatureData theD ) : void
N TreeNode
theS FeatureData
theD FeatureData
return void
        public void CheckFeatureProperties(ref TreeNode N, FeatureData theS, FeatureData theD)
        {
            if (theS.theAlias != theD.theAlias)
            {
                N.ImageIndex = 1; N.SelectedImageIndex = 1;
                TreeNode Alias = new TreeNode("Mismatched Alias") { ImageIndex = 1, SelectedImageIndex = 1 };
                Alias.Nodes.Add("Template is " + theS.theAlias);
                Alias.Nodes.Add("Implementation is " + theD.theAlias);
                N.Nodes.Add(Alias);
            }

            if (theS.OIDName.ToUpper() != theD.OIDName.ToUpper())
            {
                N.ImageIndex = 1; N.SelectedImageIndex = 1;
                TreeNode OID = new TreeNode("Mismatched OID Field Name") { ImageIndex = 1, SelectedImageIndex = 1 };
                OID.Nodes.Add("Template is " + theS.OIDName.ToUpper());
                OID.Nodes.Add("Implementation is " + theD.OIDName.ToUpper());
                N.Nodes.Add(OID);
            }

            if (theS.theGType != theD.theGType)
            {
                N.ImageIndex = 1; N.SelectedImageIndex = 1;
                TreeNode OID = new TreeNode("Mismatched OID Field Name") { ImageIndex = 1, SelectedImageIndex = 1 };
                OID.Nodes.Add("Template is " + theS.theGType.ToString());
                OID.Nodes.Add("Implementation is " + theD.theGType.ToString());
                N.Nodes.Add(OID);
            }

            if (theS.ShapeName != theD.ShapeName) { N.ImageIndex = 1; N.SelectedImageIndex = 1; N.Nodes.Add("Mismatched Shape Field Name"); }

            //if (theS.theDS.Name != theD.theDS.Name) { N.Nodes.Add("Mismatched Feature Dataset Name"); }
        }