using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.IO;


namespace LoadFromCommandLine
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>

    public partial class FileViewer : Window
    {

        public FileViewer()
        {
            InitializeComponent();
        }

        public void LoadFile(string path)
        {
            this.Content = File.ReadAllText(path);  
            this.Title = path;
        }
    }
}