Esempio n. 1
0
        public int CompareTo(EventingKortingItem other)
        {
            return(Aantal.CompareTo(other.Aantal));

            //returneert 1 of 0 dus volgende kan ook:
            //return Aantal - other.Aantal;
        }
Esempio n. 2
0
        public Dosering(string code)
        {
            if (code[0] == ';')
            {
                ExtraText = RemoveSubstring(code, ";");
                return;
            }

            var codearr = code.Split(';');

            var dosering = codearr[0];

            var firstChar = dosering[0];

            if (firstChar == ' ')
            {
                Info = GetInfo(dosering);
                return;
            }

            Frequentie = firstChar != '-' ? GetCharactersUntilLetter(dosering) : "-";
            dosering   = RemoveSubstring(dosering, Frequentie.ToString());

            Tijdseenheid = GetCharactersUntilDigit(dosering);
            dosering     = RemoveSubstring(dosering, Tijdseenheid);

            Aantal   = dosering != "" ? dosering[0] != ' ' ? GetCharactersUntilLetter(dosering) : " " : "";
            dosering = dosering.TrimStart(Aantal.ToString().ToCharArray());

            Advieseenheid = GetCharactersUntilDigit(dosering);
            dosering      = dosering.TrimStart(Advieseenheid.ToString().ToCharArray());

            Info = dosering != "" ? dosering.Trim().Split(' ') : null;

            ExtraText = codearr.Length > 1 ? codearr[1] : "";
        }
Esempio n. 3
0
 //Methodes
 public override string ToString()
 {
     return(Aantal.ToString() + ", " + Bedrag.ToString() + ", " + Tijdstip.ToString() + ", " + BTWTarief.ToString() + ", " + Prijs.ToString());
 }
Esempio n. 4
0
 public override string ToString()
 {
     return("--" + Dranknaam + "--\nprijs: " + Prijs.ToString() + "\naantal: " + Aantal.ToString());
 }