private void UpdateMinMaxValues(Enums.VariableDataTypes type)
        {
            lblMaxVal.Show();
            lblMinVal.Show();
            nudMaxVal.Show();
            nudMinVal.Show();

            switch (type)
            {
            case Enums.VariableDataTypes.Integer:
            case Enums.VariableDataTypes.Number:
                lblMinVal.Text = Strings.EventInput.minval;
                lblMaxVal.Text = Strings.EventInput.maxval;

                break;

            case Enums.VariableDataTypes.String:
                lblMinVal.Text = Strings.EventInput.minlength;
                lblMaxVal.Text = Strings.EventInput.maxlength;

                break;

            case Enums.VariableDataTypes.Boolean:
                lblMaxVal.Hide();
                lblMinVal.Hide();
                nudMaxVal.Hide();
                nudMinVal.Hide();

                break;
            }
        }
Ejemplo n.º 2
0
 public InputVariablePacket(Guid eventId, string title, string prompt, Enums.VariableDataTypes type)
 {
     EventId = eventId;
     Title   = title;
     Prompt  = prompt;
     Type    = type;
 }