Esempio n. 1
0
        private void OnSubmitComment()
        {
            var model     = new FeedbackModel();
            var viewModel = new FeedbackViewModel(model, Title);
            var view      = new FeedbackView
            {
                DataContext = viewModel
            };

            var unused = new WindowInteropHelper(view)
            {
                Owner = Process.GetCurrentProcess().MainWindowHandle
            };

            view.ShowDialog();
        }
Esempio n. 2
0
        private static void OnSubmitComment()
        {
            var title     = "Mission Control - Styles Manager v." + Assembly.GetExecutingAssembly().GetName().Version;
            var model     = new FeedbackModel();
            var viewModel = new FeedbackViewModel(model, title);
            var view      = new FeedbackView
            {
                DataContext = viewModel
            };

            var unused = new WindowInteropHelper(view)
            {
                Owner = Process.GetCurrentProcess().MainWindowHandle
            };

            view.ShowDialog();
        }