private void buttonApplySettings_Click(object sender, EventArgs e) { GenerateUI parent = (GenerateUI)this.Owner; parent.updateSBLSettings(textBoxWidth.Text, textBoxHeight.Text, textBoxName.Text, textBoxRX.Text, textBoxTX.Text, textBoxLWidth.Text, textBoxIWidth.Text, textBoxTSpace.Text, textBoxLSpace.Text, textBoxVGap.Text, textBoxHGap.Text); this.Close(); }
private void buttonUI_Click(object sender, EventArgs e) { GenerateUI newUIGenerate = new GenerateUI(); //newUIGenerate.setTransaction(""); newUIGenerate.setFileLocation(""); newUIGenerate.Show(); }
private void buttonUIDesign_Click(object sender, EventArgs e) { GenerateUI newUIGenerate = new GenerateUI(); newUIGenerate.setTransaction(newDocument); newUIGenerate.setFileLocation(labelFile.Text); newUIGenerate.Show(); }
private void buttonSave_Click(object sender, EventArgs e) { foreach (UIElement item in newUiElementList) { foreach (Control childc in Controls) { if (childc is TextBox && childc.Name.Contains("txt" + item.Id)) { item.Label = ((TextBox)childc).Text; } if (childc is TextBox && childc.Name.Contains("txtDefault" + item.Id)) { item.Value = ((TextBox)childc).Text; } if (childc is ComboBox && childc.Name.Contains("combo" + item.Id)) { foreach (Utilities.UtilityClass.ControlTypes.ControlType controlItem in Enum.GetValues(typeof(Utilities.UtilityClass.ControlTypes.ControlType))) { if (controlItem.ToString() == childc.Text) { item.ControlType = controlItem; } } } } } GenerateUI parent = (GenerateUI)this.Owner; if (IsField) { parent.updatetext(newUiElementList); } else { parent.updateCollItem(newUiElementList); } this.Close(); }