code: void submit() {
  
          if (isValid()) {
              if (m_project == null) {
                  createProject();
              } else {
                  saveProject();
              }
              m_table.loadProjects();
              m_window.close();
          }
      }
docs: Submits the form.<p>