protected override List <IChildItem> OnCreateChildList() { List <ProgramInformation> programs = ProgramManager.GetProgramInformationList(); var childList = new List <IChildItem> (); foreach (var program in programs) { childList.Add(new ProgramItem(program, useEscToStop)); } return(childList); }
private void Update(bool useDummy) { if (useDummy) { programs = new System.Collections.Generic.List <IProgramModel> (); programs.Add(new DummyProgramModel("Gyro Test")); programs.Add(new DummyProgramModel("Motor Test")); programs.Add(new DummyProgramModel("HT compass")); programs.Add(new DummyProgramModel("Rubiks Cube Solver")); } else { var programInfoList = ProgramManager.GetProgramInformationList(); programs = new System.Collections.Generic.List <IProgramModel> (); foreach (var program in programInfoList) { programs.Add(new ProgramModel(program)); } } }