private void navBarItemUrunEkle_LinkClicked(object sender, NavBarLinkEventArgs e) { var stokDetay = new FrmStokDetay(); if (stokDetay.ShowDialog() == DialogResult.OK) { Init(); } }
private void navBarÜrünGorntule_LinkClicked(object sender, NavBarLinkEventArgs e) { if (gridProductListView.GetFocusedRow() != null) { var viewProduct = gridProductListView.GetFocusedRow() as ModelProduct.ViewStock; var stokDetay = new FrmStokDetay(viewProduct); if (stokDetay.ShowDialog() == DialogResult.OK) { Init(); } } else { MessageBox.Show("Listeden ürün seçiniz!", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information); } }