void init() { label = "Default"; visible = true; required = false; key = JSONFormController.GenerateGUID(); }
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); }
public JSONTool(JSONFormController theController) { InitializeComponent(); PopulateQuestionComboBox(); formController = theController; formInProgress = false; visibleCheckBox.CheckState = CheckState.Checked; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); JSONFormController controller = new JSONFormController(); JSONTool jTool = new JSONTool(controller); Application.Run(jTool); }
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")); } }