private void buttonNewDocument_Click(object sender, RoutedEventArgs e) { NewDocumentDialog docDia = new NewDocumentDialog(); docDia.ShowDialog(); controller.CreateNewDocumentFile(docDia.DocumentTitle); }
public void DoNewDocumentWorkflow() { if (!DoCloseDocumentWorkflow()) { return; } var newDocumentDialog = new NewDocumentDialog(); if (newDocumentDialog.ShowDialog() == true) { CreateAndOpenNewDocument(newDocumentDialog.DocumentWidth, newDocumentDialog.DocumentHeight, newDocumentDialog.EnableCompression); } }