static void OpenDialogItemGroup(Args _args)
{
Dialog dialog = new Dialog("Item grup selection");
DialogField fieldGroup;
DialogField fieldDisc;
ItemgroupId ItemgroupId;
Amount Amount;
;
fieldGroup = dialog.addField(typeid(ItemgroupId));
fieldDisc = dialog.addField(typeid(Amount),"Disc. Pct.");
if (dialog.run())
{
info("You selected: " + fieldGroup.value() + " " +int2str(fieldDisc.value()));
}
}
{
Dialog dialog = new Dialog("Item grup selection");
DialogField fieldGroup;
DialogField fieldDisc;
ItemgroupId ItemgroupId;
Amount Amount;
;
fieldGroup = dialog.addField(typeid(ItemgroupId));
fieldDisc = dialog.addField(typeid(Amount),"Disc. Pct.");
if (dialog.run())
{
info("You selected: " + fieldGroup.value() + " " +int2str(fieldDisc.value()));
}
}