コード例 #1
0
ファイル: Item.cs プロジェクト: Mortion/Uses
 public Item(String description, decimal price, int amount, BTW btw)
 {
     this.Description = description;
     this.Price = price;
     this.Amount = amount;
     this.btw = btw;
 }
コード例 #2
0
ファイル: Timer.cs プロジェクト: repelex/Droid-Soccer
    void Update()
    {
        timer   -= Time.deltaTime;
        minutes  = (int)timer / 60;
        seconds  = (int)timer % 60;
        txt.text = minutes.ToString() + ":" + seconds.ToString("00");
        if (timer <= 0)
        {
            timer = 0;
            if ((int)PhotonNetwork.masterClient.customProperties["RedScore"] > (int)PhotonNetwork.masterClient.customProperties["BlueScore"])
            {
                RTW.SetActive(true);
            }
            else
            if ((int)PhotonNetwork.masterClient.customProperties["BlueScore"] > (int)PhotonNetwork.masterClient.customProperties["RedScore"])
            {
                BTW.SetActive(true);
            }
            else
            {
                TG.SetActive(true);
            }

            afterGoalTimer();
        }
    }
コード例 #3
0
        internal void PrintText(Selection selection)
        {
            String Text = null;

            if ((Ereloon == 0) && (Gerechtskosten != 0))
            {
                Text = "Mag ik u vragen om in dit dossier een provisie van " +
                       Gerechtskosten.ToString("C", Variabelen.Cultuur) +
                       " te betalen. Dit om mij toe te laten de gerechtsdeurwaarder te betalen.";
            }

            else if (Gerechtskosten != 0)
            {
                Text = "Mag ik u vragen om in dit dossier een globale provisie te betalen van " +
                       Totaal.ToString("C", Variabelen.Cultuur) + "." +
                       Environment.NewLine + "Dit bedrag is als volgt samengesteld: Provisie erelonen en bureelkosten " +
                       Ereloon.ToString("C", Variabelen.Cultuur);
                if (!InterCompany)
                {
                    Text += "vermeerderd met 21% btw of" + BTW.ToString("C", Variabelen.Cultuur);
                }

                Text += "en een provisie voor de gerechtskosten van " +
                        Gerechtskosten.ToString("C", Variabelen.Cultuur) + ".";
            }

            else
            {
                Text = "Mag ik u vragen om in dit dossier een globale provisie te betalen van " +
                       Totaal.ToString("C", Variabelen.Cultuur) +
                       "samengesteld als volgt " + Ereloon.ToString("C", Variabelen.Cultuur) +
                       " aan erelonen en bureelkosten";
                if (!InterCompany)
                {
                    Text += " en" + BTW.ToString("C", Variabelen.Cultuur) + " aan BTW";
                }
                Text += ".";
            }

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

            selection.TypeText(Text);
        }
コード例 #4
0
 private void ProvisieNotaForm_Validated(object sender, EventArgs e)
 {
     if (IC)
     {
         BTW = 0;
     }
     else
     {
         BTW = Ereloon * 0.21;
     }
     EreloonBedrag.Text        = Ereloon.ToString("C", Culture);
     BTWBedrag.Text            = BTW.ToString("C", Culture);
     BTWTotaal.Text            = BTWBedrag.Text;
     EreloonTotaal.Text        = (BTW + Ereloon).ToString("C", Culture);
     GerechtskostenBedrag.Text = Gerechtskosten.ToString("C", Culture);
     GerechtskostenTotaal.Text = GerechtskostenBedrag.Text;
     BedragTotaal.Text         = (Gerechtskosten + Ereloon).ToString("C");
     Totaal            = Gerechtskosten + BTW + Ereloon;
     TotaalBedrag.Text = (Totaal.ToString("C"));
 }