public bool call() { frmEstoque frmNovoEstoque = new frmEstoque(); frmNovoEstoque.ShowDialog(); return(frmNovoEstoque.ObjEstoque != null); }
public bool call(DataGridViewRow row) { clnEstoque objEstoque = new clnEstoque { Cod = UtilConvert.ToInt(row.Cells[0].Value) }.obterPorCod(); if (objEstoque != null) { frmEstoque frmAlterarEstoque = new frmEstoque { ObjEstoque = objEstoque }; frmAlterarEstoque.ShowDialog(); return(true); } return(false); }