예제 #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.";
            }
        }