private void ReviewButton_Click(object sender, RoutedEventArgs e) { if (!GlobalVariables.UserOnline) { var loginWindow = new LoginWindow(); if (loginWindow.ShowDialog(StaticMainWindow.Window) == false) return; StaticMainWindow.Window.UpdateLoginSuccessfully(); } CheckUserOwnMotionRelation(); }
private void SignInButton_Click(object sender, RoutedEventArgs e) { var loginWindow = new LoginWindow(); loginWindow.ShowDialog(StaticMainWindow.Window); if (loginWindow.DialogResult == true) { OnLoginSuccessfully(null); } }
private void DownloadButton_Click(object sender, RoutedEventArgs e) { if (!GlobalVariables.UserOnline) { var signinWindow = new LoginWindow(); if (signinWindow.ShowDialog(StaticMainWindow.Window) == false) return; } StaticMainWindow.Window.UpdateLoginSuccessfully(); var request = new DownloadMotionStoreRequest(MotionID); var transferWindow = new TransferWindow(request, Info.title); if (transferWindow.ShowDialog(StaticMainWindow.Window) == true) { ViewModel.DownloadButtonContent = "Installed"; GlobalFunction.SaveIconImage(ViewModel.CoverImage, MotionID); } }