private void add_doc_Click(object sender, RoutedEventArgs e) { AddDocument addDocument = new AddDocument(); addDocument.Owner = this; addDocument.Show(); }
/// <summary> /// Initializes window for adding document adding articles to a journal. /// </summary> /// <param name="journalID">Id of the journal.</param> /// <param name="addDocument">Window of editing documents.</param> public AddJournalArticlesToJournal(long journalID, AddDocument addDocument) { InitializeComponent(); this.journalID = journalID; this.addDocument = addDocument; }