internal void PrintText(Selection selection)
        {
            String Text = null;

            if ((SchadeloosStelling == 0) && (Gerechtskosten != 0))
            {
                Text = "Mag ik u vragen om de gerechtskosten ter waarde van " +
                       Gerechtskosten.ToString("C", Variabelen.Cultuur) +
                       " te betalen.";
            }
            else if (Gerechtskosten != 0)
            {
                Text = "Mag ik u vragen een bedrag van " + Totaal.ToString("C", Variabelen.Cultuur) +
                       " te betalen." + Environment.NewLine +
                       "Dit bedrag is als volgt samengesteld: Schadeloosstelling " +
                       SchadeloosStelling.ToString("C", Variabelen.Cultuur) + " en gerechtskosten " +
                       Gerechtskosten.ToString("C", Variabelen.Cultuur);
            }
            else
            {
                Text = "Mag ik u vragen om een schadeloosstelling ter waarde van " +
                       SchadeloosStelling.ToString("C", Variabelen.Cultuur) +
                       " te betalen.";
            }

            Text += Environment.NewLine + "U kunt dit bedrag overmaken op rekeningnummer BE96 0012 4751 7505 met als mededeling: " +
                    OGMNummer + ".";

            selection.TypeText(Text);
        }
Example #2
0
 private void DerdenGeldenForm_Validated(object sender, EventArgs e)
 {
     Totaal = Gerechtskosten + SchadeloosStelling;
     SchadeloosStellingBedrag.Text = SchadeloosStelling.ToString("C", Culture);
     GerechtskostenBedrag.Text     = Gerechtskosten.ToString("C", Culture);
     TotaalBedrag.Text             = (Gerechtskosten + SchadeloosStelling).ToString("C");
 }
Example #3
0
 private void EreloonBedrag_Validating(object sender, CancelEventArgs e)
 {
     if ((SchadeloosStellingBedrag.Text.Length != 0) &&
         (!Double.TryParse(SchadeloosStellingBedrag.Text, Style, Culture, out SchadeloosStelling)))
     {
         MessageBox.Show("Waarde in veld is geen getal of bedrag.", "Foutieve Waarde", MessageBoxButtons.OK, MessageBoxIcon.Error);
         SchadeloosStellingBedrag.Text = SchadeloosStelling.ToString("C", Culture);
     }
 }