Exemple #1
0
        public bool SetPowerState(PowerState state, bool isForce = false)
        {
            if (this.ConnectionStatus != ConnectionStatus.Connected)
            {
                return(false);
            }

            PS3TMAPI.SNRESULT result = PS3TMAPI.SNRESULT.SN_E_COMMS_ERR;
            switch (state)
            {
            case PowerState.Off:
                result = PS3TMAPI.PowerOff(this.TargetIndex, isForce);
                break;

            case PowerState.On:
                result = PS3TMAPI.PowerOn(this.TargetIndex);
                break;
            }

            return(PS3TMAPI.SUCCEEDED(result));
        }
Exemple #2
0
 /// <summary>Power off selected target.</summary>
 public void PowerOff(bool Force)
 {
     PS3TMAPI.PowerOff(Target, Force);
 }
Exemple #3
0
 public void Shutdown(bool Force)
 {
     PS3TMAPI.PowerOff(Target, Force);
 }
Exemple #4
0
 public static void TurnOff()
 {
     PS3TMAPI.PowerOff(0, true);
 }
Exemple #5
0
 public void PowerOff(bool Force)
 {
     PS3TMAPI.PowerOff(0, false);
 }
Exemple #6
0
 /// <summary>
 /// Shuts down the PS3, write true in the parameter if you want to force the PS3 to shutdown, if not, write 'false'.
 /// </summary>
 /// <param name="Force_PS3_To_Shutdown"></param>
 public static void PowerOffTarget(bool Force_PS3_To_Shutdown)
 {
     PS3TMAPI.PowerOff(0, Force_PS3_To_Shutdown);
 }