Example #1
0
 private void SynCB_SelectedIndexChanged(object sender, EventArgs e)
 {
     cbSyn  = SynCB.Text;
     _fileR = new StreamReader(_fileName);
     while (!_fileR.EndOfStream)
     {
         string temp = _fileR.ReadLine();
         if (temp == SynCB.Text)
         {
             DefTB.Text = _fileR.ReadLine();
             break;
         }
     }
     _fileR.Close();
     SynCB.Update();
     tbDef = DefTB.Text;
 }
Example #2
0
 private void WordCB_SelectedIndexChanged(object sender, EventArgs e)
 {
     SynCB.Items.Clear();
     cbWord = WordCB.Text;
     _fileR = new StreamReader(_fileName);
     if (SynCB.Visible == true)
     {
         while (!_fileR.EndOfStream)
         {
             string temp = _fileR.ReadLine();
             if (temp == WordCB.Text)
             {
                 _fileR.ReadLine();
                 temp = _fileR.ReadLine();
                 while (temp != "/")
                 {
                     SynCB.Items.Add(temp);
                     _fileR.ReadLine();
                     temp = _fileR.ReadLine();
                 }
             }
         }
     }
     else if (SynTB.Visible == false)
     {
         while (!_fileR.EndOfStream)
         {
             string temp = _fileR.ReadLine();
             if (temp == WordCB.Text)
             {
                 DefTB.Text = _fileR.ReadLine();
                 break;
             }
         }
     }
     _fileR.Close();
     SynCB.Sorted = true;
     SynCB.Update();
 }