Beispiel #1
0
 private void AllChannels_Unchecked(object sender, RoutedEventArgs e)
 {
     if (ChannelList != null)
     {
         ChannelList.IsEnabled = true;
         selectedChannels = parseList(ChannelList.Text);
         writeChans();
     }
     checkError();
 }
Beispiel #2
0
 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));
 }
Beispiel #3
0
        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;
        }
Beispiel #4
0
 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();
 }