示例#1
0
        public void Duzenle()
        {
            FirmaEkle fe = new FirmaEkle();

            int index = fe.cbYemekFiyat.FindString(this.dataGridView1.CurrentRow.Cells[10].Value.ToString().Trim());

            fe.lblid.Text                 = this.dataGridView1.CurrentRow.Cells[0].Value.ToString().Trim();
            fe.txtFirmaAd.Text            = this.dataGridView1.CurrentRow.Cells[1].Value.ToString().Trim();
            fe.txtYetkili.Text            = this.dataGridView1.CurrentRow.Cells[2].Value.ToString().Trim();
            fe.txtAdres.Text              = this.dataGridView1.CurrentRow.Cells[3].Value.ToString().Trim();
            fe.txtTel1.Text               = this.dataGridView1.CurrentRow.Cells[4].Value.ToString().Trim();
            fe.txtTel2.Text               = this.dataGridView1.CurrentRow.Cells[5].Value.ToString().Trim();
            fe.txtGsm.Text                = this.dataGridView1.CurrentRow.Cells[6].Value.ToString().Trim();
            fe.txtMail.Text               = this.dataGridView1.CurrentRow.Cells[7].Value.ToString().Trim();
            fe.txtVergiDairesi.Text       = this.dataGridView1.CurrentRow.Cells[8].Value.ToString().Trim();
            fe.txtVergiNo.Text            = this.dataGridView1.CurrentRow.Cells[9].Value.ToString().Trim();
            fe.cbYemekFiyat.SelectedIndex = index;
            fe.txtAciklama.Text           = this.dataGridView1.CurrentRow.Cells[11].Value.ToString().Trim();

            fe.lblGuncelle.Text = "guncelle";
            //fe.lblOncekiBorcu.Visible = false;
            //fe.txtOncekiBorcu.Visible = false;

            fe.Show();
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            FirmaEkle frmEkle = new FirmaEkle();

            frmEkle.Show();
        }