public PartDefineForManualOperation()
        {
            Actions = new List<AliasPartAction>();
            RepeatActionList = new FAFramework.Utility.ThreadSafeObservableCollection<AliasPartAction>();
            StatusObjectList = new List<object>();

            _repeatSequence.Add(ExecuteCurrentAction);
            _repeatSequence.Add(IsCurrentActionTerminated);

            _timer.Interval = new TimeSpan(0, 0, 0, 0, 50);
            _timer.Tick += new EventHandler(
                delegate(object sender, EventArgs e)
                {
                    ExecuteRepeatAction();
                });
        }
        public AlarmRaisingStatusManager(Equipment.EquipmentBase equipment)
        {
            Equipment = equipment;
            RaisingAlarmList = new FAFramework.Utility.ThreadSafeObservableCollection<AlarmInfo>();
            Equipment.OnRaiseAlarm += RaiseAlarm;

            TurnOffCommand = new CommandHandler(
                delegate
                {
                    if (Equipment != null)
                        Equipment.TurnOffSound();
                }, true);

            _raisingAlarmList.CollectionChanged +=
                delegate
                {
                    AlarmCount = _raisingAlarmList.Count;
                };
        }