Beispiel #1
0
        public ControllerStatistica GetControllerStatistica(int X, int Y)
        {
            int controllerId = controllerRepository.GetContollerIdByPosition(X, Y);
            List <ControllerHistory> histories            = controllerRepository.GetControllerHistory(controllerId);
            ControllerStatistica     controllerStatistica = new ControllerStatistica(histories);

            return(controllerStatistica);
        }
        public StatisticaDetail(int X, int Y)
        {
            InitializeComponent();
            statistica    = MainWindow.channel.GetControllerStatistica(X, Y);
            historyPlants = MainWindow.channel.GetPlantsHistoryByPosition(X, Y);

            SetGridsVariable();
            SetChartsVariable();
        }