public InRoom_Piano() { this.InitializeComponent(); first = new HandsRecognition(0); playwave = new Playwave(); first.RHandMove += first_RHandMove; first.LHandMove += first_LHandMove; first.HandClick += first_HandClick; }
public static void cplay(object t) { List<int> temp = t as List<int>; Playwave p = new Playwave(); for (int i = 0; i < temp.Count; i += 2) { p.play(temp[i]); Thread.Sleep(temp[i + 1]); } }
public InRoom() { this.InitializeComponent(); first = new HandsRecognition(1); playwave = new Playwave(); first.HandClick += first_HandClick; first.RHandMove += first_RHandMove; first.LHandMove += first_LHandMove; // 在此点之下插入创建对象所需的代码。 }