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