コード例 #1
0
        private void OnInstantFeedback(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("Instant Feedback Clicked");
            var feedbackView = new FeedbackView();

            feedbackView.Show();
        }
コード例 #2
0
        private void OnTechnicalSupport(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("Technical Support Clicked");
            var feedbackView = new FeedbackView();

            feedbackView.Show();
        }
コード例 #3
0
        private void OnMailTss(object sender, RoutedEventArgs e)
        {
            Console.WriteLine("Mail TSS Clicked");
            string path         = TechnicalSupportInfoBuilder.CreateAndGetTechnicalSupportInfoAsTextFile(true);
            var    feedbackView = new FeedbackView(path);

            feedbackView.Show();
        }
コード例 #4
0
        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);
        }
コード例 #5
0
ファイル: App.xaml.cs プロジェクト: codingseb/ReactiveMvvm
        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();
        }
コード例 #6
0
 private void feedback_Click(object sender, RoutedEventArgs e)
 {
     FeedbackView pop = new FeedbackView();
     pop.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     pop.Show();
 }
コード例 #7
0
 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());
     }
 }