Ejemplo n.º 1
0
        public ExamEnv()
        {
            InitUtensils();

            UtensilDictionary = new UtensilDictionary();

            WeldingTypeArray = Enum.GetValues(typeof(WeldingType));

            RandomSeed = new Random();

            UHFManager.LabelDetected += UHFManagerLabelDetected;

            SerialMessageHandler.DeviceStateChanged += DeviceStateChanged;
        }
Ejemplo n.º 2
0
 private void UHFManagerLabelDetected(IEnumerable <string> labelList)
 {
     SelectedUtensilList = (from string label in labelList select UtensilDictionary.LookUp(label)).
                           Where(utensil => utensil.HasValue).Select(utensil => utensil.Value);
 }