Ejemplo n.º 1
0
        public AssemblyBrowserWindowViewModel(IEnumerable <AssemblyInfo> assemblyDefinitions,
                                              TypeInfo type,
                                              Dispatcher dispatcher)
        {
            _dispatcher = dispatcher;

            _assemblies = new ObservableCollection <AssemblyViewModel>(
                assemblyDefinitions.Select(a => new AssemblyViewModel(a, this)));

            OnAssembliesChanged();


            NavigateBackCommand     = new DelegateCommand(NavigateBackCommandHandler);
            NavigateForwardCommand  = new DelegateCommand(NavigateForwardCommandHandler);
            ShowInnerSearchCommand  = new DelegateCommand(ShowInnerSearchCommandHandler);
            ToggleAssembliesCommand = new DelegateCommand(ToggleAssembliesCommandHandler);

            RefreshNavigationCommands();

            IsColorized = true;

            _searchScreen = new SearchScreen(this);

            if (type == null)
            {
                Screen = _searchScreen;
            }
            else
            {
                var typeViewModel = Types.Single(t => t.TypeInfo == type);
                CurrentNavigationItem = new NavigationItem(typeViewModel);
            }
        }
Ejemplo n.º 2
0
        public void TestUserSearchForInvalidPost()
        {
            var topMenu = new TopMenu(driver);

            topMenu.SearchPost(Strings.InvalidPost);

            var searchScreen = new SearchScreen(driver);

            searchScreen.ValidateNothingFoundError(Strings.InvalidPost);
        }
Ejemplo n.º 3
0
        public void TestUserSearchForValidPost()
        {
            var topMenu = new TopMenu(driver);

            topMenu.SearchPost(Strings.SamplePost);

            var searchScreen = new SearchScreen(driver);

            searchScreen.ValidateResults(Strings.SamplePost);
        }
Ejemplo n.º 4
0
        private void BranchSearch()
        {
            if (this.branchChild == null)
            {
                BranchSearching branchSearch = new BranchSearching();
                this.branchChild = new SearchScreen(SearchResource.lblBranchSearching, branchSearch, branchSearch.viewModel);
            }

            Messenger.Default.Send("Child");
            this.branchChild.Show();
        }
Ejemplo n.º 5
0
        public void BeforeEachTest()
        {
            Settings.AppContext = ConfigureApp
                                  .Android
                                  .EnableLocalScreenshots()
                                  .ApkFile("../../com.lkqcorp.rebuilders.qc.apk")
                                  .StartApp(Xamarin.UITest.Configuration.AppDataMode.DoNotClear);

            _searchScreen = new SearchScreen(Settings.AppContext);
            _homeScreen   = new HomeScreen(Settings.AppContext);
            if (_homeScreen.IsLocationSet() == false)
            {
                _homeScreen.SelectLocation("LKQ London");
                //_homeScreen.SetPreferredLocation();
            }
        }
Ejemplo n.º 6
0
 public void SetSearchScreen(SearchScreen screen)
 {
     _searchScreen = screen;
 }
Ejemplo n.º 7
0
        private void GameSearchMenuutton_Click(object sender, RoutedEventArgs e)
        {
            SearchScreen searchScreen = new SearchScreen(this, cl);

            searchScreen.Show();
        }