public void Initialize(object netctl) { this.netctl = (NetworkController)netctl; InitWatch(); }
public ConnectedDevice(string name, BluetoothDevice device, DataWriter writer, DataReader reader, NetworkController netctl) { messages = new LinkedList <Message>(); this.name = name; this.device = device; this.writer = writer; this.reader = reader; this.netctl = netctl; ReceiveLoop(); }