public static void Foul(ClsCommand rb) { string Mannschaft = "A"; if (rb.Value1 == "S19") { Mannschaft = "B"; } int Add = 1; if (rb.Value2 == "-") { Add = -1; } int spielerID = 0; try { spielerID = Convert.ToInt32(rb.Value3); } catch { spielerID = 0; } ClsKontrolfunktionen.Foul_change(ClsGlobal.Instance.AktivesSpiel, Mannschaft, Add, spielerID); }
public static void Tor(ClsCommand rb) { string Mannschaft = "A"; if (rb.Value1 == "S06") { Mannschaft = "B"; } int Add = 1; if (rb.Value2 == "-") { Add = -1; } int spielerID = 0; try { spielerID = Convert.ToInt32(rb.Value3); } catch { spielerID = 0; } ClsKontrolfunktionen.Tore_change(spiel: ClsGlobal.Instance.AktivesSpiel, aoderb: Mannschaft, add: Add, spielerID); }
public static void Foul_Reset(ClsCommand rb) { ClsKontrolfunktionen.Foul_Reset(spiel: ClsGlobal.Instance.AktivesSpiel); }