Esempio n. 1
0
        private void frmUrunKayitListe1_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            frmUrunBilgisi frm = new frmUrunBilgisi();

            frm.Show();
        }
Esempio n. 2
0
        private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            try
            {
                DataGridViewRow dr = dataGridView1.SelectedRows[0];
                this.Hide();
                frmUrunBilgisi obj = new frmUrunBilgisi();
                obj.Show();
                obj.txtUrunID.Text  = dr.Cells[0].Value.ToString();
                obj.cmbUrunAdi.Text = dr.Cells[1].Value.ToString();
                obj.txtOzellik.Text = dr.Cells[2].Value.ToString();
                obj.txtFiyat.Text   = dr.Cells[3].Value.ToString();
                byte[]       data = (byte[])dr.Cells[4].Value;
                MemoryStream ms   = new MemoryStream(data);
                obj.pictureBox1.Image   = Image.FromStream(ms);
                obj.btnGuncelle.Enabled = true;
                obj.btnSil.Enabled      = true;
                obj.btnKaydet.Enabled   = false;
                obj.cmbUrunAdi.Focus();
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 private void btnUrunOzellikleri_Click(object sender, EventArgs e)
 {
     frmUrunBilgisi frm = new frmUrunBilgisi(); frm.Show();
 }