private void k2700Setup_KeithleyDataNamesChanged(object sender, DataSourceNamesEventsArgs e) { if (KeithleySourceNamesChanged != null) { KeithleySourceNamesChanged(sender, e); } }
public void dataNamesUpdate(object sender, DataSourceNamesEventsArgs e) { cmbSeries.Items.Clear(); for (int i = 0; i < e.sourceDataNames.Length; i++) { cmbSeries.Items.Add(e.sourceDataNames[i]); } initValues(); }
private void fireUpdateEvent() { if (FilterNamesChanged != null) { DataSourceNamesEventsArgs e = new DataSourceNamesEventsArgs(); e.sourceDataNames = getDataNames(); FilterNamesChanged(this, e); } }
/** * Called externally when the data name convention is changed or initialized * */ public void dataNamesUpdate(object sender, DataSourceNamesEventsArgs e) { cmbChannelA.Items.Clear(); cmbChannelB.Items.Clear(); for (int i = 0; i < e.sourceDataNames.Length; i++) { cmbChannelA.Items.Add(e.sourceDataNames[i]); cmbChannelB.Items.Add(e.sourceDataNames[i]); } initSettings(); }
/** * Called from other sources when the names for the data resources update * */ public void dataNamesUpdate(object sender, DataSourceNamesEventsArgs e) { cmbHallProbe1.Items.Clear(); cmbHallProbe2.Items.Clear(); for (int i = 0; i < e.sourceDataNames.Length; i++) { cmbHallProbe1.Items.Add(e.sourceDataNames[i]); cmbHallProbe2.Items.Add(e.sourceDataNames[i]); } cmbHallProbe1.SelectedIndex = 22; cmbHallProbe2.SelectedIndex = 23; }
public void keithleyNamesEvent() { if (KeithleyDataNamesChanged != null) { int expIndex = cmbMode.SelectedIndex; DataSourceNamesEventsArgs e = new DataSourceNamesEventsArgs(); e.sourceDataNames = new string[keithleyData[expIndex].Rows.Count]; for (int i = 0; i < e.sourceDataNames.Length; i++) { e.sourceDataNames[i] = (string)(keithleyData[expIndex].Rows[i][colIndexLabel]); } KeithleyDataNamesChanged(this, e); } }
public void setDatafile(string file) { hallprobe = new HallProbeInstrument(file); hallprobe.initializeInstrument(); hallprobe.SaveData += Hallprobe_SaveData; DataSourceNamesEventsArgs args = new DataSourceNamesEventsArgs(); args.sourceDataNames = new string[4]; args.sourceDataNames[0] = "Bx"; args.sourceDataNames[1] = "By"; args.sourceDataNames[2] = "Bz"; args.sourceDataNames[3] = "Bnorm"; graphXYPlot1.dataNamesUpdate(null, args); }
public void dataNamesUpdate(object sender, DataSourceNamesEventsArgs e) { header = e.sourceDataNames; }