Ejemplo n.º 1
0
 public void ShowDocument(string filename)
 {
     try
     {                
         Document doc = new Document();
         DocumentReference docRef = new DocumentReference(doc, filename);
         doc.LoadFile(docRef);                
         doc.Owner = this.MainWindow;
         doc.Show();
         doc.Activate();
         Documents.Add(docRef);
     }
     catch
     {
         MessageBox.Show("Could not load document.");
     }
 }
Ejemplo n.º 2
0
 public DocumentReference(Document document, string name)
 {
     Document = document;
     Name = name;
 }