Beispiel #1
0
 private void SPECforsearch_SelectedIndexChanged(object sender, EventArgs e)
 {
     SpecSearchResult.Clear();
     foreach (var univer in pData.UniverList)
     {
         foreach (var fac in univer.FacultetList)
         {
             foreach (var spec in fac.SpecList)
             {
                 if (spec.Name == SPECforsearch.Text)
                 {
                     SpecSearchResult.AppendText($"{Environment.NewLine}{univer.Name} {Environment.NewLine} Факультет :{fac.NameOfFac}{Environment.NewLine}  Популярність: {spec.Popular} {Environment.NewLine}  Мін. Бал: {spec.Minbal} { Environment.NewLine} ");
                 }
             }
         }
     }
 }
Beispiel #2
0
 private void ResetSpec_Click(object sender, EventArgs e)
 {
     SpecSearchResult.Clear();
     SPECforsearch.Text = null;
 }