using DTE.ViewModels;
using MahApps.Metro.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace DTE.Views.Windows
{
    /// <summary>
    /// Interaction logic for FullPropertyTemplate.xaml
    /// </summary>
    public partial class TemplateWindow : MetroWindow
    {
        public TemplateWindow()
        {
            InitializeComponent();
        }
        public TemplateWindow(TemplateType type)
        {
            InitializeComponent();
            DataContext = new TemplateVM(type);
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void TextBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            (sender as TextBox).SelectAll();
        }
    }
}
