internal void CalledFromNewFlyout(FeedbackFlyout feedbackFlyout) { CurrentFlyout = feedbackFlyout; if (!this.FeedbackThreadList.Any()) { this.FeedbackThreadList.Add(new FeedbackThreadVM()); } this.SelectedFeedbackThread = this.FeedbackThreadList.First(); }
/// <summary> /// Invoke this method to open the feedback UI where a user can send you a message including image attachments over the HockeyApp feedback system. /// </summary> /// <param name="this"></param> /// <param name="initialUserName">[Optional] Username to prefill the name field</param> /// <param name="initialEMail">[Optional] Email to prefill the email field</param> public static void ShowFeedback(this IHockeyClient @this, string initialUserName = null, string initialEMail = null) { @this.AsInternal().CheckForInitialization(); var flyout = new FeedbackFlyout(); FeedbackManager.Current.InitialEmail = initialEMail; FeedbackManager.Current.InitialUsername = initialUserName; flyout.ShowIndependent(); }
public MainPage() { this.InitializeComponent(); Messenger.Default.Register <Exception>(this, UserInterfaceService.Commands.HideFeedback, _ => FeedbackFlyout.Hide()); Messenger.Default.Register <string>(this, UserInterfaceService.Commands.ShowSettings, _ => SettingsFlyout.ShowAt(SettingsButton)); Messenger.Default.Register <string>(this, UserInterfaceService.Commands.HideRunCommand, _ => RunFlyout.Hide()); }
private void Button_Click_4(object sender, RoutedEventArgs e) { FeedbackFlyout.Hide(); var openReview = Launcher.LaunchUriAsync(new Uri("mailto:[email protected]")); }
private void Button_Click_3(object sender, RoutedEventArgs e) { FeedbackFlyout.Hide(); var openReview = Launcher.LaunchUriAsync(new Uri(string.Format("ms-windows-store:REVIEW?PFN={0}", Windows.ApplicationModel.Package.Current.Id.FamilyName))); }