Пример #1
0
        private void OnReceivedPowerChanged(object?sender, ReceivedPowerChangedEventArgs e)
        {
            if (!_isOn)
            {
                return;
            }

            if (e.ReceivedPower < e.DrawRate)
            {
                PowerOff();
            }
            else
            {
                PowerOn();
            }
        }
 private void PowerReceivedChanged(object?sender, ReceivedPowerChangedEventArgs e)
 {
     Master?.PowerBoxReceivedChanged(sender, e);
 }