Ejemplo n.º 1
0
        private void UpdateListener(StationLib.StationSocketListener updateplistener)
        {
            if (updateplistener != null)
            {
                StationLib.StationSocketListener plistener = m_StationListeners.getSelectedItem();
                if (plistener == updateplistener)
                {
                    if (updateplistener.WaterInletActive != m_WaterInletActivate)
                    {
                        this.m_WaterInletActivate = updateplistener.WaterInletActive;
                        OnPropertyChanged("WaterInletActivate");
                    }

                    if (updateplistener.PumpDryProtectionActive != m_PumpDryProtectionActive)
                    {
                        this.m_PumpDryProtectionActive = updateplistener.PumpDryProtectionActive;
                        OnPropertyChanged("PumpDryProtectionActive");
                    }

                    WaterInletActivateEnable = !updateplistener.ListenerMode && updateplistener.OutPutWellFillingLevelMinActiv;// && !updateplistener.WaterInletState; ;


                    PumpDryProtectionActiveEnable = !updateplistener.ListenerMode && updateplistener.OutPutFillingLevelMinActiv;// && !updateplistener.PumpDryProtectionState;
                }
            }
        }
Ejemplo n.º 2
0
 void DeleteDataSensors_Click(Object sender, Windows.UI.Xaml.RoutedEventArgs e)
 {
     StationLib.StationSocketListener plistener = m_SocketStationListeners.getSelectedItem();
     if (plistener != null)
     {
         plistener.StationSensors.deleteSensorValues();
     }
 }