using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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.Navigation;
using System.Windows.Shapes;
using DevToolManager.CodeModel;
using System.Diagnostics;

namespace DevToolManager
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Shell : Window, IShell
    {
        public Shell()
        {
            InitializeComponent();
        }

        protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
        {
            foreach (Window window in Application.Current.Windows)
            {
                Debug.WriteLine(string.Format("{0}", window));
            }

            base.OnClosing(e);
        }

        #region IShell Members

        public void Alert(string text)
        {
            MessageBox.Show(text);
        }

        #endregion
    }
}
