예제 #1
0
        private void VindTimer_Tick(object sender, EventArgs e)
        {

            SensorerFac sf = new SensorerFac();
            sf.SetSensor(5, vindTick, Serialnumber);
            vindTick = 0;
        }
예제 #2
0
 private void RainTimer_Tick(object sender, EventArgs e)
 {
     SensorerFac sf = new SensorerFac();
     sf.SetSensor(6, rainTick, Serialnumber);
     rainTick = 0;
 }
예제 #3
0
        //    void ifKit_OutputChange(object sender, OutputChangeEventArgs e)
        //{
        //    // try
        //    // {   _888IfKitRep obj = new _888IfKitRep();
        //    //     obj.SetOutputs(e.Index, ifKit.outputs[e.Index], Serialnumber);
        //    // }
        //    //catch (Exception ex)
        //    //{

        //    //    Errors err = new Errors();
        //    //    err.Card = Serialnumber;
        //    //    err.Date = DateTime.Now.ToString();
        //    //    err.From = System.Environment.MachineName;
        //    //    err.Message = ex.Message;
        //    //    err.Method = "ifKit_OutputChange";

        //    //objErr.AddErrors(err);
        //    //}
        //}



        void ifKit_SensorChange(object sender, SensorChangeEventArgs e)
        {


            SensorerFac sf = new SensorerFac();
            sf.SetSensor(e.Index, ifKit.sensors[e.Index].Value, Serialnumber);

           
            try
            {

            }
            catch (Exception ex)
            {

                //Errors err = new Errors();
                //err.Card = Serialnumber;
                //err.Date = DateTime.Now.ToString();
                //err.From = System.Environment.MachineName;
                //err.Message = ex.Message;
                //err.Method = "ifKit_SensorChange";

                //objErr.AddErrors(err);
            }
        }