示例#1
0
        private UTF_UC.Diagram getDiagram()
        {
            UTF_EA.Model         sourceModel   = new UTF_EA.Model(this.repository);
            UML.Diagrams.Diagram sourceDiagram = sourceModel.selectedDiagram;

            UTF_UC.Model targetModel = UTF_UC.Model.getModel();
            return(targetModel.cloneDiagram(sourceDiagram));
        }
示例#2
0
        private void export()
        {
            UTF_UC.Model   model   = UTF_UC.Model.getModel();
            UTF_UC.Diagram diagram = this.getDiagram();

            SubmissionForm form = new SubmissionForm();

            form.user        = model.author;
            form.password    = model.password;
            form.diagramID   = diagram.diagramID;
            form.description = diagram.comment;

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                model.author      = form.user;
                model.password    = form.password;
                diagram.diagramID = form.diagramID;
                diagram.comment   = form.description;

                String url = model.saveDiagram(diagram);
                System.Diagnostics.Process.Start(url);
            }
        }
示例#3
0
 public Operation( Model model, TSF.UmlCanvas.Operation operation) 
   : base(model,operation)
 {}
示例#4
0
 public Parameter( Model model, Argument argument )
   : base(model, argument)
 {}
示例#5
0
 public Dependency(Model model, TSF.UmlCanvas.Dependency dependency)
   : base(model, dependency)
 {}
示例#6
0
 public Comment(Model model, Note note) : base(model, note) {}
示例#7
0
 public RelationWrapper(Model model, TSF.UmlCanvas.Relation relation)
   : base(model, relation)
 {}
示例#8
0
 public Abstraction(Model model, Element owner) : base(model) {
   this._owner = owner;
 }
示例#9
0
 public PositionableWrapper(Model model, Positionable construct)
   : base(model, construct)
 {}
示例#10
0
 public Stereotype(Model model, Element owner, String name) : base(model) {
   this._owner = owner;
   this.name = name;
 }
示例#11
0
 public RoleWrapper(Model model, Role associationEnd )
   : base(model, associationEnd) 
 {}
示例#12
0
 public PrimitiveType(Model model, String name) : base(model) {
   this.name = name;
 }
示例#13
0
 public Attribute(Model model, TSF.UmlCanvas.Attribute attribute)
   : base(model, attribute)
 {}
示例#14
0
 internal DiagramElement(Model model, TSF.ADL.Construct construct)
   : base(model,construct)
 {}
示例#15
0
 public InterfaceRealization(Model model, Element owner) 
   : base(model, owner)
 {}
示例#16
0
 public Association(Model model, TSF.UmlCanvas.Association association)
 : base(model, association)
 {}
示例#17
0
文件: Class.cs 项目: ceena/UmlCanvas
 internal Class(Model model, TSF.UmlCanvas.Class _class) 
   : base(model,_class)
 {}
示例#18
0
 internal Interface(Model model, TSF.UmlCanvas.Interface _interface)
   : base(model,_interface)
 {
   this.wrappedInterface = _interface;
 }
示例#19
0
 public Generalization(Model model, Element owner) : base(model,owner) {}