コード例 #1
0
        private void btnKaydet_Click(object sender, EventArgs e)
        {
            MarkaRepository rep = new MarkaRepository();

            seciliMarka.MarkaAdi = txtbxMarkaDuzenleKaydet.Text;
            if (rep.MarkaGuncelle(seciliMarka))
            {
                seciliLabel.Text = txtbxMarkaDuzenleKaydet.Text;
                MessageBox.Show("Güncellendi");
            }
            else
            {
                MessageBox.Show("Bir hata olustu");
            }
        }
コード例 #2
0
        private void btnKaydet_Click(object sender, EventArgs e)
        {
            seciliMarka.MarkaAdi = txtMarkalar.Text;

            MarkaRepository rep = new MarkaRepository();

            if (rep.MarkaGuncelle(seciliMarka))
            {
                seciliLabel.Text = txtMarkalar.Text;
                MessageBox.Show("Güncellendi");
            }
            else
            {
                MessageBox.Show("Hata oluştu");
            }
        }