private void DeMIMOI_trackBar_stage5_Update(DeMIMOI sender, ref List<DeMIMOI_InputOutput> new_outputs) { // Assign to the trakbar control the value of the its model (the model that represents it in the DeMIMOI world) trackBar_stage5.Value = (int)((double)sender.Inputs[0][0].Value); }
/// <summary> /// Constructs a new DeMIMOI_InputOutput object by specifying its type and its parent DeMIMOI object /// </summary> /// <param name="parent">DeMIMOI object in which it is used and included</param> /// <param name="type">Input/Output type</param> public DeMIMOI_InputOutput(DeMIMOI parent, DeMIMOI_InputOutputType type) { Initialize(); // Set the specified type Type = type; // Set the parent DeMIMOI object Parent = parent; }
// This function is automatically called when the DeMIMOI_trackBar1 model needs to be updated private void DeMIMOI_trackBar1_Update(DeMIMOI sender, ref List<DeMIMOI_InputOutput> new_outputs) { new_outputs[0].Value = (double)trackBar1.Value; }