static void Creat_Enum(Args _args)
{
TreeNode node;
TreeNode newEnum = TreeNode::findNode("\\Data Dictionary\\Base Enums\\NewEnum");
Dialog dialog = new Dialog();
;
if(newEnum)
{
if(box::yesNo("already enum exist ,did you want to delete it",dialogbutton::No)==dialogbutton::yes)
{
newEnum.AOTdelete();
node = TreeNode::findNode("\\Data Dictionary\\Base Enums");
newEnum= node.AOTadd("NewEnum");
newEnum.AOTadd("xxx");
newEnum.AOTadd("yyy");
newEnum.AOTadd("zzz");
newEnum.AOTadd("ccc");
newEnum.AOTsave();
newEnum.AOTcompile();
info("NewEnum is created");
}
}
else
{
node = TreeNode::findNode("\\Data Dictionary\\Base Enums");
newEnum= node.AOTadd("NewEnum");
newEnum.AOTadd("xxx");
newEnum.AOTadd("yyy");
newEnum.AOTadd("zzz");
newEnum.AOTsave();
newEnum.AOTcompile();
info("NewEnum is created");
}
}
{
TreeNode node;
TreeNode newEnum = TreeNode::findNode("\\Data Dictionary\\Base Enums\\NewEnum");
Dialog dialog = new Dialog();
;
if(newEnum)
{
if(box::yesNo("already enum exist ,did you want to delete it",dialogbutton::No)==dialogbutton::yes)
{
newEnum.AOTdelete();
node = TreeNode::findNode("\\Data Dictionary\\Base Enums");
newEnum= node.AOTadd("NewEnum");
newEnum.AOTadd("xxx");
newEnum.AOTadd("yyy");
newEnum.AOTadd("zzz");
newEnum.AOTadd("ccc");
newEnum.AOTsave();
newEnum.AOTcompile();
info("NewEnum is created");
}
}
else
{
node = TreeNode::findNode("\\Data Dictionary\\Base Enums");
newEnum= node.AOTadd("NewEnum");
newEnum.AOTadd("xxx");
newEnum.AOTadd("yyy");
newEnum.AOTadd("zzz");
newEnum.AOTsave();
newEnum.AOTcompile();
info("NewEnum is created");
}
}