protected override void OnInterfaceChanged(HeliosInterface oldInterface, HeliosInterface newInterface) { PhidgetLEDBoard oldBoard = oldInterface as PhidgetLEDBoard; if (oldBoard != null) { oldBoard.Detach(); } PhidgetLEDBoard newBoard = newInterface as PhidgetLEDBoard; if (newBoard != null) { newBoard.Attach(); } GroupsViewModel = new LedGroupsViewModel(newInterface as PhidgetLEDBoard); }