public ViewModelLocator()
 {
     if (DesignMode)
         _document = LoadDesignModeDocument();
     else
         _document = LoadDocument();
     _selection = new Selection();
 }
 private Document LoadDesignModeDocument()
 {
     Document document = new Document();
     var one = document.NewItem();
     one.Name = "Design";
     var two = document.NewItem();
     two.Name = "Mode";
     var three = document.NewItem();
     three.Name = "Data";
     return document;
 }
 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;
 }
 public MainViewModel(Document document, Selection selection)
 {
     _document = document;
     _selection = selection;
 }