private void viewChartButton_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new ViewChartWindow {
                Owner = this
            };

            dlg.Show();
        }
 private void viewChartButton_Click(object sender, RoutedEventArgs e)
 {
     var dlg = new ViewChartWindow {Owner = this};
     dlg.Show();
 }