コード例 #1
0
 private Document LoadDocument()
 {
     // TODO: Load your document here.
     Document document = new Document();
     var one = document.NewItem();
     one.Name = "One";
     var two = document.NewItem();
     two.Name = "Two";
     var three = document.NewItem();
     three.Name = "Three";
     return document;
 }
コード例 #2
0
 public MainViewModel(Document document, Selection selection)
 {
     _document = document;
     _selection = selection;
 }
コード例 #3
0
 public ViewModelLocator()
 {
     _document = LoadDocument();
     _selection = new Selection();
 }