示例#1
0
            public bool call()
            {
                frmEstoque frmNovoEstoque = new frmEstoque();

                frmNovoEstoque.ShowDialog();
                return(frmNovoEstoque.ObjEstoque != null);
            }
示例#2
0
            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);
            }