Beispiel #1
0
        private void CreateSliders(IEnumerable <string> variableNames)
        {
            flowLayoutPanel.Controls.Clear();

            foreach (var variableName in variableNames)
            {
                var variableTrackbar = new VariableTrackbar(variableName,
                                                            Content.ProblemData.Dataset.GetDoubleValues(variableName));
                variableTrackbar.Size          = new Size(variableTrackbar.Size.Width, flowLayoutPanel.Size.Height - 23);
                variableTrackbar.ValueChanged += TrackBarValueChanged;
                flowLayoutPanel.Controls.Add(variableTrackbar);
            }
        }
    private void CreateSliders(IEnumerable<string> variableNames) {
      flowLayoutPanel.Controls.Clear();

      foreach (var variableName in variableNames) {
        var variableTrackbar = new VariableTrackbar(variableName,
                                                    Content.ProblemData.Dataset.GetDoubleValues(variableName));
        variableTrackbar.Size = new Size(variableTrackbar.Size.Width, flowLayoutPanel.Size.Height - 23);
        variableTrackbar.ValueChanged += TrackBarValueChanged;
        flowLayoutPanel.Controls.Add(variableTrackbar);
      }
    }