示例#1
0
        private void btnYeniKategori_Click(object sender, EventArgs e)
        {
            frmKategoriEkle frm = new frmKategoriEkle();

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog();
            cbKategoriler.SelectedIndex = cbKategoriler.Items.Count - 1;
        }
示例#2
0
        private void btnYeniKategori_Click(object sender, EventArgs e)
        {
            //KAtegoriAdi listede yoksa
            frmKategoriEkle frm = new frmKategoriEkle();

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog();
            cbKategoriAdi.DataSource    = kr.KategoriListele();
            cbKategoriAdi.SelectedIndex = cbKategoriAdi.Items.Count - 1;
        }
        private void btnEkle_Click(object sender, EventArgs e)
        {
            btnGuncelle.Enabled = false;
            btnSil.Enabled      = false;
            btnVazgec.Visible   = false;
            frmKategoriEkle frm = new frmKategoriEkle();

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog();
            DgvDoldurDuzenle();
            txtArama.Focus();
            this.AcceptButton = btnYeni;
        }