PageRenderTime 38ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/ViewModel/DocumentViewModel.cs

https://github.com/shader/QuickArch
C# | 28 lines | 24 code | 4 blank | 0 comment | 0 complexity | 63107e2e35fbf4b98ef7edc191b29b0f MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.Specialized;
  4. using System.Linq;
  5. using System.Text;
  6. using QuickArch.Model;
  7. namespace QuickArch.ViewModel
  8. {
  9. public class DocumentViewModel : SystemViewModel
  10. {
  11. public DocumentViewModel(Document document)
  12. : base(document)
  13. {
  14. (Component as Document).ComponentsChanged += OnDocumentComponentsChanged;
  15. }
  16. public void AddSystemDiagram(string name)
  17. {
  18. (Component as Document).AddComponent(new SystemDiagram(name, Component as Document));
  19. }
  20. public void OnDocumentComponentsChanged(object sender, NotifyCollectionChangedEventArgs e)
  21. {
  22. }
  23. }
  24. }