Beispiel #1
0
        private void go_back_button_Click(object sender, RoutedEventArgs e)
        {
            // Go back to last page
            HomeWindow window = (HomeWindow)Window.GetWindow(this);

            window.goBack();
        }
 private void go_back_Click(object sender, RoutedEventArgs e)
 {
     // Go back to last page based on current window
     try
     {
         HomeWindow window = (HomeWindow)Window.GetWindow(this);
         window.goBack();
     } catch (Exception exc)
     {
         StaffWindow window = (StaffWindow)Window.GetWindow(this);
         window.goBack();
     }
 }