Пример #1
0
 private void NewDocument(object sender, ExecutedRoutedEventArgs e)
 {
     if (documentManager.BodyTextChanged)
     {
         documentManager.SaveDocument();
     }
     documentManager.NewDocument();
 }
Пример #2
0
 private void NewDocument(object sender, ExecutedRoutedEventArgs e)
 {
     _documentManager.NewDocument();
     status.Text = "New Document";
 }