RobotStartDialog.ShowDialog
method · RobotStartDialog · cAlgo.API Since 5.1
DesktopCLICloud
Shows the dialog.
Environment behaviour
CLI — not supported. No dialog is shown. Returns normally, no exception.
Cloud — not supported. No dialog is shown. Returns normally, no exception.
Definition
public void ShowDialog()
robotStartDialog.ShowDialog() -> None
Examples
var startButton = new Button { Text = "Start Sample Breakout" };
startButton.Click += args =>
{
if (AlgoRegistry.Get("Sample Breakout", AlgoKind.Robot) is RobotType robotType)
new RobotStartDialog(robotType).ShowDialog();
};
Chart.AddControl(startButton);
algoType = api.AlgoRegistry.Get("Sample Breakout", AlgoKind.Robot)
if algoType is not None:
RobotStartDialog(RobotType(algoType)).ShowDialog()