Exemplo n.º 1
0
 private void Battery_PercentChanged(object sender, Tizen.System.BatteryPercentChangedEventArgs e)
 {
     if (plockind)
     {
         textb.Text = Tizen.System.Battery.Percent.ToString() + "L";
     }
     else
     {
         textb.Text = Tizen.System.Battery.Percent.ToString();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Handle TizenBatteryPercentChagedEvent by letting others know they need to check the levels again.
 /// </summary>
 /// <param name="sender"> Sender </param>
 /// <param name="args"> Arguments </param>
 private void OnPercentChanged(object sender, Tizen.System.BatteryPercentChangedEventArgs args)
 {
     // If this happens - two properties could have changed
     OnPropertyChanged(nameof(BatteryLevel));
     OnPropertyChanged(nameof(BatteryLevelStatus));
 }