BHoM / BHoM_UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve feedback/instruction to user for the case of empty input to SetProjectID

al-fisher opened this issue · comments

Description:

The common default case of an empty string being an input into the BH.Engine.UI.SetProjectID component could benefit from a nudging message - to encourage population.

image

Propose replacing

if (projectID == "")
    return false;

with

if (projectID == "")
{
    Engine.Reflection.Compute.RecordWarning("Please enter the project number your work in this script relates to");
    return false;
}
                

as a warning to heighten the gentle nudge to not ignore when component is on the canvas 😄