コード例 #1
0
 private void InitializePowerSupplyControl()
 {
     initialBrush = BatteryCharge.Fill;
     maxWidth     = BatteryCharge.Width;
     powerSupply.StatusChanged += PowerSupply_StatusChanged;
     UpdateStatus(powerSupply.GetStatus());
 }
コード例 #2
0
 private void InitializePowerSupplyControl()
 {
     initialBrush = BatteryCharge.Fill;
     maxWidth     = BatteryCharge.Width;
     powerSupply.StatusChanged         += PowerSupply_StatusChanged;
     Popup.CustomPopupPlacementCallback = new CustomPopupPlacementCallback(Popup_PlacementCallback);
     UpdateStatus(powerSupply.GetStatus());
 }