예제 #1
0
 void init()
 {
     label    = "Default";
     visible  = true;
     required = false;
     key      = JSONFormController.GenerateGUID();
 }
예제 #2
0
        private void newGuidButton_Click(object sender, EventArgs e)
        {
            string guid = JSONFormController.GenerateGUID();

            Clipboard.SetText(guid);

            MessageBox.Show($"GUID\n{guid}\nhas been pasted to the clipboard", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
예제 #3
0
        public JSONTool(JSONFormController theController)
        {
            InitializeComponent();
            PopulateQuestionComboBox();

            formController             = theController;
            formInProgress             = false;
            visibleCheckBox.CheckState = CheckState.Checked;
        }
예제 #4
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            JSONFormController controller = new JSONFormController();
            JSONTool           jTool      = new JSONTool(controller);

            Application.Run(jTool);
        }
예제 #5
0
            public SubmissionDetails(string subTypeID, string subDesc, string regID, List <RegEdit> theRegEdits)
            {
                submissionTypeId        = subTypeID;
                submissionTypeDesc      = subDesc;
                relatedRegisterId       = regID;
                submissionRegisterEdits = theRegEdits;

                if (submissionRegisterEdits.Count <= 0)
                {
                    submissionRegisterEdits.Add(new RegEdit(JSONFormController.GenerateGUID(), "name", "id"));
                    submissionRegisterEdits.Add(new RegEdit(JSONFormController.GenerateGUID(), "name", "id"));
                }
            }