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(); }
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(); }