// Load data for the ViewModel Items private void MainPage_Loaded(object sender, RoutedEventArgs e) { if (App.ApiInstance != null && App.ViewModel.IsDataLoaded) return; Username = "******"; var loginWindow = new LoginChildWindow { Login = Username }; loginWindow.Closed += OnLoginChildWindowShow; loginWindow.Show(); }
private void button1_Click(object sender, RoutedEventArgs e) { if (_ingageApi != null) return; Username = "******"; var loginWindow = new LoginChildWindow { Login = Username }; loginWindow.Closed += OnLoginChildWindowShow; loginWindow.Show(); }