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); } }
public bool?ShowTransferDialog(Account fromAccount, IEnumerable <Account> allAccountsOfCustomer) { var transferWindow = new TransferWindow(fromAccount, allAccountsOfCustomer, _accountRepository); return(transferWindow.ShowDialog()); }