protected bool RemoveStock(Expedient expediente, Stock stock) { if (((stock.OidAlbaran != 0) || (stock.Inicial)) && stock.ETipoStock != ETipoStock.Consumo && stock.ETipoStock != ETipoStock.MovimientoSalida && stock.ETipoStock != ETipoStock.Merma) { PgMng.ShowInfoException(Resources.Messages.STOCK_FACTURADO); return(false); } if (ProgressInfoMng.ShowQuestion(Face.Resources.Messages.DELETE_CONFIRM) == DialogResult.Yes) { expediente.RemoveStock(stock); return(true); } return(false); }