コード例 #1
0
        public void btnGuncelleIlac_Click(object sender, EventArgs e)

        {
            try{
                dataGridView1.DataSource = ilac.Getir();
                IlacBilgileri GnclFrm = new IlacBilgileri();

                GnclFrm.Show();

                GnclFrm.ilacLbl.Text           = dataGridView1.CurrentRow.Cells[0].Value.ToString();
                GnclFrm.ilacAdTxt.Text         = dataGridView1.CurrentRow.Cells[1].Value.ToString();
                GnclFrm.receteCesit.Text       = dataGridView1.CurrentRow.Cells[2].Value.ToString();
                GnclFrm.receteTxt.Text         = dataGridView1.CurrentRow.Cells[3].Value.ToString();
                GnclFrm.ilacKategoriCombo.Text = dataGridView1.CurrentRow.Cells[4].Value.ToString();
                GnclFrm.ilacMarkaTxt.Text      = dataGridView1.CurrentRow.Cells[5].Value.ToString();
                GnclFrm.destekTxt.Text         = dataGridView1.CurrentRow.Cells[6].Value.ToString();
                GnclFrm.fiyatTxt.Text          = dataGridView1.CurrentRow.Cells[7].Value.ToString();
                GnclFrm.indirimliFiyatTxt.Text = dataGridView1.CurrentRow.Cells[8].Value.ToString();
                GnclFrm.stokTxt.Text           = dataGridView1.CurrentRow.Cells[9].Value.ToString();
                GnclFrm.gramTxt.Text           = dataGridView1.CurrentRow.Cells[10].Value.ToString();


                this.Hide();
                //ilac.ilacSil(ilac);
                dataGridView1.DataSource = ilac.Getir();
            }
            catch (Exception _hata)
            {
                MessageBox.Show("Hata!" + _hata);
            }
        }
コード例 #2
0
        public void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            IlacBilgileri GnclFrm = new IlacBilgileri();

            GnclFrm.ilacLbl.Text           = dataGridView1.CurrentRow.Cells[0].Value.ToString();
            GnclFrm.ilacAdTxt.Text         = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            GnclFrm.receteCesit.Text       = dataGridView1.CurrentRow.Cells[2].Value.ToString();
            GnclFrm.receteTxt.Text         = dataGridView1.CurrentRow.Cells[3].Value.ToString();
            GnclFrm.ilacKategoriCombo.Text = dataGridView1.CurrentRow.Cells[4].Value.ToString();
            GnclFrm.ilacMarkaTxt.Text      = dataGridView1.CurrentRow.Cells[5].Value.ToString();
            GnclFrm.destekTxt.Text         = dataGridView1.CurrentRow.Cells[6].Value.ToString();
            GnclFrm.fiyatTxt.Text          = dataGridView1.CurrentRow.Cells[7].Value.ToString();
            GnclFrm.indirimliFiyatTxt.Text = dataGridView1.CurrentRow.Cells[8].Value.ToString();
            GnclFrm.stokTxt.Text           = dataGridView1.CurrentRow.Cells[9].Value.ToString();
            GnclFrm.gramTxt.Text           = dataGridView1.CurrentRow.Cells[10].Value.ToString();
            GnclFrm.Show();
            ;
        }
コード例 #3
0
        private void btnEkle_Click(object sender, EventArgs e)
        {
            IlacBilgileri ilacBilgileriForm = new IlacBilgileri();

            ilacBilgileriForm.Show();
        }