rendered paste bodyprivate void ProfileSequenceList_DoubleClick(object sender, System.EventArgs e)
{
String[] seq_cb; // no need to fill it: = new String[3];
// no need for this: char[] delim = new char[4];
int idxSeq = -1;
int idxCB = -1;
/*
delim[0] = ' ';
delim[1] = '-';
delim[2] = ' ';
delim[3] = '\0';
*/
// Fist find the name of the Sequence and the Callback
seq_cb = ProfileSequenceList.Text.Split('-', 3);
for(int i = 0; i < seq_cb.Length; i++)
seq_cb[i] = seq_cb[i].Trim();
idxSeq = AvailableSequenceList.FindStringExact(seq_cb[0]);
idxCB = CallbackList.FindStringExact(seq_cb[2]);
if(idxSeq != -1 && idxCB != -1)
{
AvailableSequenceList.SelectedIndex = idxSeq;
CallbackList.SelectedIndex = idxCB;
}
}