public AnalysisCreationWizard(Form creator, Court court, List<Camera> cameraList, Ball ball, int panel) { this.creator = creator; this.court = court; this.cameraList = cameraList; this.ball = ball; this.currentStep = panel; InitializeComponent(); }
private void nextBtn_Click(object sender, EventArgs e) { // Store court properties if (currentStep == 2) { court = new Court(court_width.Value, court_height.Value); } if (currentStep == totalPanels) { Finish(); } else { DisplayPanel(++currentStep); } }
private void nextBtn_Click(object sender, EventArgs e) { // Store court properties if (currentStep == 2) { court = new Court(); ball = new Ball(); court.Width = court_width.Value; court.Height = court_height.Value; ball.Diameter = (int)ball_size.Value; } if (currentStep == totalPanels) { Finish(); } else { DisplayPanel(++currentStep); } }