public void EmitTestEvent(string msg) { OnTestEvent?.Invoke(this, new Ps2EventArgs <string>(msg)); }
public void InvokeTestEvent() { OnTestEvent?.Invoke(); }
private void button1_Click(object sender, EventArgs e) { Console.WriteLine("{0} Button clicked", DateTime.Now); OnTestEvent?.Invoke(); }