Example #1
0
 private void NewDocument(object sender, ExecutedRoutedEventArgs e)
 {
     if (documentManager.BodyTextChanged)
     {
         documentManager.SaveDocument();
     }
     documentManager.NewDocument();
 }
Example #2
0
 private void SaveDocument(object sender, ExecutedRoutedEventArgs e)
 {
     if (_documentManager.SaveDocument())
     {
         status.Text = "Document saved.";
     }
 }