private void frmStokKayitListe1_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            frmStok frm = new frmStok();

            frm.label8.Text = label1.Text;
            frm.Show();
        }
      private void btnStok_Click(object sender, EventArgs e)
      {
          this.Hide();
          frmStok frm = new frmStok();

          frm.label8.Text = Kullanici.Text;
          frm.Show();
      }
        private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            try
            { DataGridViewRow dr = dataGridView1.SelectedRows[0];
              this.Hide();
              frmStok frm = new frmStok();
              frm.Show();
              frm.txtUrunID.Text     = dr.Cells[0].Value.ToString();
              frm.txtUrunAd.Text     = dr.Cells[1].Value.ToString();
              frm.txtOzellikler.Text = dr.Cells[2].Value.ToString();
              frm.txtFiyat.Text      = dr.Cells[3].Value.ToString();
              frm.label8.Text        = label1.Text;
              frm.txtAdet.Focus(); }

            catch (Exception ex)
            { MessageBox.Show(ex.Message, "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error); }
        }
        private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            try
            { DataGridViewRow dr = dataGridView1.SelectedRows[0];
              this.Hide();
              frmStok frm = new frmStok();
              frm.Show();
              frm.txtStokID.Text      = dr.Cells[0].Value.ToString();
              frm.txtUrunID.Text      = dr.Cells[1].Value.ToString();
              frm.txtUrunAd.Text      = dr.Cells[2].Value.ToString();
              frm.txtOzellikler.Text  = dr.Cells[3].Value.ToString();
              frm.txtFiyat.Text       = dr.Cells[4].Value.ToString();
              frm.txtAdet.Text        = dr.Cells[5].Value.ToString();
              frm.txtToplamFiyat.Text = dr.Cells[6].Value.ToString();
              frm.dtpStokTarih.Text   = dr.Cells[7].Value.ToString();
              frm.btnGuncelle.Enabled = true;
              frm.btnSil.Enabled      = true;
              frm.btnKaydet.Enabled   = false;
              frm.label8.Text         = label1.Text; }

            catch (Exception ex)
            { MessageBox.Show(ex.Message, "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error); }
        }