private void Button_Click_1(object sender, RoutedEventArgs e) { if (!CurrentUser.Authorized) { AppUpdate.LogonDialogOpen(); AppUpdate.GoLibrary = false; } else { DialogWindowWatchMovie.IsOpen = true; } }
private void subscriptionList_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { try { if (CurrentUser.Authorized && !((SubscriptionListItem)subscriptionList.SelectedItem).IsActive) { priceTextBox.Text = ((SubscriptionListItem)subscriptionList.SelectedItem).Price.ToString(); DialogWindowBuySubscription.IsOpen = true; } else if (((SubscriptionListItem)subscriptionList.SelectedItem).IsActive) { return; } else { AppUpdate.GoLibrary = false; AppUpdate.LogonDialogOpen(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }