private void MenuItem_Click_NewVolume(object sender, RoutedEventArgs e) { frmNewInput settings = new frmNewInput(); if (settings.ShowDialog() == true) { MessageBox.Show("You have set the new volume name: " + settings.txtTitleText.Text); } this.CurrentTab.addVolumeNode_Click(sender, settings.txtTitleText.Text); }
private void MenuItem_Click_NewParagraph(object sender, RoutedEventArgs e) { frmNewInput settings = new frmNewInput(); if (settings.ShowDialog() == true) { MessageBox.Show("You have set the new paragraph name: " + settings.txtTitleText.Text); } //Paragraph paragraph = new Paragraph(); this.CurrentTab.addParagraphNode_Click(sender, settings.txtTitleText.Text); }