示例#1
0
        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);
        }
示例#2
0
 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;
 }
示例#3
0
        private void OnShowAll(object obj)
        {
            var document = new MethodDocumentViewModel(this.Main, method);

            this.Main.AddDocument(document);
        }