예제 #1
0
        private void btnStajBilgi_Click(object sender, EventArgs e)
        {
            Staj_Bilgisi sb = new Staj_Bilgisi();

            sb.SirketAdi  = txtSirket.Text;;
            sb.StajTarihi = dateTimePicker4.Value;
            sb.Departman  = txtDepartman.Text;
            z.StajYerleri.AddFirst(sb);
            txtSirket.Clear();
            txtDepartman.Clear();
        }
        public void BolumEkle(Bolum_Bilgi b)
        {
            Staj_Bilgisi s    = new Staj_Bilgisi();
            int          hash = b.BolumNo % size;
            //table[hash].HDeger = new Heap(100);
            LinkedListHashEnty ll = new LinkedListHashEnty(b.BolumNo, new Heap(100), s);

            if (table[hash] == null)
            {
                table[hash] = ll;
            }
            else
            {
                while (table[hash] != null)
                {
                    table[hash] = table[hash].Next;
                }
                table[hash] = ll;
            }
        }