private void OnInstantFeedback(object sender, RoutedEventArgs e) { Console.WriteLine("Instant Feedback Clicked"); var feedbackView = new FeedbackView(); feedbackView.Show(); }
private void OnTechnicalSupport(object sender, RoutedEventArgs e) { Console.WriteLine("Technical Support Clicked"); var feedbackView = new FeedbackView(); feedbackView.Show(); }
private void OnMailTss(object sender, RoutedEventArgs e) { Console.WriteLine("Mail TSS Clicked"); string path = TechnicalSupportInfoBuilder.CreateAndGetTechnicalSupportInfoAsTextFile(true); var feedbackView = new FeedbackView(path); feedbackView.Show(); }
protected override void OnStartup(StartupEventArgs e) { var viewModel = new FeedbackViewModel(new WpfSender(), new Clock()); var view = new FeedbackView { ViewModel = viewModel }; view.Show(); base.OnStartup(e); }
public override void OnFrameworkInitializationCompleted() { #if DEBUG SerilogLogger.Initialize(new LoggerConfiguration() .MinimumLevel.Warning() .WriteTo.Trace(outputTemplate: "{Area}: {Message}") .CreateLogger()); #endif var view = new FeedbackView(); var context = new FeedbackViewModel( new AvaloniaSender(view), new Clock()); view.DataContext = context; view.Show(); base.OnFrameworkInitializationCompleted(); }
private void feedback_Click(object sender, RoutedEventArgs e) { FeedbackView pop = new FeedbackView(); pop.WindowStartupLocation = WindowStartupLocation.CenterScreen; pop.Show(); }
private void feedback_Click(object sender, RoutedEventArgs e) { try { FeedbackView pop = new FeedbackView(); pop.WindowStartupLocation = WindowStartupLocation.CenterScreen; pop.Show(); } catch (Exception exception) { ErrorViewModel.Save(exception, exception.GetType()); } }