private void mnuRun_Click(object sender, EventArgs e)
{
int nodeCount = 1;
mnuRun.Enabled = false;
Application.DoEvents();
if (lbSource.Items.Count > 0)
{
TreeNode G = new TreeNode("Geodatabases");
G.Nodes.Add("Template is " + srcWrkSpc.PathName);
G.Nodes.Add("Implementation is " + destWrkSpc.PathName);
TV.Nodes.Add(G);
foreach (FeatureData theSD in lbSource.Items)
{
foreach (FeatureData theDD in lbDestination.Items)
{
if (theSD.Name == theDD.Name)
{
theSD.SetIdentical(1);
theDD.SetIdentical(1);
TreeNode theN = new TreeNode(theSD.Name);
theN.ImageIndex = 0;
CheckFeatureProperties(ref theN, theSD, theDD);
CheckFieldProperties(ref theN, theSD, theDD);
CheckSubTypeProperties(ref theN, theSD, theDD);
CheckDefaultValues(ref theN, theSD, theDD);
CheckDomainsAndValues(ref theN, theSD, theDD);
TV.Nodes.Add(theN);
Application.DoEvents();
}
}
}
lbSource.SelectedIndex = 1;
lbSource.SelectedIndex = -1;
lbDestination.SelectedIndex = 1;
lbDestination.SelectedIndex = -1;
mnuMappings.Visible = true;
mnuShowMappings.Visible = true;
}
}