PlantIndex(this, ~,~)
            this.DataSourcePlot.handleSelectedPlantIndexEvent();
            this.selectedNewPlant = true;
            this.build();
            this.DataSourcePlot.update(true, true); % update controller data
            this.DataSourcePlot.QuickRefreshMode = false;
        end
        function callbackPlants(this, ~,evnt)
            this.DataSourcePlot.handlePlantsEvent(evnt);
            this.addingNewPlant = true;
        end
        function callbackSampleTime(this, ~,~)
            this.DataSourcePlot.updatePlantsInfo();
            this.selectedNewPlant = false;
            this.addingNewPlant = false;
            this.build();
        end
    end
end

function cbPIDBlockDataChanged(this)
this.PlantList.SampleTime = this.SLGateway.PIDBlockData.CompiledSampleTime;
this.ControllerList.BaselineController = this.SLGateway.PIDBlockController;
this.ControllerList.DesiredForm = this.SLGateway.PIDBlockData.Form;
this.ControllerList.DesiredType = this.SLGateway.PIDBlockData.Controller;
this.ControllerList.BaselineBC = [this.SLGateway.PIDBlockData.b this.SLGateway.PIDBlockData.c];
end

function cbDesiredControllerChanged(this)
this.setPIDTuningData();
this.fastDesign();
end
