Пример #1
0
        private void AddNumberToPin(string pinNum)
        {
            var pinNumEl = PinNumbers.Select((number, index) => new { number, index }).FirstOrDefault(x => x.number == null);

            if (pinNumEl != null)
            {
                PinNumbers[pinNumEl.index] = pinNum;
                if (pinNumEl.index == 3)
                {
                    _navigationService.Push(new NavigationView(new SourceListPage(), true));
                }
            }
            else
            {
                // check pin
                _navigationService.Push(new NavigationView(new SourceListPage(), true));
            }
        }
Пример #2
0
 public void SetPins(PinNumbers pins)
 {
     MainV2.comPort.setParam("BATT_VOLT_PIN", pins.volpin);
     MainV2.comPort.setParam("BATT_CURR_PIN", pins.curpin);
 }
Пример #3
0
 public void SetPins(PinNumbers pins)
 {
     MainV2.comPort.setParam("BATT_VOLT_PIN", pins.volpin);
     MainV2.comPort.setParam("BATT_CURR_PIN", pins.curpin);
 }