Exemplo n.º 1
0
 public Citac(ref Common.Http.StranaLista procitaneStrane, int threadId, string threadName)
 {
     this.procitaneStrane = procitaneStrane;
     Radnik        = new Thread(new ThreadStart(Obrada));
     this.threadId = threadId;
     if (this is CitacZaglavlja)
     {
         Radnik.Name = threadName + Common.Korisno.Korisno.IntUStrSaNulama(threadId, (int)Properties.Settings.Default.BrojCitacaZaglavlja);
     }
     else if (this is CitacOglasa)
     {
         Radnik.Name = threadName + Common.Korisno.Korisno.IntUStrSaNulama(threadId, (int)Properties.Settings.Default.BrojCitacaOglasa);
     }
     else
     {
         Radnik.Name = threadName + threadId.ToString();
     }
 }
Exemplo n.º 2
0
        Common.Http.StranaLista procitaneStraneOglasa;  // U ovu listu ce da upisuje procitane oglase

        public CitacZaglavlja(ref Common.Http.StranaLista procitaneStraneZaglavlja, ref Common.Http.StranaLista procitaneStraneOglasa, int threadId) :
            base(ref procitaneStraneZaglavlja, threadId, typeof(CitacZaglavlja).Name)
        {
            this.procitaneStraneOglasa = procitaneStraneOglasa;
        }
Exemplo n.º 3
0
 public CitacOglasa(ref Common.Http.StranaLista procitaneStraneOglasa, int threadId) :
     base(ref procitaneStraneOglasa, threadId, typeof(CitacOglasa).Name)
 {
     autoDB = new PolAutData.AutomobilDB();
 }