public MethodGraphViewModel(MethodDocumentViewModel parent, string kind, string name, string text, string layoutType) : base(parent, kind, name, text) { this.layoutType = layoutType; this.SaveCommand = new DelegateCommand(OnSave); this.Graph = Extensions.CreateGraphFromDGML(text); }
public MethodBodyViewModel(MethodDocumentViewModel parent, string kind, string name, string text) { this.Parent = parent; this.Kind = kind; this.Name = name; this.Text = text; this.isVisible = true; }
private void OnShowAll(object obj) { var document = new MethodDocumentViewModel(this.Main, method); this.Main.AddDocument(document); }