예제 #1
0
 public MainWindow()
 {
     InitializeComponent();
     DataMaster.LoadData();
     MainFrame.Content = new OpeningPage();
     //MainFrame.NavigationService.Navigate(new OpeningPage());
     BaseViewModel.Navigation = MainFrame;
     MainFrame.Navigated     += MainFrame_Navigated;
 }
예제 #2
0
        private async void LoadData()
        {
            IsShowLoading = Visibility.Visible;
            await Task.Run(() =>
            {
                DataMaster.LoadData();
            });

            IsShowLoading = Visibility.Hidden;
            ShowUserLogin();
        }