Пример #1
0
 public Customers()
 {
     InitializeComponent();
     this._navigationServiceEx            = NavigationServiceEx.Instance;
     this._navigationServiceEx.Navigated += this.NavigationServiceEx_OnNavigated;
     NewCustomers.Content = new CustomersPage();
 }
Пример #2
0
 public Dashboard()
 {
     InitializeComponent();
     this._navigationServiceEx            = NavigationServiceEx.Instance;
     this._navigationServiceEx.Navigated += this.NavigationServiceEx_OnNavigated;
     //this.Loaded += (sender, args) =>
     //    this._navigationServiceEx.Navigate(new Uri("Views/Dashboard.xaml", UriKind.RelativeOrAbsolute));
 }
Пример #3
0
        public MainWindow()
        {
            try
            {
                this.InitializeComponent();
                this.navigationServiceEx            = new Navigation.NavigationServiceEx();
                this.navigationServiceEx.Navigated += this.NavigationServiceEx_OnNavigated;
                this.HamburgerMenuControl.Content   = this.navigationServiceEx.Frame;

                this.Loaded += (sender, args) => this.navigationServiceEx.Navigate(new Uri("../Views/Pages/TodayResultsView.xaml", UriKind.RelativeOrAbsolute));
            }
            catch (Exception exception)
            {
                MessageBox.Show("Сообщение ошибки: " + exception.Message, "Произошла ошибка");
            }
        }
Пример #4
0
 public UserPage()
 {
     InitializeComponent();
     this._navigationServiceEx            = NavigationServiceEx.Instance;
     this._navigationServiceEx.Navigated += this.NavigationServiceEx_OnNavigated;
 }