void codemode(Codemode codemode) { if (deviceC != null) { deviceC.addorder(codemode); } }
void monitor(Codemode codemode) { deviceC = cc.FindDeviceC(data.DeviceID); if (deviceC == null) { Console.WriteLine("没有此设备"); return; } deviceC.adduser(this); deviceC.addorder(codemode); }