public Task NavigateToMainPage(INavigatableViewModel viewModel)
        {
            CurrentView = _viewFactory.ResolveView(viewModel);

            _loggingService.Info($"Navigating to MainPage: {CurrentView}");

            return(_navigationFacade.NavigateToMainPage(CurrentView));
        }
Exemple #2
0
        public HelpMenuItem(INavigationFacade navigation)
        {
            _navigation = navigation;
            Command     = new RelayCommand(() => _navigation.NavigateToMainPage());
            Image       = new BitmapImage(new Uri("ms-appx:///Assets/MenuIcons/web-1.png"));

            ContextMenu = new MenuFlyout();
            ContextMenu.Items.Add(new MenuFlyoutItem {
                Text = "Documentation..."
            });
            ContextMenu.Items.Add(new MenuFlyoutItem {
                Text = "À propos de Datacloner.."
            });
        }
Exemple #3
0
        public ToolsMenuItem(INavigationFacade navigation)
        {
            _navigation = navigation;
            Command     = new RelayCommand(() => _navigation.NavigateToMainPage());
            Image       = new BitmapImage(new Uri("ms-appx:///Assets/MenuIcons/wrench.png"));

            ContextMenu = new MenuFlyout();
            ContextMenu.Items.Add(new MenuFlyoutItem {
                Text = "Trouver les tables statiques"
            });
            ContextMenu.Items.Add(new MenuFlyoutItem {
                Text = "Restraindre l'accès aux tables"
            });
            ContextMenu.Items.Add(new MenuFlyoutItem {
                Text = "Détection des colonnes à générer"
            });
        }
Exemple #4
0
        public FileMenuItem(INavigationFacade navigation)
        {
            _navigation = navigation;
            Command     = new RelayCommand(() => _navigation.NavigateToMainPage());
            Image       = new BitmapImage(new Uri("ms-appx:///Assets/MenuIcons/interface.png"));

            ContextMenu = new MenuFlyout();
            ContextMenu.Items.Add(new MenuFlyoutItem {
                Text = "Nouveau projet...", Command = new RelayCommand(NewProjectAsync)
            });
            ContextMenu.Items.Add(new MenuFlyoutItem {
                Text = "Ouvrir un projet...", Command = new RelayCommand(OpenProjectAsync)
            });
            ContextMenu.Items.Add(new MenuFlyoutItem {
                Text = "Ouvrir une requête...", Command = new RelayCommand(OpenProjectAsync)
            });
        }
 public EnvironmentDefinitionMenuItem(INavigationFacade navigation) : base(navigation)
 {
     _navigation = navigation;
     Command     = new RelayCommand(() => _navigation.NavigateToMainPage());
     Image       = new BitmapImage(new Uri("ms-appx:///Assets/MenuIcons/technology.png"));
 }
 public ExtractionBehaviorsMenuItem(INavigationFacade navigation) : base(navigation)
 {
     _navigation = navigation;
     Command     = new RelayCommand(() => _navigation.NavigateToMainPage());
     Image       = new BitmapImage(new Uri("ms-appx:///Assets/MenuIcons/symbols.png"));
 }
Exemple #7
0
 private void OnNavigateToTargetPage(InstructionItem instructionItem)
 {
     _navigationFacade.NavigateToMainPage();
 }
 public SqlServersMenuItem(INavigationFacade navigation) : base(navigation)
 {
     _navigation = navigation;
     Command     = new RelayCommand(() => _navigation.NavigateToMainPage());
     Image       = new BitmapImage(new Uri("ms-appx:///Assets/MenuIcons/database.png"));
 }