public decimal WartoscWypo(DateTime Start, DateTime Stop) { try { wypWypozyczTableAdapter wypo = new wypWypozyczTableAdapter(); decimal wynik; Decimal.TryParse(wypo.WypoSum(Start.Date, Stop.Date).ToString(), out wynik); return(wynik); } catch { return(0); } }
public Wypo() { wypozycz = new wypWypozyczTableAdapter(); wypodni = new wypWypoDniTableAdapter(); }