private void ButtonUpdatePassword_Click(object sender, RoutedEventArgs e) { if (Logged) { FrameAdmin.Navigate(new ChangePassword(Business)); } else { MessageBox.Show("Log in First!"); } }
private void ButtonDeleteApp_Click(object sender, RoutedEventArgs e) { if (Logged) { FrameAdmin.Navigate(new DeleteApp(Business)); } else { MessageBox.Show("Log in First!"); } }
private void ButtonLogin_Click(object sender, RoutedEventArgs e) { var passwordPage = new PasswordPage(Business); passwordPage.Callback += (logined) => { if (logined) { Logged = true; LabelLogonInfo.Content = "Logged in"; } else { Logged = false; LabelLogonInfo.Content = "Not logged in"; } }; FrameAdmin.Navigate(passwordPage); }