Ejemplo n.º 1
0
        public VariableGrid(VariableGrid tocopy)
        {
            this.VarNameID          = tocopy.VarNameID;
            this.Type               = tocopy.Type;
            this.ConnectedtoChannel = tocopy.ConnectedtoChannel;
            this.AEB             = tocopy.AEB;
            this.ALB             = tocopy.ALB;
            this.SampleTime      = tocopy.SampleTime;
            this.RTT             = tocopy.RTT;
            this.Interval        = tocopy.Interval;
            this.Archive         = tocopy.Archive;
            this.ArchiveInterval = tocopy.ArchiveInterval;
            foreach (AlarmObject alarmobject in tocopy.m_AlarmCollection)
            {
                AlarmObject _alarmobject = new AlarmObject();
                //_alarmobject.StatusBit = alarmobject.StatusBit;

                _alarmobject.ID           = alarmobject.ID;
                _alarmobject.VarNameID    = alarmobject.VarNameID;
                _alarmobject.StatusBit    = (AlarmStatusBit)alarmobject.StatusBit;
                _alarmobject.Type         = (AlarmGroupType)alarmobject.Type;
                _alarmobject._IAlarmGroup = _alarmobject.InitAlarmGroup(alarmobject._IAlarmGroup.ID);
                //_alarmobject._IAlarmGroup = alarmobject._IAlarmGroup;
                _alarmobject.EnableTagID        = alarmobject.EnableTagID;
                _alarmobject.EnableTagDirection = alarmobject.EnableTagDirection;
                _alarmobject.EnableTagDelayOn   = alarmobject.EnableTagDelayOn;
                _alarmobject.EnableTagDealyOff  = alarmobject.EnableTagDealyOff;
                _alarmobject.DelayOn            = alarmobject.DelayOn;
                _alarmobject.DelayOff           = alarmobject.DelayOff;
                _alarmobject.SourceAlarmTagID   = alarmobject.SourceAlarmTagID;
                _alarmobject.FirstOutGroupID    = alarmobject.FirstOutGroupID;
                _alarmobject.hysteresis         = alarmobject.hysteresis;
                _alarmobject.UpperLevelGroupID  = alarmobject.UpperLevelGroupID;

                this.m_AlarmCollection.Add(_alarmobject);
            }
        }