using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace IHM
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public Navigator Nav => (App.Current as App).Navigator;
        public MainWindow()
        {
            InitializeComponent();
            DataContext = this;
        }

        private void Button_Click_Compte(object sender, RoutedEventArgs e)
        {
            Nav.NavigateTo(Navigator.PART_COMPTE);
        }

        private void Button_Click_Operation(object sender, RoutedEventArgs e)
        {
            Nav.NavigateTo(Navigator.PART_OPERATION);
        }

        private void Button_Click_Echeancier(object sender, RoutedEventArgs e)
        {
            Nav.NavigateTo(Navigator.PART_ECHEANCIER);
        }

        private void Button_Click_Plannification(object sender, RoutedEventArgs e)
        {
            Nav.NavigateTo(Navigator.PART_PLANNIFICATION);
        }
    }
}
