예제 #1
0
        private void OpenDocumentPattern_Click(object sender, RoutedEventArgs e)
        {
            var win = new OpenDocumentPatternWindow();

            win.DocumentPatternLoaded += DocumentPatternLoaded;

            win.ShowDialog();
        }
예제 #2
0
        private void NewDocument_Click(object sender, RoutedEventArgs e)
        {
            var win = new OpenDocumentPatternWindow();

            win.DocumentPatternLoaded += DocumentPatternLoaded;

            var proxy = new DocumentEditorServiceSoapClient();

            this._currentlyEditedDocument = proxy.CreateDocument();

            win.NewDocumentCreated += (s, ev) =>
            {
                this._currentlyEditedDocument = proxy.InitDocumentContentsData(
                    this._currentlyEditedDocument,
                    ev.DocumentPattern);
                this._currentlyEditedDocument.DocumentPatternId = ev.DocumentPattern.Id;
            };

            win.ShowDialog();
        }