Example #1
0
        public SearchCore()
        {
            _getRegionCities = new List<string>();
            _getRegionCities.Add("CityId");
            _getCities = new List<string>();
            _getCities.Add("City");
            _getcitystreets = new List<string>();
            _getcitystreets.Add("StreetId");
            _getstreethouse = new List<string>();
            _getstreethouse.Add("HouseId");
            _getRegionbycity = new List<string>();
            _getRegionbycity.Add("CityId");
            _getStreetbyDistrict = new List<string>();
            _getStreetbyDistrict.Add("CommunityId");

            manager = new DbManager();
            searchmodel = new SearchViewModel();
            _regions = new List<AddressUnit>();
            _regions.Add(new AddressUnit { Id = 1, Name = "Շիրակ" });
            _regions.Add(new AddressUnit { Id = 2, Name = "Երևան" });
            _regions.Add(new AddressUnit { Id = 3, Name = "Արմավիր" });
            _regions.Add(new AddressUnit { Id = 4, Name = "Արարատ" });
            _regions.Add(new AddressUnit { Id = 5, Name = "Լոռի" });
            _regions.Add(new AddressUnit { Id = 6, Name = "Գեղարքունիք" });
            _regions.Add(new AddressUnit { Id = 7, Name = "Վայոց Ձոր" });
            _regions.Add(new AddressUnit { Id = 8, Name = "Սյունիք" });
            _regions.Add(new AddressUnit { Id = 9, Name = "Կոտայք" });
            _regions.Add(new AddressUnit { Id = 10, Name = "Արագածոտն" });
            _regions.Add(new AddressUnit { Id = 11, Name = "Տավուշ" });
        }
Example #2
0
 public MainWorkspace()
 {
     SettingsCommand = new RelayCommand(() => CurrentView = new DBSettingsViewModel());
     //SettingsCommand = new RelayCommand(() => CurrentView = new importViewModel());
     SearchCommand = new RelayCommand(() => CurrentView = new SearchViewModel());
 }