Exemplo n.º 1
0
        private void kitapKayit_Load(object sender, EventArgs e)
        {
            ToolTip Aciklama = new ToolTip();

            Aciklama.ToolTipTitle = "Temizle";
            Aciklama.ToolTipIcon  = ToolTipIcon.Info;
            Aciklama.IsBalloon    = true;
            Aciklama.SetToolTip(btnyenikayit, "Yeni Kayıt");

            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            DateTime mydate = System.DateTime.Now;
            string   year   = mydate.Year.ToString();

            for (int i = 1990; i <= mydate.Year; i++)
            {
                cmbBaski.Items.Add(i);
            }

            random();
            listele();
            cmbBaski.SelectedIndex = 0;
            Isimler name = new Isimler();

            dataGridView1.Columns[0].HeaderText = name.kitapId;
            dataGridView1.Columns[1].HeaderText = name.kitapAdi;
            dataGridView1.Columns[2].HeaderText = name.yazar;
            dataGridView1.Columns[3].HeaderText = name.baski;
            dataGridView1.Columns[4].HeaderText = name.sayfa;
            dataGridView1.Columns[5].HeaderText = name.yayin;
            dataGridView1.Columns[6].HeaderText = name.not;
            dataGridView1.Columns[6].Width      = 300;
        }
Exemplo n.º 2
0
        private void KitapSil_Load(object sender, EventArgs e)
        {
            Isimler name = new Isimler();

            listele();
            dataGridView1.Columns[0].HeaderText = name.kitapId;
            dataGridView1.Columns[1].HeaderText = name.kitapAdi;
            dataGridView1.Columns[2].HeaderText = name.yazar;
            dataGridView1.Columns[3].HeaderText = name.baski;
            dataGridView1.Columns[4].HeaderText = name.sayfa;
            dataGridView1.Columns[5].HeaderText = name.yayin;
            dataGridView1.Columns[6].HeaderText = name.not;
        }