private void cmbStimuluses_SelectedValueChanged(object sender, EventArgs e) { StimulusWrapper sw = (StimulusWrapper)cmbStimuluses.SelectedItem; if (sw != null) { Value = sw.TimePosition; } }
public void InitWithSeries(ETS_Data.Series series) { this.series = series; if (series.Config.OrderTypeId == (long)Order.Fixed) { Minimum = 0; Maximum = (int)series.Length; Value = 0; long interval = series.Config.MaxInt; for (int i = 0; i < series.Config.SelectedStimulusSet.Count; i++) { Stimulus s = (Stimulus)series.Config.SelectedStimulusSet[i]; StimulusWrapper sw = new StimulusWrapper(); sw.Stimul = s; sw.TimePosition = (i + 1) * (int)interval; cmbStimuluses.Items.Add(sw); } } else { } }