예제 #1
0
 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();
 }
예제 #2
0
 private void SignInButton_Click(object sender, RoutedEventArgs e)
 {
     var loginWindow = new LoginWindow();
     loginWindow.ShowDialog(StaticMainWindow.Window);
     if (loginWindow.DialogResult == true)
     {
         OnLoginSuccessfully(null);
     }
 }
예제 #3
0
 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);
     }
 }