예제 #1
0
        public Task NavigateToMainPage(INavigatableViewModel viewModel)
        {
            CurrentView = _viewFactory.ResolveView(viewModel);

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

            return(_navigationFacade.NavigateToMainPage(CurrentView));
        }
예제 #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.."
            });
        }
예제 #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"
            });
        }
예제 #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"));
 }
예제 #7
0
 private void OnNavigateToTargetPage(InstructionItem instructionItem)
 {
     _navigationFacade.NavigateToMainPage();
 }
예제 #8
0
 public SqlServersMenuItem(INavigationFacade navigation) : base(navigation)
 {
     _navigation = navigation;
     Command     = new RelayCommand(() => _navigation.NavigateToMainPage());
     Image       = new BitmapImage(new Uri("ms-appx:///Assets/MenuIcons/database.png"));
 }