Esempio n. 1
0
        public MainVM()
        {
            _detector.AddListener(this);
            RemoveObserverCommand = new RelayCommand(removeObserver, x => true);
            OpenSettingsCommand   = new RelayCommand(x => openSettings(), y => true);
            string content = _districtCollectionDataResolver.RequestProcess();

            Districts           = _districtCollectionParser.ParseDistricts(content);
            IsDistrictsExpanded = true;
            refreshObserves();
            Load();
            PropertyChanged += onPropertyChanged;

            if (_detector.GetMailReceivers().Count == 0)
            {
                openSettings();
            }
        }