Пример #1
0
        public object Clone()
        {
            LameWithEvent _lame = null;

            try
            {
                _lame = new LameWithEvent();
                foreach (var s in params_lst)
                {
                    _lame.SetParameters(s);
                }

                if (!_lame.Load(_vlib))
                {
                    _lame.Unload();
                    return(null);
                }

                _lame.EnterFileEvent = EnterFileEvent;
                _lame.LeaveFileEvent = LeaveFileEvent;
                _lame.AlarmEvent     = AlarmEvent;

                return(_lame);
            }
            catch (Exception)
            {
            }

            return(null);
        }
Пример #2
0
        public object Clone()
        {
            LameWithEvent _lame = null;

            try
            {
                _lame = new LameWithEvent();
                foreach (string s in params_lst)
                {
                    _lame.SetParameters(s);
                }

                if (!_lame.Load(_vlib))
                {
                    _lame.Unload();
                    return(null);
                }

                _lame.SetEventHandle(_handle_file);

                return(_lame);
            }
            catch (System.Exception)
            {
            }

            return(null);
        }