You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
667 B
C#
20 lines
667 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace TRI___Character_Sheets
|
|
{
|
|
partial class Main
|
|
{
|
|
private void BerechneVerbleibendeNebelpunkte(object sender, EventArgs e)
|
|
{
|
|
int iVerbleibendePunkte = 10 - (int)nUDSuni.Value - (int)nUDSihir.Value - (int)nUDSans.Value;
|
|
lVerbleibendeNebelpunkte.ForeColor = (iVerbleibendePunkte < 0) ? Color.Red : Color.Black;
|
|
lVerbleibendeNebelpunkte.Text = "Verbleibende Punkte: " + iVerbleibendePunkte.ToString();
|
|
}
|
|
}
|
|
} |