Esempio n. 1
0
        private void HistoricalGraphs_Checked(object sender, RoutedEventArgs e)
        {
            viewableArea.RowDefinitions.Clear();
            viewableArea.ColumnDefinitions.Clear();
            viewableArea.Children.Clear();

            string[] procedureArray =
            {
                "SensorData_StackGetPhysicalGasValuesByDate",
                "SensorData_StackGetVirtualTempValuesByDate",
                "SensorData_StackGetVirtualParticulateValuesByDate",
                "SensorData_StackGetVirtualAirFlowValuesByDate"
            };
            string[] labelArray =
            {
                "Gas (P)",
                "Temperature (V)",
                "Particulate (V)",
                "Air Flow (V)"
            };

            SelectDates graphs = new SelectDates(4, procedureArray, labelArray);

            viewableArea.Children.Add(graphs);
        }
        //Creates the historical graphs for the overview page. Clears the grid of the live graphs, then plots the historical graphs.
        private void HistoricalGraphs_Checked(object sender, RoutedEventArgs e)
        {
            viewableArea.RowDefinitions.Clear();
            viewableArea.ColumnDefinitions.Clear();
            viewableArea.Children.Clear();

            string[] procedureArray =
            {
                "SensorData_BoilerGetPhysicalPressureValuesByDate",
                "SensorData_BoilerGetVirtualTempValuesByDate",
                "SensorData_BoilerGetVirtualPhValuesByDate",
                "SensorData_BoilerGetVirtualWaterLevelValuesByDate"
            };
            string[] labelArray =
            {
                "Pressure (P)",
                "Temperature (V)",
                "Ph (V)",
                "Water Level (V)"
            };

            SelectDates graphs = new SelectDates(4, procedureArray, labelArray);

            viewableArea.Children.Add(graphs);
        }
        private void HistoricalGraphs_Checked(object sender, RoutedEventArgs e)
        {
            viewableArea.RowDefinitions.Clear();
            viewableArea.ColumnDefinitions.Clear();
            viewableArea.Children.Clear();

            string[] procedureArray =
            {
                "SensorData_TurbineGetPhysicalVibrationValuesByDate"
            };
            string[] labelArray =
            {
                "Vibration (P)"
            };

            SelectDates graphs = new SelectDates(1, procedureArray, labelArray);

            viewableArea.Children.Add(graphs);
        }