Exemplo n.º 1
0
        private void send_section_value_array()
        {
            SectFUELTRIPJSONFormat sectfueltrip_json = new SectFUELTRIPJSONFormat();

            sectfueltrip_json.sect_gas       = _nenpi_trip_calc.Sect_gas_array;
            sectfueltrip_json.sect_trip      = _nenpi_trip_calc.Sect_trip_array;
            sectfueltrip_json.sect_gasmilage = _nenpi_trip_calc.Sect_gasmilage_array;
            sectfueltrip_json.sect_span      = _nenpi_trip_calc.Sect_Span;

            broadcast_websocket_msg(sectfueltrip_json.Serialize());
        }
        private void send_section_value_array()
        {
            SectFUELTRIPJSONFormat sectfueltrip_json = new SectFUELTRIPJSONFormat();

            sectfueltrip_json.sect_gas       = fuelTripCalc.SectFuelArray;
            sectfueltrip_json.sect_trip      = fuelTripCalc.SectTripArray;
            sectfueltrip_json.sect_gasmilage = fuelTripCalc.SectTripPerFuelArray;
            sectfueltrip_json.sect_span      = fuelTripCalc.SectSpan;

            broadcast_websocket_msg(sectfueltrip_json.Serialize());
        }