예제 #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 = "Տավուշ" });
        }
예제 #2
0
 public DbCreator(DbManager manager)
 {
     _PrymeDict = new Dictionary<string, string>();
     column = new List<string>();
     column.Add("name");
     _manager = manager;
     DbList = new List<string>();
 }
예제 #3
0
        public SearchViewModel()
        {

            core = new SearchCore();
            SearchCommand = new RelayCommand(Search);
            db = new DbManager();
            columns = new List<string>();
            columns.Add("AddressId");
            columns.Add("Name");
            columns.Add("Surname");
            columns.Add("Patronymic");
            columns.Add("BirthDay");
        }