private void PlayAudio(object sender, ClsStringEventArgs e) { MethodInvoker methodInvokerDelegate = delegate() { string no = e.Argument; if (no != "0") { string ton = Core.DBControler.ClsOptionsControler.Options3("Ton" + no).Value; ClsSoundplayer.Instance.TPlay(ton + "|" + no); } else { for (int i = 1; i < 21; i += 1) { ClsSoundplayer.Instance.Close(i.ToString()); // Web ClsServer.Instance.SendMessage(Interpreter.ClsVarCom.AllAudioStopString()); } } }; if (this.InvokeRequired) { this.Invoke(methodInvokerDelegate); } else { methodInvokerDelegate(); } }
//// event start------------------------- private static void EventAusloesen(object o, ClsStringEventArgs e) { if (Zeitereignis != null) { Zeitereignis(o, e); } }
//public event EventHandler<ClsStringEventArgs> Spielwechsel; //// event Spielwechsel stop------------------------------- //// event NextSpielwechsel start------------------------- private void NextSpielwechselEventAusloesen(object o, ClsStringEventArgs e) { //this.NextSpielwechsel?.Invoke(o, e); }
public static void SendMessage(Object sender, ClsStringEventArgs args) { Server.ClsServer.Instance.SendMessage(args.Argument); MessageSend?.Invoke(sender, args); }
public static void Fire_ClientClosed(Object sender, ClsStringEventArgs args) { ClientClosed?.Invoke(sender, args); }
public static void Fire_NewClient(Object sender, ClsStringEventArgs args) { NewClient?.Invoke(sender, args); }
public static void Fire_GotMessage(Object sender, ClsStringEventArgs args) { GotMessage?.Invoke(sender, args); }