private void Preview_Button_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                string sql = viewModel.PreviewSQL();

                var previewWindow = new PreviewWindow(sql);
                previewWindow.Owner = Window.GetWindow(this);
                previewWindow.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
Example #2
0
        private void Preview_Button_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                string sql = viewModel.PreviewSQL();

                var previewWindow = new PreviewWindow(sql);
                previewWindow.Owner = Window.GetWindow(this);
                previewWindow.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }