AccountSwitchedEventArgs.PreviousAccountNumber
property · AccountSwitchedEventArgs · cAlgo.API
DesktopCLICloud
Returns previous account number.
Definition
public int PreviousAccountNumber {get;}
accountSwitchedEventArgs.PreviousAccountNumber: int
Returns int
Examples
protected override void OnStart()
{
Account.Switched += OnAccountSwitched;
}
private void OnAccountSwitched(AccountSwitchedEventArgs args)
{
Print("Previous account number: {0}", args.PreviousAccountNumber);
}
def on_start(self):
api.Account.Switched += self.on_account_switched
def on_account_switched(self, args):
api.Print(f"Previous account number: {args.PreviousAccountNumber}")