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