private void BtnSelectTemplateClick(object sender, RoutedEventArgs e)
        {
            // Reload default template when Shift is pressed
            if (Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift))
            {
                var msgBox = new ClearCanvas.Desktop.View.WinForms.MessageBox();
                if (msgBox.Show(@"Do you want to select default template?", MessageBoxActions.YesNo) == DialogBoxAction.Yes)
                {
                    this.SetNewTemplateDocument(null);
                    return;
                }
            }

            var openFileDialog = new OpenFileDialog
            {
                DefaultExt       = "xml",
                Filter           = @"XML Files (*.xml)|*.xml|All Files|*.*",
                Title            = @"Open AIM Template File",
                Multiselect      = false,
                RestoreDirectory = true,
                InitialDirectory = Component.SelectedAimTemplateLocalFolder
            };

            if (openFileDialog.ShowDialog() == true)
            {
                this.SetNewTemplateDocument(openFileDialog.FileName);
            }
        }
        private void BtnSelectTemplateClick(object sender, RoutedEventArgs e)
        {
            // Reload default template when Shift is pressed
            if (Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift))
            {
                var msgBox = new ClearCanvas.Desktop.View.WinForms.MessageBox();
                if (msgBox.Show(@"Do you want to select default template?", MessageBoxActions.YesNo) == DialogBoxAction.Yes)
                {
                    this.SetNewTemplateDocument(null);
                    return;
                }
            }

            var openFileDialog = new OpenFileDialog
                                                {
                                                    DefaultExt = "xml",
                                                    Filter = @"XML Files (*.xml)|*.xml|All Files|*.*",
                                                    Title = @"Open AIM Template File",
                                                    Multiselect = false,
                                                    RestoreDirectory = true,
                                                    InitialDirectory = Component.SelectedAimTemplateLocalFolder
                                                };

            if (openFileDialog.ShowDialog() == true)
            {
                this.SetNewTemplateDocument(openFileDialog.FileName);
            }
        }