Пример #1
0
        public void AddNewProfile()
        {
            _logger.Info($"Creation of new alarm profile button pressed.");

            AlarmUrgencyProfilerViewModel aupvm = new AlarmUrgencyProfilerViewModel(false, null, null, null, null, _realmProvider, _runtimeData);

            _manager.ShowDialog(aupvm);
            ReadProfiles();
        }
Пример #2
0
        public void ModifyProfile(int identity)
        {
            _logger.Info($"Modification of alarm profile button pressed. Alarm profile ID = {identity}.");

            AlarmProfileDefinition        modifiedDefinition = _originalList.Where(x => x.Identity == identity).ToList().First();
            AlarmUrgencyProfilerViewModel aupvm = new AlarmUrgencyProfilerViewModel(true, modifiedDefinition.ProfileName,
                                                                                    modifiedDefinition.ProfileComment, GetProfileDetailedData(identity), modifiedDefinition, _realmProvider, _runtimeData);

            _manager.ShowDialog(aupvm);
            ReadProfiles();
        }