public ControlSystemAlarmPropertiesControl(ControlSystemComponent controlSystemComponent ,AlarmLists alarmLists )
        {
            InitializeComponent();
            CompositionInitializer.SatisfyImports(this);

            mControlSystemComponent = controlSystemComponent;
            var viewModel = new ControlSystemAlarmPropertiesViewModel(controlSystemComponent, alarmLists) { View = this };
            DataContext = viewModel;

            Loaded += ControlLoaded;
        }
        public ControlSystemAlarmPropertiesViewModel(ControlSystemComponent controlSystemComponent, AlarmLists lists)
        {
            CompositionInitializer.SatisfyImports(this);
            mAlarmLists = lists;

            mControlSystemComponent = controlSystemComponent;
            AlarmPropertyValues = new CmsObservableCollection<ControlSystemAlarmPropertiesWrapViewModel>();

            mLevel = GetControlSystemComponentAlarmLevel();

            LoadData();
        }