private void OpenDocumentPattern_Click(object sender, RoutedEventArgs e) { var win = new OpenDocumentPatternWindow(); win.DocumentPatternLoaded += DocumentPatternLoaded; win.ShowDialog(); }
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(); }