コード例 #1
0
 private Action <T> WrapAction <T>(SlaveEventType type, Action <T> action) => input =>
 {
     action(input);
     Slave.SlaveEvents.PostEvent(new SlaveEvent(type, Slave, this));
 };
コード例 #2
0
ファイル: SlaveWindow.cs プロジェクト: 5l1v3r1/BlackHole-1
 /// <summary>
 ///
 /// </summary>
 /// <param name="type"></param>
 /// <param name="data"></param>
 protected void FireSlaveEvent(SlaveEventType type, object data) =>
 Slave.SlaveEvents.PostEvent(new SlaveEvent(type, Slave, data));
コード例 #3
0
 private Action WrapAction(SlaveEventType type, Action action) => () =>
 {
     action();
     Slave.SlaveEvents.PostEvent(new SlaveEvent(type, Slave, this));
 };
コード例 #4
0
ファイル: Slave.cs プロジェクト: zaza1p7/WinProject
 public SlaveEvent(SlaveEventType eventType, Slave slave, object data = null)
     : base((int)eventType, slave, data)
 {
 }