public void Sort()
 {
     for (int i = 0; i < n - 1; i++)
     {
         Operatorius min      = Op[i];
         int         mazindex = i;
         for (int j = i + 1; j < n; j++)
         {
             if (Op[j] <= min)
             {
                 min      = Op[j];
                 mazindex = j;
             }
         }
         Op[mazindex] = Op[i];
         Op[i]        = min;
     }
 }
        static void Skaityti(string duom, ref Korteles korteles)
        {
            using (StreamReader reader = new StreamReader(duom))
            {
                string   pav;
                double   prad, t1, t2, sms1, sms2;
                string   eilute;
                string[] skaidymas;

                while ((eilute = reader.ReadLine()) != null && korteles.Imti() < korteles.Max())
                {
                    skaidymas = eilute.Split(';');
                    pav       = skaidymas[0].Trim();
                    prad      = double.Parse(skaidymas[1].Trim());
                    t1        = double.Parse(skaidymas[2].Trim());
                    t2        = double.Parse(skaidymas[3].Trim());
                    sms1      = double.Parse(skaidymas[4].Trim());
                    sms2      = double.Parse(skaidymas[5].Trim());
                    Operatorius op = new Operatorius(pav, prad, t1, t2, sms1, sms2);
                    korteles.Dėti(op);
                }
            }
        }
 public void Dėti(Operatorius ob)
 {
     Op[n++] = ob;
 }