private void AllChannels_Unchecked(object sender, RoutedEventArgs e) { if (ChannelList != null) { ChannelList.IsEnabled = true; selectedChannels = parseList(ChannelList.Text); writeChans(); } checkError(); }
private void Go_Click(object sender, RoutedEventArgs e) { if((bool)AllChannels.IsChecked) { selectedChannels = new CompoundList(fm.NC, true); } CCIUtilities.Log.writeToLog("FMGraph2 creating Multigraph based on " + FMFileName); gp.TC.SelectedIndex = gp.TC.Items.Add(new Multigraph(this)); }
private CompoundList parseList(string str) { if (fm == null) return null; CompoundList c; try { c = new CompoundList(str, 1, fm.NC); } catch { return null; } return c; }
private void ChannelList_TextChanged(object sender, TextChangedEventArgs e) { if (sender == null) return; TextBox tb = (TextBox)sender; TextChange tc = e.Changes.Last(); string str = ChannelList.Text; if (tc.AddedLength == 1) { int i = tc.Offset; if (str[i++] == '{') { str = str.Substring(0, i) + "}" + str.Substring(i, str.Length - i); ChannelList.Text = str; ChannelList.Select(i, 0); return; } } selectedChannels = parseList(str); writeChans(); checkError(); }