|
|
Podmiana tekstu przy pomocy "switch"
private void OnTextChanged(object sender, System.EventArgs e)
{
xrTableCell7.Font = new System.Drawing.Font(
"Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(238)));
switch (xrTableCell7.Text)
{
case "0":
xrTableCell7.Font = new System.Drawing.Font(
"Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic,
System.Drawing.GraphicsUnit.Point, ((byte)(238)));
xrTableCell7.Text = "Bufor";
break;
case "1":
xrTableCell7.Text = "Zatwierdzone";
break;
case "2":
xrTableCell7.Text = "Uruchomione";
break;
case "3":
xrTableCell7.Text = "Anulowane";
break;
case "4":
xrTableCell7.Text = "Zakończone";
break;
case "5":
xrTableCell7.Text = "Zamknięte";
break;
}
}
|
|