Esempio n. 1
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);
            }
        }
Esempio n. 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);
      }
    }