Example #1
0
        private async void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            Main_Frame.Navigate(typeof(MusicListPage));
            await Ioc.Default.GetRequiredService <PlaybackListManageService>().InitPlayList();

            await Ioc.Default.GetRequiredService <MusicFileScanningService>().ScanAsync();
        }
Example #2
0
        public MainWindow()
        {
            InitializeComponent();
            _patientsPage     = new PatientsPage();
            _doctorsPage      = new DoctorsPage();
            _appointmentsPage = new AppointmentsPage();

            Main_Frame.Navigate(_patientsPage);
        }
        public MainWindow(object context)
        {
            DataContext    = context;
            page_Deck_Edit = new Deck_Edit(context);
            page_Landing   = new Landing(context);
            page_Templates = new Templates(context);

            InitializeComponent();

            Main_Frame.Navigate(page_Landing);
        }
Example #4
0
 private void CustomPlayerElement_CoverButtonClick(object sender, RoutedEventArgs e)
 {
     if (Main_Frame.CurrentSourcePageType == typeof(MusicInfoPage))
     {
         Main_Frame.GoBack();
     }
     else
     {
         Main_Frame.Navigate(typeof(MusicInfoPage));
     }
 }
Example #5
0
        public void Navigate(PageModel pm)
        {
            if (Main_Frame.SourcePageType == pm.PageType)
            {
                return;
            }

            Main_Frame.Navigate(pm.PageType, pm.Title);

            Main_Frame.BackStack.Clear();
            Main_Frame.ForwardStack.Clear();

            Back_Button.Visibility = Visibility.Collapsed;
            Title_TextBlock.Margin = new Thickness();
        }
 private void But_Templates_Click(object sender, RoutedEventArgs e)
 {
     Main_Frame.Navigate(page_Templates);
 }
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     Main_Frame.Navigate(page_Landing);
 }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     Main_Frame.Navigate(page_Deck_Edit);
 }
Example #9
0
 private void Settings_DockButton_Click(object sender, RoutedEventArgs e)
 {
     Main_Frame.Navigate(new Uri("SettingsPage.xaml", UriKind.Relative));
 }
Example #10
0
 private void WeekMeal_DockButton_Click(object sender, RoutedEventArgs e)
 {
     Main_Frame.Navigate(new Uri("WeekPage.xaml", UriKind.Relative));
 }
Example #11
0
        public MainWindow()
        {
            InitializeComponent();

            Main_Frame.Navigate(new Uri("TodayPage.xaml", UriKind.Relative));
        }
Example #12
0
 private void Appointments_Button_Click(object sender, RoutedEventArgs e)
 {
     Main_Frame.Navigate(_appointmentsPage);
 }
Example #13
0
 private void Doctors_Button_Click(object sender, RoutedEventArgs e)
 {
     Main_Frame.Navigate(_doctorsPage);
 }
Example #14
0
 private void Patients_Button_Click(object sender, RoutedEventArgs e)
 {
     Main_Frame.Navigate(_patientsPage);
 }