private void btnKaydiAc_Click(object sender, EventArgs e)
        {
            if (gvStokListesi.FocusedRowHandle < 0 && layoutView1.FocusedRowHandle < 0)
            {
                return;
            }


            int StokID = -1;

            if (gcStokListesi.MainView == layoutView1)
            {
                StokID = (int)layoutView1.GetFocusedRowCellValue("StokID");
            }
            else
            {
                StokID = Convert.ToInt32(gvStokListesi.GetFocusedRowCellValue("StokID"));
            }

            if (this.Text == "Stok Listesi" && StokID != -1)
            {
                frmStokDetay StokKarti = new frmStokDetay(StokID);
                StokKarti.MdiParent = this.MdiParent;
                StokKarti.Show();
            }
        }
Exemplo n.º 2
0
        private void btnKartiAc_Click(object sender, EventArgs e)
        {
            frmStokDetay frm = new frmStokDetay(Convert.ToInt32(gvSayim.GetFocusedRowCellValue(colStokID)));

            frm.MdiParent = this.MdiParent;
            frm.Show();
        }
Exemplo n.º 3
0
 private void simpleButton2_Click(object sender, EventArgs e)
 {
     if (gridView1.GetFocusedRowCellValue(colStokID) == null)
     {
         return;
     }
     Stok.frmStokDetay frm = new frmStokDetay((int)gridView1.GetFocusedRowCellValue(colStokID));
     frm.MdiParent = this.MdiParent;
     frm.Show();
 }
        private void btnStokAc_Click(object sender, EventArgs e)
        {
            if (gridView1.RowCount == 0)
            {
                return;
            }

            Stok.frmStokDetay frm = new frmStokDetay(Convert.ToInt32(gridView1.GetFocusedRowCellValue(colStokID)));
            frm.MdiParent = this.MdiParent;
            frm.Show();
        }