public DocumentWindow( LabeledDocumentVector Document, String CorpusPath, List<String> Features )
        {
            InitializeComponent();

            Parser = new SgmlParser(CorpusPath);
            Parser.FilePosition = Document.Document.Location;

            this.Features = Features;
            HeadLine = Document.Document.HeadLine;
            DateLine = Document.Document.DateLine;
            Id = Document.Document.Id;

            StringBuilder builder = new StringBuilder();
            String Value;

            while ( (Value=Parser.NextParagraph()) != null )
            {
                if (Parser.DocID != Id)
                    break;

                builder.Append(Value);
            }
            Parser.Close();

            DocumentContent = builder.ToString();

            FeatureWeights = new Dictionary<string, double>();

            for (int i = 0; i < Features.Count; i++)
                FeatureWeights.Add(Features[i], Document.Document.Vector[i]);

            VectorDataListView.ItemsSource = FeatureWeights;

            this.Title = Document.Document.Id + " Details";
        }