Change default layers when comparing code
Classes- --- SysCompare.initContext() method
if (comboBox1.getText(comboBox1.selection()) == comboBox2.getText(comboBox2.selection()) && comboBox2.items() > comboBox2.selection() + 1 )
{
comboBox2.selection(comboBox2.selection()+1);
if (comboBox1.items() == comboBox2.items() - 1)
{
if (comboBox1.items() > 2 && Global::strEndsWith(comboBox2.getText(comboBox2.items() - 1), ' (SYS)'))
{
comboBox1.selection(comboBox1.items() - 2);
comboBox2.selection(comboBox2.items() - 2);
}
}
}
else if (comboBox1.items() > 1 && comboBox2.items() == 1 && Global::strEndsWith(comboBox2.getText(1 - 1), ' (xpo)'))
{
// Compare last layer to the imported XPO
comboBox1.selection(comboBox1.items() - 1); // Set first drop down to last possible option
}
Classes- --- SysCompare.initContext() method
if (comboBox1.getText(comboBox1.selection()) == comboBox2.getText(comboBox2.selection()) && comboBox2.items() > comboBox2.selection() + 1 )
{
comboBox2.selection(comboBox2.selection()+1);
if (comboBox1.items() == comboBox2.items() - 1)
{
if (comboBox1.items() > 2 && Global::strEndsWith(comboBox2.getText(comboBox2.items() - 1), ' (SYS)'))
{
comboBox1.selection(comboBox1.items() - 2);
comboBox2.selection(comboBox2.items() - 2);
}
}
}
else if (comboBox1.items() > 1 && comboBox2.items() == 1 && Global::strEndsWith(comboBox2.getText(1 - 1), ' (xpo)'))
{
// Compare last layer to the imported XPO
comboBox1.selection(comboBox1.items() - 1); // Set first drop down to last possible option
}
No comments:
Post a Comment