private void OpenDocument(object sender, ExecutedRoutedEventArgs e) { if (_documentManager.OpenDocument()) { status.Text = "Document loaded."; } }
private void OpenDocument(object sender, ExecutedRoutedEventArgs e) { if (documentManager.BodyTextChanged) { documentManager.SaveDocument(); } documentManager.OpenDocument(); }
public MainWindow() { InitializeComponent(); documentManager = new DocumentManager(Body); printManager = new PrintManager(Body); if (documentManager.OpenDocument()) { Status.Text = "Document loaded"; } }
public MainWindow() { InitializeComponent(); _documentManager = new DocumentManager(body); _printManager = new PrintManager(body); if (_documentManager.OpenDocument()) { status.Text = "Document loaded."; } }