Пример #1
0
 private void OpenDocument(object sender, ExecutedRoutedEventArgs e)
 {
     if (_documentManager.OpenDocument())
     {
         status.Text = "Document loaded.";
     }
 }
Пример #2
0
 private void OpenDocument(object sender, ExecutedRoutedEventArgs e)
 {
     if (documentManager.BodyTextChanged)
     {
         documentManager.SaveDocument();
     }
     documentManager.OpenDocument();
 }
Пример #3
0
 public MainWindow()
 {
     InitializeComponent();
     documentManager = new DocumentManager(Body);
     printManager    = new PrintManager(Body);
     if (documentManager.OpenDocument())
     {
         Status.Text = "Document loaded";
     }
 }
Пример #4
0
        public MainWindow()
        {
            InitializeComponent();

            _documentManager = new DocumentManager(body);
            _printManager    = new PrintManager(body);
            if (_documentManager.OpenDocument())
            {
                status.Text = "Document loaded.";
            }
        }