Skip to content

RobotStartDialog constructor

constructor · RobotStartDialog · cAlgo.API Since 5.1

DesktopCLICloud

Creates an RobotStartDialog.

Environment behaviour

CLI — not supported. No dialog can be shown in the CLI: ShowDialog returns without showing anything.

Cloud — not supported. No dialog can be shown in the cloud: ShowDialog returns without showing anything.

Definition

public RobotStartDialog(RobotType robotType)
RobotStartDialog(robotType: RobotType)

Parameters

Name C# type Python type Description
robotType RobotType RobotType

Examples

if (AlgoRegistry.Get("Sample Breakout", AlgoKind.Robot) is RobotType robotType)
{
    var robotStartDialog = new RobotStartDialog(robotType);
    robotStartDialog.ShowDialog();
}
algoType = api.AlgoRegistry.Get("Sample Breakout", AlgoKind.Robot)
if algoType is not None:
    robotStartDialog = RobotStartDialog(RobotType(algoType))
    robotStartDialog.ShowDialog()