0

Linear gauge scripts for start time and scale max

Hello, 

I am trying to use scripts to use a date time picker value as the start time for a linear gauge and a value box as the scale max in the same linear gauge, but I am getting errors for both. Below is the code I am using. 

Start time error: Could not get delegate of type "AxiomCore2.Events.EventDelegates+OnValueChange" for event named "LinearGauge1_OnBeginValueChange"Cannot bind to the target method because its signature or security transparency is not compatible with that of the delegate type.

scale max error: CS1061

public void DateTimePicker1_OnDateTimeChange(object sender, DateTime dateTime)
        {
            string startTime = dateTime.ToString("o");
            ValueBox1.AggregateStartTime = startTime;
            LinearGauge1.AggregateStartTime = startTime;
            LinearGauge1.ScaleMax = ValueBox2.Value?.Value;
        }

1 reply

null
    • smason
    • 11 hrs ago
    • Reported - view

    Hi ,

    In your script you are referencing two different ValueBoxes, 1 and 2. Is that your intent? Are you wanting to grab the value of the ValueBox at the time specified from the DateTimePicker, or is it just going to use the most recent value?

Content aside

print this pagePrint this page
  • 11 hrs agoLast active
  • 1Replies
  • 9Views
  • 2 Following